Add third work package for REST API implementation
[anna.git] / example / diameter / launcher / resources / rest_api / ct / fsm-testing / testid-ip-limit_test.py
diff --git a/example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-ip-limit_test.py b/example/diameter/launcher/resources/rest_api/ct/fsm-testing/testid-ip-limit_test.py
new file mode 100644 (file)
index 0000000..ed4e330
--- /dev/null
@@ -0,0 +1,19 @@
+import pytest
+
+
+def test_001_given_test_indentifier_i_want_to_set_test_id_ip_limit(admlc, admlf):
+
+  flow = admlf.getId()
+
+  requestBody = { "amount":5 }
+  responseBodyRef = { "success":"true", "response":"Done" }
+
+  # Send POST
+  response = admlc.postDict("/testid-ip-limit/{}".format(flow), requestBody)
+
+  # Verify response
+  admlc.assert_response__status_body_headers(response, 200, responseBodyRef)
+
+  # Cleanup
+  response = admlc.post("/test-clear")
+