def METHOD_NAME(dd_run_check, aggregator, mock_http_response):
    # Test for transformer. The prometheus source submits a 1 or 0. 1 being OK and 0 being CRITICAL.
    # Anything else will be reported as UNKNOWN.
    mock_http_response(file_path=get_fixture_path('app_controller_metrics.txt'))
    check = ArgocdCheck('argocd', {}, [MOCKED_APP_CONTROLLER_INSTANCE])
    dd_run_check(check)
    aggregator.assert_service_check(
        'argocd.app_controller.cluster.connection.status',
        ServiceCheck.OK,
        tags=['endpoint:http://app_controller:8082', 'name:bar'],
    )
    aggregator.assert_service_check(
        'argocd.app_controller.cluster.connection.status',
        ServiceCheck.CRITICAL,
        tags=['endpoint:http://app_controller:8082', 'name:foo'],
    )
    aggregator.assert_service_check(
        'argocd.app_controller.cluster.connection.status',
        ServiceCheck.UNKNOWN,
        tags=['endpoint:http://app_controller:8082', 'name:baz'],
    )
    aggregator.assert_service_check(
        'argocd.app_controller.cluster.connection.status',
        ServiceCheck.UNKNOWN,
        tags=['endpoint:http://app_controller:8082', 'name:faz'],
    )