X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Ffsm-testing%2Ftest-report-hex_test.py;fp=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Ffsm-testing%2Ftest-report-hex_test.py;h=08e70e2b363ef4947e6dd2ae5f3186c9d0e768a7;hb=080dc0740d8b02011dee032f5d44eeb5f2ffe23f;hp=0000000000000000000000000000000000000000;hpb=c200ffa70e1d93f5cb3137f3542245c44c05b008;p=anna.git diff --git a/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-report-hex_test.py b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-report-hex_test.py new file mode 100644 index 0000000..08e70e2 --- /dev/null +++ b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-report-hex_test.py @@ -0,0 +1,21 @@ +import pytest + + +def test_001_i_want_to_enable_report_hex_for_test_manager_progress(admlc): + + # Send POST + response = admlc.postDict("/test-report-hex", { "action":"enable" }) + + # Verify response + responseBodyRef = { "success":"true", "response":"Report includes hexadecimal messages" } + admlc.assert_response__status_body_headers(response, 200, responseBodyRef) + +def test_002_i_want_to_disable_report_hex_for_test_manager_progress(admlc): + + # Send POST + response = admlc.postDict("/test-report-hex", { "action":"disable" }) + + # Verify response + responseBodyRef = { "success":"true", "response":"Report excludes hexadecimal messages" } + admlc.assert_response__status_body_headers(response, 200, responseBodyRef) +