X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;ds=sidebyside;f=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Fparsing-operations%2Fcode_test.py;fp=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Fparsing-operations%2Fcode_test.py;h=226cdae38ab41c097b5ead344678342da08b5e7b;hb=c881c12ed7e116f1d43760a0d9873f860c10a357;hp=0000000000000000000000000000000000000000;hpb=af14877201a9856708ec43086a229777d9cb3da7;p=anna.git diff --git a/example/diameter/launcher/resources/rest_api/ct/parsing-operations/code_test.py b/example/diameter/launcher/resources/rest_api/ct/parsing-operations/code_test.py new file mode 100644 index 0000000..226cdae --- /dev/null +++ b/example/diameter/launcher/resources/rest_api/ct/parsing-operations/code_test.py @@ -0,0 +1,15 @@ +import pytest + +def test_001_given_diameter_json_representation_i_want_to_encode_it_through_adml_service(resources, admlc): + + requestBody = resources("diameterJson-request.json") + + # reponse field in response body, should carry the diameter encoding for json message sent to ADML: + diameterHex = resources("aar.hex") + responseBodyRef = { "success":"true", "response":"{}".format(diameterHex.rstrip()) } + + # Send POST + response = admlc.post("/code", requestBody) + + ### Verify response + admlc.assert_response__status_body_headers(response, 200, responseBodyRef)