@@ -37,23 +37,24 @@ def test_404_mi_does_not_exist(url, authentication_secret):
3737 assert get_message_response .status_code == 404 , f"Response: { get_message_response .status_code } : { get_message_response .text } "
3838 assert get_message_response .json ().get ("errors" )[0 ].get ("detail" ) == "No resource found with that ID"
3939
40- @pytest .mark .test
41- @pytest .mark .devtest
42- @pytest .mark .inttest
43- @pytest .mark .prodtest
44- def test_404_mi_miId_from_different_supplier_returns_does_not_exist (url , authentication_secret , secondary_supplier_authentication_secret ):
45- headers = Generators .generate_valid_headers (authentication_secret )
46- other_supplier_headers = Generators .generate_valid_headers (secondary_supplier_authentication_secret )
47- data = Generators .generate_valid_mi_record_body ()
48- create_mi = requests .post (
49- f"{ url } /{ MI_ENDPOINT } " ,
50- headers = headers ,
51- json = data ,
52- )
53- mi_id = create_mi .json ().get ("data" ).get ("id" )
54-
55- get_message_response = requests .get (f"{ url } /{ MI_ENDPOINT } /{ mi_id } " , headers = other_supplier_headers )
56-
57- ErrorHandler .handle_retry (get_message_response )
58- assert get_message_response .status_code == 404 , f"Response: { get_message_response .status_code } : { get_message_response .text } "
59- assert get_message_response .json ().get ("errors" )[0 ].get ("detail" ) == "No resource found with that ID"
40+ # This test is currently disabled awaiting changes to the internal repo to properly setup multiple supplier products in APIGEE
41+ # @pytest.mark.test
42+ # @pytest.mark.devtest
43+ # @pytest.mark.inttest
44+ # @pytest.mark.prodtest
45+ # def test_404_mi_miId_from_different_supplier_returns_does_not_exist(url, authentication_secret, secondary_supplier_authentication_secret):
46+ # headers = Generators.generate_valid_headers(authentication_secret)
47+ # other_supplier_headers = Generators.generate_valid_headers(secondary_supplier_authentication_secret)
48+ # data = Generators.generate_valid_mi_record_body()
49+ # create_mi = requests.post(
50+ # f"{url}/{MI_ENDPOINT}",
51+ # headers=headers,
52+ # json=data,
53+ # )
54+ # mi_id = create_mi.json().get("data").get("id")
55+
56+ # get_message_response = requests.get(f"{url}/{MI_ENDPOINT}/{mi_id}", headers=other_supplier_headers)
57+
58+ # ErrorHandler.handle_retry(get_message_response)
59+ # assert get_message_response.status_code == 404, f"Response: {get_message_response.status_code}: {get_message_response.text}"
60+ # assert get_message_response.json().get("errors")[0].get("detail") == "No resource found with that ID"
0 commit comments