Match API version-id requirement 27/88427/2 1.4.0
authorBrian Freeman <bf1936@att.com>
Fri, 24 May 2019 01:16:16 +0000 (20:16 -0500)
committerBrian Freeman <bf1936@att.com>
Fri, 24 May 2019 01:21:52 +0000 (20:21 -0500)
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>
robot/assets/templates/policy/vFirewall_push.template
robot/resources/policy_interface.robot

index 89c33ca..35813a1 100644 (file)
@@ -6,7 +6,7 @@
     },
     {
       "policy-id": "operational.modifyconfig",
-      "policy-version": ${OP_POLICY_VERSION}
+      "policy-version": "${OP_POLICY_VERSION}.0.0"
     }
   ]
 }
index dcab639..ffa3221 100644 (file)
@@ -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