X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Fhot-changes%2Fservices_test.py;h=5c90efc326965c950b72e0a83124b75d51e84c2e;hp=18e3bfc55e5118eca537657b6a523faa3308af74;hb=882e3764e48fdf93aeb078c1832b10a956288da3;hpb=e688b5354af3a5fe0add859710cae41ffe123f65 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..5c90efc 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,5 +1,6 @@ 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): @@ -12,3 +13,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) +