Add fourth work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / test-reset_test.py
diff --git a/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-reset_test.py b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-reset_test.py
new file mode 100644 (file)
index 0000000..63db2b8
--- /dev/null
@@ -0,0 +1,18 @@
+import pytest
+
+def test_001_i_want_to_do_reset_soft_for_every_test(admlc):
+
+  response = admlc.postDict("/test-reset", {})
+
+  # Verify response
+  responseBodyRef = { "success":"true", "response":"Soft reset have been sent to all programmed tests: nothing was reset" }
+  admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
+
+def test_002_i_want_to_do_reset_hard_for_every_test(admlc):
+
+  response = admlc.postDict("/test-reset", { "type":"hard" })
+
+  # Verify response
+  responseBodyRef = { "success":"true", "response":"Hard reset have been sent to all programmed tests: nothing was reset" }
+  admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
+