Add ct automation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / hot-changes / services_test.py
index 18e3bfc..5c90efc 100644 (file)
@@ -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)
+