X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tests%2Fpolicy%2Fpap%2Fpap-test.robot;h=36b593c7cb468caeaf7b492bc3c58ee0a74b6cf8;hb=600c447f6c9f63544e61931ceafc35390bda7313;hp=f2dd61da5483a86d42f133c895f4f48bd8f10b83;hpb=bf884ba4194e101f40ca5411d91ab0fd817eac9e;p=integration%2Fcsit.git 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