Add first work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / hot-changes / services_test.py
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
new file mode 100644 (file)
index 0000000..18e3bfc
--- /dev/null
@@ -0,0 +1,14 @@
+import pytest
+
+@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")
+  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)