18e3bfc55e5118eca537657b6a523faa3308af74
[anna.git] / example / diameter / launcher / resources / rest_api / ct / hot-changes / services_test.py
1 import pytest
2
3 @pytest.mark.run(order=1)
4 @pytest.mark.xfail(reason="This will fail if already provisioned (if you want success here, restart the ADML HTTP Service)")
5 def test_001_given_services_json_representation_i_want_to_load_it_through_adml_service(resources, admlc):
6
7   requestBody = resources("servicesJson-request.json")
8   responseBodyRef = { "success":"true", "response":"loaded services correctly" }
9
10   # Send POST
11   response = admlc.post("/services", requestBody)
12
13   ### Verify response
14   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)