summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2019-05-14 20:44:46 -0500
committerBrian Freeman <bf1936@att.com>2019-05-14 20:46:19 -0500
commit83a8c709cd884e04be2af84afa9bea07075a48c9 (patch)
tree0e5e0285312500e00ef93bc5fe508a8d36ef2bad /robot/resources
parent8016e645368c4676fba30d997dbefe87e14f9dca (diff)
Set Version
Read policy-version from create of operational Issue-ID: POLICY-1685 Change-Id: I6d98bd1149b99bc4a105d1d471657a7cff0d4446 Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/policy_interface.robot8
1 files changed, 5 insertions, 3 deletions
diff --git a/robot/resources/policy_interface.robot b/robot/resources/policy_interface.robot
index 88f2b6f8..b819f43d 100644
--- a/robot/resources/policy_interface.robot
+++ b/robot/resources/policy_interface.robot
@@ -159,10 +159,10 @@ Update vVFWCL Policy
Create vFirewall Monitoring Policy
Sleep 5s
Log To Console Create vFWCL Operational Policy
- Create vFirewall Operational Policy ${resource_id}
+ ${op_policy_version}= Create vFirewall Operational Policy ${resource_id}
Sleep 5s
Log To Console Push vFWCL To PDP Group
- Push vFirewall Policies To PDP Group
+ Push vFirewall Policies To PDP Group ${op_policy_version}
Sleep 20s
Log To Console Validate vFWCL Policy
Validate the vFWCL Policy
@@ -225,10 +225,12 @@ Create vFirewall Operational Policy
${data}= Fill JSON Template File ${POLICY_TEMPLATES}/vFirewall_policy_operational_input.template ${dict}
${resp}= Run Policy Api Post Request /policy/api/v1/policytypes/onap.policies.controlloop.Operational/versions/1.0.0/policies ${data}
Should Be Equal As Strings ${resp.status_code} 200
+ [Return] ${resp.json()['policy-version']}
Push vFirewall Policies To PDP Group
- ${dict}= Create Dictionary
+ [Arguments] ${op_policy_version}
+ ${dict}= Create Dictionary OP_POLICY_VERSION=${op_policy_version}
${data}= Fill JSON Template File ${POLICY_TEMPLATES}/vFirewall_push.template ${dict}
#${resp}= Run Policy Post Request /policy/pap/v1/pdps/policies ${data}
${resp}= Run Policy Pap Post Request /policy/pap/v1/pdps/policies ${data}