Move CSIT to integration/csit repo
[integration/csit.git] / tests / policy / apex-pdp / apex-pdp-test.robot
diff --git a/tests/policy/apex-pdp/apex-pdp-test.robot b/tests/policy/apex-pdp/apex-pdp-test.robot
new file mode 100644 (file)
index 0000000..f1dea17
--- /dev/null
@@ -0,0 +1,14 @@
+*** Settings ***
+Library     Collections
+Library     RequestsLibrary
+Library     OperatingSystem
+Library     json
+
+*** Test Cases ***
+
+Call Apex Policy
+    Create Session   apexSession  http://${APEX_IP}:23324   max_retries=3
+    ${data}=    Get Binary File     ${CURDIR}${/}data${/}event.json
+    &{headers}=  Create Dictionary    Content-Type=application/json    Accept=application/json
+    ${resp}=    Put Request    apexSession    /apex/FirstConsumer/EventIn    data=${data}   headers=${headers}
+    Should Be Equal As Strings    ${resp.status_code}   200