def create_crash_loop_finding() -> Finding:
    """Create a sample crash loop finding with exact requested data"""
    subject = FindingSubject(
        name="payment-processing-worker-747ccfb9db-r7z7m",
        namespace="default",
        subject_type=FindingSubjectType.TYPE_POD,
        node="gke-1-4d3c8387-d24h",
        labels={
            "app": "payment-processing-worker",
            "pod-template-hash": "747ccfb9db"
        },
        annotations={}
    )

    finding = Finding(
        title="Crashing pod payment-processing-worker-747ccfb9db-r7z7m in namespace default",
        source=FindingSource.KUBERNETES_API_SERVER,
        severity=FindingSeverity.HIGH,
        aggregation_key="CrashLoopBackoff",
        finding_type=FindingType.ISSUE,
        subject=subject,
        failure=True,
        fingerprint="d7c6e2ac798ee28c8a4ac6c8c33de52e60f0b019cd10d78ac04831d44cf86389",
        starts_at=datetime(2025, 3, 23, 20, 8, 43, 822328)
    )

    # Add the crash info enrichment
    finding.add_enrichment([
        TableBlock(
            rows=[
                ["Container", "payment-processing-container"],
                ["Restarts", 130],
                ["Status", "WAITING"],
                ["Reason", "CrashLoopBackOff"]
            ],
            headers=["label", "value"],
            table_name="*Crash Info*",
            metadata={"format": "vertical"}
        ),
        TableBlock(
            rows=[
                ["Status", "TERMINATED"],
                ["Reason", "Completed"],
                ["Started at", "2025-03-23T18:08:32Z"],
                ["Finished at", "2025-03-23T18:08:32Z"]
            ],
            headers=["label", "value"],
            table_name="*Previous Container*",
            metadata={"format": "vertical"}
        )
    ], title="Container Crash information", enrichment_type=EnrichmentType.crash_info)

    # Add the logs enrichment
    finding.add_enrichment([
        FileBlock(
            filename="payment-processing-worker-747ccfb9db-r7z7m.log",
            contents=b'Environment variable DEPLOY_ENV is undefined\n'
        )
    ], title="Logs", enrichment_type=EnrichmentType.text_file)

    return finding
Create a sample crash loop finding with exact requested data
tests/manual_tests/test_slack_integration_manual.py