diff options
author | Brian Freeman <bf1936@att.com> | 2019-05-23 20:16:16 -0500 |
---|---|---|
committer | Brian Freeman <bf1936@att.com> | 2019-05-23 20:21:52 -0500 |
commit | b83074931f4824f6f736fa2fe1b9f2015bff9ab3 (patch) | |
tree | 1d70fd9080449365acec2c6b61e7a02a52fdc9a4 | |
parent | 0003b1683208f919a34be9136e933ec0200628b9 (diff) |
Match API version-id requirement1.4.0
Create Policy returns and integer but push policy expect X.0.0
template updated to match push API
Add back test for 200 to push that was used for testing
Issue-ID: POLICY-1685
Change-Id: I7fa22ddecfcdbef3fc03cedbb59c77cf336fec2d
Signed-off-by: Brian Freeman <bf1936@att.com>
-rw-r--r-- | robot/assets/templates/policy/vFirewall_push.template | 2 | ||||
-rw-r--r-- | robot/resources/policy_interface.robot | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/robot/assets/templates/policy/vFirewall_push.template b/robot/assets/templates/policy/vFirewall_push.template index 89c33ca6..35813a1e 100644 --- a/robot/assets/templates/policy/vFirewall_push.template +++ b/robot/assets/templates/policy/vFirewall_push.template @@ -6,7 +6,7 @@ }, { "policy-id": "operational.modifyconfig", - "policy-version": ${OP_POLICY_VERSION} + "policy-version": "${OP_POLICY_VERSION}.0.0" } ] } diff --git a/robot/resources/policy_interface.robot b/robot/resources/policy_interface.robot index dcab639c..ffa3221b 100644 --- a/robot/resources/policy_interface.robot +++ b/robot/resources/policy_interface.robot @@ -243,7 +243,7 @@ Push vFirewall Policies To PDP Group ${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} - #Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 200 Run Policy API Healthcheck [Documentation] Runs Policy Api Health check |