def test_all_incidents_in_helios(self):
        """
        This test case verifies that all incidents in the Sentinel workspace
        have corresponding alerts in Helios, and that the number of alerts in
        Helios matches the number of incidents in the Sentinel workspace.
        """
        print("Starting test_all_incidents_in_helios")
        ids = get_incident_ids(self.resource_group, self.workspace_name)
        alert_ids = [alert_id for (incident_id, alert_id) in ids]
        """
        To exclude cohesity test alert
        """
        pattern = r"^\d+:\d+$"

        non_matching_alert_ids = [
            alert_id
            for alert_id in alert_ids
            if not re.match(pattern, alert_id)
        ]

        non_matching_alert_id = non_matching_alert_ids[0]
        self.assertIn(
            "This is a test incident that confirms that the Cohesity function",
            non_matching_alert_id,
            f"The non-matching alert_id does not contain the expected string.",
        )

        for alert_id in [
            alert_id for alert_id in alert_ids if re.match(pattern, alert_id)
        ]:
            self.assertIsNotNone(
                get_alert_details(alert_id, self.api_key),
                f"alert_id --> {alert_id} doesn't exist in helios.",
            )
        alerts_details = get_alerts_details(alert_ids, self.api_key)
        self.assertEqual(
            len(alert_ids),
            len(alerts_details),
            "Number of alerts does not match the number of incidents",
        )
        print("test_all_incidents_in_helios completed successfully")

        This test case verifies that all incidents in the Sentinel workspace
        have corresponding alerts in Helios, and that the number of alerts in
        Helios matches the number of incidents in the Sentinel workspace.
        
Solutions/CohesitySecurity/Tests/az.test.py