Add fourth work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / test-auto-reset_test.py
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 (file)
index 0000000..3e699b4
--- /dev/null
@@ -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)
+