Add fourth work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / test-repeats_test.py
1 import pytest
2
3
4 def test_001_i_want_to_repeat_the_test_pool_forever(admlc):
5
6   response = admlc.postDict("/test-repeats", { "amount": -1 })
7
8   # Verify response
9   responseBodyRef = { "success":"true", "response":"Pool repeats: -1 [no limit] (current cycle: 1)" }
10   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
11
12 def test_002_i_want_to_disable_test_pool_cycle_repeats(admlc):
13
14   response = admlc.postDict("/test-repeats", { "amount":0 })
15
16   # Verify response
17   responseBodyRef = { "success":"true", "response":"Pool repeats: 0 (current cycle: 1)" }
18   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
19