X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Fhot-changes%2Fservices_test.py;h=4d8d18e952b3264aca9774207ecfd0fbca34bdfb;hb=8a597c7ccbe2986f505fd70258e4b59ecef4166f;hp=18e3bfc55e5118eca537657b6a523faa3308af74;hpb=c881c12ed7e116f1d43760a0d9873f860c10a357;p=anna.git diff --git a/example/diameter/launcher/resources/rest_api/ct/hot-changes/services_test.py b/example/diameter/launcher/resources/rest_api/ct/hot-changes/services_test.py index 18e3bfc..4d8d18e 100644 --- a/example/diameter/launcher/resources/rest_api/ct/hot-changes/services_test.py +++ b/example/diameter/launcher/resources/rest_api/ct/hot-changes/services_test.py @@ -1,10 +1,12 @@ import pytest +@pytest.mark.skip(reason="this is run as part of 'ct.sh' wrapper script") @pytest.mark.run(order=1) @pytest.mark.xfail(reason="This will fail if already provisioned (if you want success here, restart the ADML HTTP Service)") def test_001_given_services_json_representation_i_want_to_load_it_through_adml_service(resources, admlc): - requestBody = resources("servicesJson-request.json") + # Load services for Rx interface (client/server nodes & Gx dictionary): + requestBody = resources("servicesRxJson-request.json") responseBodyRef = { "success":"true", "response":"loaded services correctly" } # Send POST @@ -12,3 +14,15 @@ def test_001_given_services_json_representation_i_want_to_load_it_through_adml_s ### Verify response admlc.assert_response__status_body_headers(response, 200, responseBodyRef) + +def test_002_given_dummy_services_json_representation_i_want_to_load_it_through_adml_service(resources, admlc): + + requestBody = resources("servicesDummyJson-request.json") + responseBodyRef = { "success":"true", "response":"loaded services correctly" } + + # Send POST + response = admlc.post("/services", requestBody) + + ### Verify response + admlc.assert_response__status_body_headers(response, 200, responseBodyRef) +