aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/policy/apex-pdp/apex-pdp-test.robot
diff options
context:
space:
mode:
authormmis <michael.morris@ericsson.com>2018-09-12 10:31:43 +0100
committermmis <michael.morris@ericsson.com>2018-09-13 10:29:44 +0100
commitc4d5bda12e3ecc62276661ea8f18fff07ec13a33 (patch)
tree4439d00c0a0e981ff822db01ddf48df3edf4ca68 /test/csit/tests/policy/apex-pdp/apex-pdp-test.robot
parentd6534489b43de196db8326445fef10d8b5338a06 (diff)
Added apex-pdp csit test
Added new test suite for policy apex-pdp Change-Id: Ifd1c7f4a7c10a0cc37799f933e1d16ac21fd6d48 Issue-ID: POLICY-1099 Signed-off-by: mmis <michael.morris@ericsson.com>
Diffstat (limited to 'test/csit/tests/policy/apex-pdp/apex-pdp-test.robot')
-rw-r--r--test/csit/tests/policy/apex-pdp/apex-pdp-test.robot14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/csit/tests/policy/apex-pdp/apex-pdp-test.robot b/test/csit/tests/policy/apex-pdp/apex-pdp-test.robot
new file mode 100644
index 000000000..f1dea17d1
--- /dev/null
+++ b/test/csit/tests/policy/apex-pdp/apex-pdp-test.robot
@@ -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