def METHOD_NAME(
    self, mocker_vault_settings, mocker_alerting_services, caplog
) -> None:
    self.ns_data = self.fxt.get_anymarkup("ns-bad-test.yaml")
    mocker_alerting_services.return_value = {"yak-shaver"}
    mocker_vault_settings.return_value = AppInterfaceSettingsV1(vault=False)
    cluster_name = "appint-ex-01"
    with pytest.raises(SystemExit) as exc:
        run(False, THREAD_POOL_SIZE, cluster_name=cluster_name)
    assert exc.value.code == ExitCodes.ERROR
    error_msg = (
        "Error checking rule bad-test.prometheusrules.yaml "
        "from namespace openshift-customer-monitoring in "
        f"cluster {cluster_name}: Error running promtool command"
    )
    assert error_msg in caplog.text