Add fourth work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / test-auto-reset_test.py
1 import pytest
2
3
4 def test_001_i_want_to_set_auto_reset_to_hard(admlc):
5
6   response = admlc.postDict("/test-auto-reset", { "type": "hard" })
7
8   # Verify response
9   responseBodyRef = { "success":"true", "response":"Auto-reset configured to 'hard'" }
10   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
11
12 def test_002_i_want_to_set_auto_reset_to_soft(admlc):
13
14   response = admlc.postDict("/test-auto-reset", { "type": "soft" })
15
16   # Verify response
17   responseBodyRef = { "success":"true", "response":"Auto-reset configured to 'soft'" }
18   admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
19