aboutsummaryrefslogtreecommitdiffstats
path: root/tests/policy
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-03-17 12:18:46 -0400
committerJim Hahn <jrh3@att.com>2020-03-17 12:21:59 -0400
commitd248ae90bb3fd6dae5c68b1a37b8beee4a44eda5 (patch)
treebb5de338941ca585578c2619309598ec646c5a9a /tests/policy
parent068ed190d4248f1038fc9f4d518fa769c7bb597c (diff)
Add frankfurt to drools-apps CSIT
Issue-ID: POLICY-2434 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: I92ce55b8f024e6bb935b21812ceb633976b0ddf8
Diffstat (limited to 'tests/policy')
-rw-r--r--tests/policy/drools-applications/drools-applications-test.robot11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/policy/drools-applications/drools-applications-test.robot b/tests/policy/drools-applications/drools-applications-test.robot
index 1c9ea1d8..0a41a6c5 100644
--- a/tests/policy/drools-applications/drools-applications-test.robot
+++ b/tests/policy/drools-applications/drools-applications-test.robot
@@ -27,6 +27,17 @@ Healthcheck
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal As Strings ${resp.json()['healthy']} True
+Frankfurt
+ [Documentation] Checks frankfurt controller is up
+ ${auth}= Create List demo@people.osaaf.org demo123456!
+ Log Creating session https://${POLICY_DROOLS_IP}:9696
+ ${session}= Create Session policy https://${POLICY_DROOLS_IP}:9696 auth=${auth}
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= Get Request policy /policy/pdp/engine/controllers/frankfurt/drools/facts headers=${headers}
+ Log Received response from policy ${resp.text}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.json()['frankfurt']} 0
+
Usecases
[Documentation] Checks usecases controller is up
${auth}= Create List demo@people.osaaf.org demo123456!