X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Ffsm-testing%2Ftestid-sendmsg2e_test.py;fp=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Ffsm-testing%2Ftestid-sendmsg2e_test.py;h=e25c2ea37f4f8af7558bf880a07082b55a13a94b;hb=e688b5354af3a5fe0add859710cae41ffe123f65;hp=0000000000000000000000000000000000000000;hpb=c56124ff93e8bceec159748dfe5ba8d56c62e3de;p=anna.git diff --git a/example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-sendmsg2e_test.py b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-sendmsg2e_test.py new file mode 100644 index 0000000..e25c2ea --- /dev/null +++ b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-sendmsg2e_test.py @@ -0,0 +1,19 @@ +import pytest + + +def test_001_given_test_indentifier_and_diameter_json_representation_i_want_to_add_test_id_sendmsg2e_step(resources, admlc, admlf): + + flow = admlf.getId() + + requestBody = resources("aar-diameterJsonFromOwnToAF-request.json") + responseBodyRef = { "success":"true", "response":"Done" } + + # Send POST + response = admlc.post("/testid-sendmsg2e/{}".format(flow), requestBody) + + # Verify response + admlc.assert_response__status_body_headers(response, 200, responseBodyRef) + + # Cleanup + response = admlc.post("/test-clear") +