aboutsummaryrefslogtreecommitdiffstats
path: root/tests/policy/xacml-pdp
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@bell.ca>2021-02-18 16:24:58 +0000
committerJim Hahn <jrh3@att.com>2021-02-18 16:17:21 -0500
commit5576a927ee2999f6bfa48219941c5c16693a9967 (patch)
treedfda8ac95491c78b62242e43008756f1a0e71e6e /tests/policy/xacml-pdp
parent49679a66c9c84b0cfc2f0d0fbab5109c5dad3730 (diff)
Update CSIT to check for 202 response during PAP Deployment
Xacml pdp-type is now configurable - added it to the config file. Change-Id: I026f62efb8eb07b4e4ca42cf34f8ca2af9662df6 Issue-ID: POLICY-2526 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca> Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'tests/policy/xacml-pdp')
-rw-r--r--tests/policy/xacml-pdp/xacml-pdp-test.robot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/policy/xacml-pdp/xacml-pdp-test.robot b/tests/policy/xacml-pdp/xacml-pdp-test.robot
index 150c97e6..03b0ca7a 100644
--- a/tests/policy/xacml-pdp/xacml-pdp-test.robot
+++ b/tests/policy/xacml-pdp/xacml-pdp-test.robot
@@ -83,7 +83,7 @@ DeployPolicies
${resp}= Post Request policy /policy/pap/v1/pdps/policies data=${postjson} headers=${headers}
Log Received response from policy5 ${resp.text}
${postjsonobject} To Json ${postjson}
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 202
${result}= Run Process ${SCR_DMAAP}/wait_topic.sh POLICY-PDP-PAP
... responseTo xacml ACTIVE onap.restart.tca
@@ -202,7 +202,7 @@ UndeployMonitorPolicy
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
${resp}= Delete Request policy /policy/pap/v1/pdps/policies/onap.restart.tca headers=${headers}
Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 202
GetStatisticsAfterUndeploy
[Documentation] Runs Policy Xacml PDP Statistics after policy is undeployed