aboutsummaryrefslogtreecommitdiffstats
path: root/tests/policy/pap/pap-test.robot
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-05-02 17:02:22 +0000
committerramverma <ram.krishna.verma@est.tech>2019-05-02 17:02:22 +0000
commitbf884ba4194e101f40ca5411d91ab0fd817eac9e (patch)
tree62d4732d1d6fcb9de90185186053ae921197ecdd /tests/policy/pap/pap-test.robot
parentb9a1776ce8e4d56a2a650a5688f88f79d7707bc6 (diff)
Fix policy/pap csit test cases
Change-Id: I1b382b107f2cd619b81979f0baeb519312c700d9 Issue-ID: POLICY-1723 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'tests/policy/pap/pap-test.robot')
-rw-r--r--tests/policy/pap/pap-test.robot14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/policy/pap/pap-test.robot b/tests/policy/pap/pap-test.robot
index 0a6251de..f2dd61da 100644
--- a/tests/policy/pap/pap-test.robot
+++ b/tests/policy/pap/pap-test.robot
@@ -57,10 +57,9 @@ QueryPdpGroups
${resp}= Get Request policy /policy/pap/v1/pdps headers=${headers}
Log Received response from policy ${resp.text}
Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['groups'][0]['name']} controlloop
- Should Be Equal As Strings ${resp.json()['groups'][1]['name']} create.group.request
- Should Be Equal As Strings ${resp.json()['groups'][1]['pdpGroupState']} ACTIVE
- Should Be Equal As Strings ${resp.json()['groups'][2]['name']} monitoring
+ Should Be Equal As Strings ${resp.json()['groups'][0]['name']} create.group.request
+ Should Be Equal As Strings ${resp.json()['groups'][0]['pdpGroupState']} ACTIVE
+ Should Be Equal As Strings ${resp.json()['groups'][1]['name']} defaultGroup
UndeployPolicy
[Documentation] Runs Policy PAP Undeploy a Policy from PDP Groups
@@ -81,8 +80,8 @@ QueryPdpGroupsAfterUndeploy
${resp}= Get Request policy /policy/pap/v1/pdps headers=${headers}
Log Received response from policy ${resp.text}
Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['groups'][1]['name']} create.group.request
- Should Be Equal As Strings ${resp.json()['groups'][1]['pdpSubgroups'][0]['policies']} []
+ Should Be Equal As Strings ${resp.json()['groups'][0]['name']} create.group.request
+ Should Be Equal As Strings ${resp.json()['groups'][0]['pdpSubgroups'][0]['policies']} []
DeactivatePdpGroup
[Documentation] Runs Policy PAP Change PDP Group State to PASSIVE
@@ -113,5 +112,4 @@ QueryPdpGroupsAfterDelete
${resp}= Get Request policy /policy/pap/v1/pdps headers=${headers}
Log Received response from policy ${resp.text}
Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['groups'][0]['name']} controlloop
- Should Be Equal As Strings ${resp.json()['groups'][1]['name']} monitoring
+ Should Be Equal As Strings ${resp.json()['groups'][0]['name']} defaultGroup