aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@bell.ca>2021-02-18 16:57:46 +0000
committerLasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>2021-02-26 15:22:45 +0000
commit5dc8c14dd0994e6154f2f2786bf428b50344b7cc (patch)
treeb030897b3b128a8bb6bc53dc6473f5cfc3aa049b /robot/resources
parentd1bc6cbd63f9cd7126baded2a40e78ebb67f65e1 (diff)
Updates to check for 202 response during Policy-PAP Deployment
Change-Id: Iedd5c3d0d524a30e49e57634d3a04c74f1fbd632 Issue-ID: POLICY-2526 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/policy_interface.robot10
1 files changed, 5 insertions, 5 deletions
diff --git a/robot/resources/policy_interface.robot b/robot/resources/policy_interface.robot
index 82b5cda4..0e1b88b8 100644
--- a/robot/resources/policy_interface.robot
+++ b/robot/resources/policy_interface.robot
@@ -89,7 +89,7 @@ Undeploy Policy
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
${resp}= Delete Request policy /policy/pap/v1/pdps/policies/${policy_name} headers=${headers}
Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 202
Update vVFWCL Policy
[Arguments] ${resource_id}
@@ -148,7 +148,7 @@ Push vFirewall Policies To PDP Group
Templating.Create Environment policy ${GLOBAL_TEMPLATE_FOLDER}
${data}= Templating.Apply Template policy ${POLICY_TEMPLATES}/vFirewall_push.jinja ${dict}
${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} 202
Run Create Policy Post Request
[Documentation] Runs Create Policy Post request
@@ -186,7 +186,7 @@ Run Deploy Policy Pap Post Request
${resp}= Post Request policy /policy/pap/v1/pdps/policies data=${json_deploy} headers=${headers}
Log Received response from policy ${resp.text}
[Return] ${resp}
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 202
Run Undeploy Policy
[Documentation] Runs Policy PAP Undeploy a Policy from PDP Groups
@@ -197,7 +197,7 @@ Run Undeploy Policy
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
${resp}= Delete Request policy /policy/pap/v1/pdps/policies/operational.modifyconfig headers=${headers}
Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 202
Run Undeploy vFW Monitoring Policy
[Documentation] Runs Policy PAP Undeploy vFW Monitoring Policy from PDP Groups
@@ -208,7 +208,7 @@ Run Undeploy vFW Monitoring Policy
${headers}= Create Dictionary Accept=application/json Content-Type=application/json
${resp}= Delete Request policy /policy/pap/v1/pdps/policies/onap.vfirewall.tca headers=${headers}
Log Received response from policy ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 202
Run Delete vFW Monitoring Policy