X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tests%2Fpolicy%2Fpap%2Fpap-test.robot;h=67a578281ba8032a5926fbed5baf28890d1a427e;hb=1ebe7ecef97bdac055c8ed67c5b379a4f6c89c4c;hp=36b593c7cb468caeaf7b492bc3c58ee0a74b6cf8;hpb=72ae9c392dd2c8493b3fbe50c491b4e0870caecf;p=integration%2Fcsit.git diff --git a/tests/policy/pap/pap-test.robot b/tests/policy/pap/pap-test.robot index 36b593c7..67a57828 100644 --- a/tests/policy/pap/pap-test.robot +++ b/tests/policy/pap/pap-test.robot @@ -5,6 +5,17 @@ Library OperatingSystem Library json *** Test Cases *** +LoadPolicy + [Documentation] Loads prerequisite Policy via API + ${auth}= Create List healthcheck zb!XztG34 + Log Creating session https://${POLICY_API_IP}:6969 + ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${postjson}= Get file ${CURDIR}/data/vCPE.policy.monitoring.input.tosca.json + ${resp}= Post Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies data=${postjson} headers=${headers} + Log Received response from API ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + Healthcheck [Documentation] Runs Policy PAP Health check ${auth}= Create List healthcheck zb!XztG34