X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Ffsm-testing%2Ftest-auto-reset_test.py;fp=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Ffsm-testing%2Ftest-auto-reset_test.py;h=3e699b4d66fdbd0297135f598165c83e0e1bb406;hb=080dc0740d8b02011dee032f5d44eeb5f2ffe23f;hp=0000000000000000000000000000000000000000;hpb=c200ffa70e1d93f5cb3137f3542245c44c05b008;p=anna.git diff --git a/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-auto-reset_test.py b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-auto-reset_test.py new file mode 100644 index 0000000..3e699b4 --- /dev/null +++ b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-auto-reset_test.py @@ -0,0 +1,19 @@ +import pytest + + +def test_001_i_want_to_set_auto_reset_to_hard(admlc): + + response = admlc.postDict("/test-auto-reset", { "type": "hard" }) + + # Verify response + responseBodyRef = { "success":"true", "response":"Auto-reset configured to 'hard'" } + admlc.assert_response__status_body_headers(response, 200, responseBodyRef) + +def test_002_i_want_to_set_auto_reset_to_soft(admlc): + + response = admlc.postDict("/test-auto-reset", { "type": "soft" }) + + # Verify response + responseBodyRef = { "success":"true", "response":"Auto-reset configured to 'soft'" } + admlc.assert_response__status_body_headers(response, 200, responseBodyRef) +