aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-05-11 10:13:32 -0400
committerJim Hahn <jrh3@att.com>2020-05-11 10:13:32 -0400
commit2d9492198ab10f8fd974210bc93942fe2ff21a1c (patch)
tree21866ea7c8a01faa5cd50a68bb6743039d37d544 /tests
parent9c41697bdcef2eddd9af6436f3feb5821c238b44 (diff)
xacml-pdp csit should wait for deployment
Added code to the xacml-pdp CSIT so that, after deploying policies, it waits until the xacml-pdp indicates that the policies have been deployed before performing any guard or decision requests. Issue-ID: POLICY-2554 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: Icd016b699afbbfe3b60e866c88b45951499fa228
Diffstat (limited to 'tests')
-rw-r--r--tests/policy/xacml-pdp/xacml-pdp-test.robot8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/policy/xacml-pdp/xacml-pdp-test.robot b/tests/policy/xacml-pdp/xacml-pdp-test.robot
index 250e01f1..6e2fa008 100644
--- a/tests/policy/xacml-pdp/xacml-pdp-test.robot
+++ b/tests/policy/xacml-pdp/xacml-pdp-test.robot
@@ -2,6 +2,7 @@
Library Collections
Library RequestsLibrary
Library OperatingSystem
+Library Process
Library json
*** Test Cases ***
@@ -27,6 +28,11 @@ Statistics
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal As Strings ${resp.json()['code']} 200
+MakeTopics
+ [Documentation] Creates the Policy topics
+ ${result}= Run Process ${SCR_DMAAP}/make_topic.sh POLICY-PDP-PAP
+ Should Be Equal As Integers ${result.rc} 0
+
ExecuteXacmlPolicy
Wait Until Keyword Succeeds 0 min 15 sec CreateMonitorPolicy
Wait Until Keyword Succeeds 0 min 15 sec CreateOptimizationPolicy
@@ -78,6 +84,8 @@ DeployPolicies
Log Received response from policy5 ${resp.text}
${postjsonobject} To Json ${postjson}
Should Be Equal As Strings ${resp.status_code} 200
+ ${result}= Run Process ${SCR_DMAAP}/wait_topic.sh POLICY-PDP-PAP
+ ... responseTo xacml ACTIVE onap.restart.tca
GetStatisticsAfterDeployed
[Documentation] Runs Policy Xacml PDP Statistics after policy is deployed