X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Ffsm-testing%2Ftest-repeats_test.py;fp=example%2Fdiameter%2Flauncher%2Fresources%2Frest_api%2Fct%2Ffsm-testing%2Ftest-repeats_test.py;h=337b1fe734fd78389b10c4bb851080411c9c236f;hb=080dc0740d8b02011dee032f5d44eeb5f2ffe23f;hp=0000000000000000000000000000000000000000;hpb=c200ffa70e1d93f5cb3137f3542245c44c05b008;p=anna.git diff --git a/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-repeats_test.py b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-repeats_test.py new file mode 100644 index 0000000..337b1fe --- /dev/null +++ b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-repeats_test.py @@ -0,0 +1,19 @@ +import pytest + + +def test_001_i_want_to_repeat_the_test_pool_forever(admlc): + + response = admlc.postDict("/test-repeats", { "amount": -1 }) + + # Verify response + responseBodyRef = { "success":"true", "response":"Pool repeats: -1 [no limit] (current cycle: 1)" } + admlc.assert_response__status_body_headers(response, 200, responseBodyRef) + +def test_002_i_want_to_disable_test_pool_cycle_repeats(admlc): + + response = admlc.postDict("/test-repeats", { "amount":0 }) + + # Verify response + responseBodyRef = { "success":"true", "response":"Pool repeats: 0 (current cycle: 1)" } + admlc.assert_response__status_body_headers(response, 200, responseBodyRef) +