Add fourth work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / test-summary_test.py
diff --git a/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-summary_test.py b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/test-summary_test.py
new file mode 100644 (file)
index 0000000..1c22ac2
--- /dev/null
@@ -0,0 +1,14 @@
+import pytest
+
+
+def test_001_i_want_to_retrieve_the_tests_pool_summary(b64_decode, mylogger, admlc):
+
+  # Send POST
+  response = admlc.post("/test-summary")
+
+  # Verify response is ok (omit response content because it is dynamic: will be logged)
+  assert response["status"] == 200
+  assert response["body"]["success"] == "true"
+  body_response = b64_decode(response["body"]["response"])
+  mylogger.info("\nBASE64 DECODED RESPONSE: \n\n" + body_response)
+