def METHOD_NAME(
    mock_msal, pytestconfig, tmp_path, mock_time, requests_mock
):
    test_resources_dir = (
        pytestconfig.rootpath / "tests/integration/powerbi_report_server"
    )
    register_mock_api(
        request_mock=requests_mock,
        override_mock_data={
            "https://host_port/Reports/api/v2.0/LinkedReports": {
                "method": "GET",
                "status_code": 404,
                "json": {"error": "Request Failed"},
            }
        },
    )
    pipeline = Pipeline.create(
        get_default_recipe(output_path=f"{tmp_path}/powerbi_report_server_mces.json")
    )
    add_mock_method_in_pipeline(pipeline=pipeline)
    pipeline.run()
    pipeline.raise_from_status()
    golden_file = "golden_test_fail_api_ingest.json"
    mce_helpers.check_golden_file(
        pytestconfig,
        output_path=tmp_path / "powerbi_report_server_mces.json",
        golden_path=f"{test_resources_dir}/{golden_file}",
    )