aboutsummaryrefslogtreecommitdiffstats
path: root/tests/policy/pap/pap-test.robot
diff options
context:
space:
mode:
authorDaniel Rose <dr695h@att.com>2019-12-11 14:47:37 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-11 14:47:37 +0000
commitf88e6d68f5a78f40d6f1c680d29f493d5e88fdfc (patch)
tree7f195bddc550b2e5cb136298036b03695239b657 /tests/policy/pap/pap-test.robot
parent43296a0bbe7b1b3fec1c638fc534749de073709d (diff)
parent25721ec832121ddb27f00e76f2673ac1089f3e20 (diff)
Merge "Update CSITs for policy delta API"
Diffstat (limited to 'tests/policy/pap/pap-test.robot')
-rw-r--r--tests/policy/pap/pap-test.robot13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/policy/pap/pap-test.robot b/tests/policy/pap/pap-test.robot
index f2dd61da..36b593c7 100644
--- a/tests/policy/pap/pap-test.robot
+++ b/tests/policy/pap/pap-test.robot
@@ -34,7 +34,7 @@ CreatePdpGroups
${postjson}= Get file ${CURDIR}/data/create.group.request.json
${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Post Request policy /policy/pap/v1/pdps data=${postjson} headers=${headers}
+ ${resp}= Post Request policy /policy/pap/v1/pdps/groups/batch data=${postjson} headers=${headers}
Log Received response from policy ${resp.text}
Should Be Equal As Strings ${resp.status_code} 200
@@ -61,6 +61,17 @@ QueryPdpGroups
Should Be Equal As Strings ${resp.json()['groups'][0]['pdpGroupState']} ACTIVE
Should Be Equal As Strings ${resp.json()['groups'][1]['name']} defaultGroup
+DeployPdpGroups
+ [Documentation] Runs Policy PAP Deploy Policies to PDP Groups
+ ${auth}= Create List healthcheck zb!XztG34
+ Log Creating session https://${POLICY_PAP_IP}:6969
+ ${postjson}= Get file ${CURDIR}/data/deploy.group.request.json
+ ${session}= Create Session policy https://${POLICY_PAP_IP}:6969 auth=${auth}
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers}
+ Log Received response from policy ${resp.text}
+ Should Be Equal As Strings ${resp.status_code} 200
+
UndeployPolicy
[Documentation] Runs Policy PAP Undeploy a Policy from PDP Groups
${auth}= Create List healthcheck zb!XztG34