sg481n | 43854a9 | 2017-08-03 17:27:34 -0400 | [diff] [blame] | 1 | set testid@aaf.att.com <pass> |
| 2 | set XX@NS <pass> |
| 3 | set testunused@aaf.att.com <pass> |
| 4 | set bogus boguspass |
| 5 | #delay 10 |
| 6 | set NFR 0 |
| 7 | as testid@aaf.att.com |
| 8 | # TC_Appr1.10.0.POS List NS to prove ok |
| 9 | ns list name com.test.appr |
| 10 | ** Expect 200 ** |
| 11 | |
| 12 | List Namespaces by Name[com.test.appr] |
| 13 | -------------------------------------------------------------------------------- |
| 14 | |
| 15 | ns list name com.test.appr.@[user.name] |
| 16 | ** Expect 200 ** |
| 17 | |
| 18 | List Namespaces by Name[com.test.appr.@[THE_USER]] |
| 19 | -------------------------------------------------------------------------------- |
| 20 | |
| 21 | # TC_Appr1.10.1.POS Create Personalized Namespace to add Approvals |
| 22 | ns create com.test.appr.@[user.name] @[user.name] testid@aaf.att.com |
| 23 | ** Expect 201 ** |
| 24 | Created Namespace |
| 25 | |
| 26 | # TC_Appr1.10.2.POS Create General Namespace to add Approvals |
| 27 | ns create com.test.appr @[user.name] testid@aaf.att.com |
| 28 | ** Expect 201 ** |
| 29 | Created Namespace |
| 30 | |
| 31 | # TC_Appr1.10.10.POS Create Roles in Namespace |
| 32 | role create com.test.appr.@[user.name].addToUserRole |
| 33 | ** Expect 201 ** |
| 34 | Created Role |
| 35 | |
| 36 | role create com.test.appr.@[user.name].grantToPerm |
| 37 | ** Expect 201 ** |
| 38 | Created Role |
| 39 | |
| 40 | role create com.test.appr.@[user.name].ungrantFromPerm |
| 41 | ** Expect 201 ** |
| 42 | Created Role |
| 43 | |
| 44 | role create com.test.appr.@[user.name].grantFirstPerm |
| 45 | ** Expect 201 ** |
| 46 | Created Role |
| 47 | |
| 48 | role create com.test.appr.@[user.name].grantSecondPerm |
| 49 | ** Expect 201 ** |
| 50 | Created Role |
| 51 | |
| 52 | # TC_Appr1.10.12.POS Create Permissions in Namespace |
| 53 | perm create com.test.appr.@[user.name].ungrantFromRole myInstance myAction com.test.appr.@[user.name].ungrantFromPerm |
| 54 | ** Expect 201 ** |
| 55 | Created Permission |
| 56 | Granted Permission [com.test.appr.@[THE_USER].ungrantFromRole|myInstance|myAction] to Role [com.test.appr.@[THE_USER].ungrantFromPerm] |
| 57 | |
| 58 | perm create com.test.appr.@[user.name].grantToRole myInstance myAction |
| 59 | ** Expect 201 ** |
| 60 | Created Permission |
| 61 | |
| 62 | force perm create com.test.appr.@[user.name].deleteThisPerm myInstance myAction com.test.appr.@[user.name].grantedRole |
| 63 | ** Expect 201 ** |
| 64 | Created Permission |
| 65 | Granted Permission [com.test.appr.@[THE_USER].deleteThisPerm|myInstance|myAction] to Role [com.test.appr.@[THE_USER].grantedRole] (Created) |
| 66 | |
| 67 | perm create com.test.appr.@[user.name].grantTwoRoles myInstance myAction |
| 68 | ** Expect 201 ** |
| 69 | Created Permission |
| 70 | |
| 71 | perm create com.test.appr.@[user.name].ungrantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm |
| 72 | ** Expect 201 ** |
| 73 | Created Permission |
| 74 | Granted Permission [com.test.appr.@[THE_USER].ungrantTwoRoles|myInstance|myAction] to Role [com.test.appr.@[THE_USER].grantFirstPerm] |
| 75 | Granted Permission [com.test.appr.@[THE_USER].ungrantTwoRoles|myInstance|myAction] to Role [com.test.appr.@[THE_USER].grantSecondPerm] |
| 76 | |
| 77 | as testunused@aaf.att.com |
| 78 | # TC_Appr1.15.01.NEG Create Future and Approvals with non-admin request |
| 79 | user role add @[user.name]@@[user.name].appr.test.com com.test.appr.@[user.name].addToUserRole |
| 80 | ** Expect 403 ** |
| 81 | Failed [SVC2403]: Approvals required, but not requested by Client |
| 82 | |
| 83 | # TC_Appr1.15.02.NEG Create Approval for NS create |
| 84 | ns create com.test.appr.@[user.name].myProject @[user.name] |
| 85 | ** Expect 403 ** |
| 86 | Failed [SVC2403]: Approvals required, but not requested by Client |
| 87 | |
| 88 | # TC_Appr1.15.03.NEG Generate Approval for granting permission to role |
| 89 | perm grant com.test.appr.@[user.name].grantToRole myInstance myAction com.test.appr.@[user.name].grantToPerm |
| 90 | ** Expect 403 ** |
| 91 | Failed [SVC2403]: Approvals required, but not requested by Client |
| 92 | |
| 93 | # TC_Appr1.15.04.NEG Generate Approval for ungranting permission from role |
| 94 | perm ungrant com.test.appr.@[user.name].ungrantFromRole myInstance myAction com.test.appr.@[user.name].ungrantFromPerm |
| 95 | ** Expect 403 ** |
| 96 | Failed [SVC2403]: Approvals required, but not requested by Client |
| 97 | |
| 98 | # TC_Appr1.15.05.NEG Generate Approval for granting permission to role |
| 99 | perm grant com.test.appr.@[user.name].grantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm |
| 100 | ** Expect 403 ** |
| 101 | Failed [SVC2403]: Approvals required, but not requested by Client |
| 102 | Failed [SVC2403]: Approvals required, but not requested by Client |
| 103 | |
| 104 | # TC_Appr1.15.06.NEG Generate Approval for ungranting permission from role |
| 105 | perm ungrant com.test.appr.@[user.name].ungrantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm |
| 106 | ** Expect 403 ** |
| 107 | Failed [SVC2403]: Approvals required, but not requested by Client |
| 108 | Failed [SVC2403]: Approvals required, but not requested by Client |
| 109 | |
| 110 | # TC_Appr1.15.51.POS Create Future and Approvals with non-admin request |
| 111 | set request true |
| 112 | set request=true user role add @[user.name]@@[user.name].appr.test.com com.test.appr.@[user.name].addToUserRole |
| 113 | ** Expect 202 ** |
| 114 | UserRole Creation Accepted, but requires Approvals before actualizing |
| 115 | |
| 116 | # TC_Appr1.15.52.POS Create Approval for NS create |
| 117 | set request true |
| 118 | set request=true ns create com.test.appr.@[user.name].myProject @[user.name] |
| 119 | ** Expect 202 ** |
| 120 | Namespace Creation Accepted, but requires Approvals before actualizing |
| 121 | |
| 122 | # TC_Appr1.15.53.POS Generate Approval for granting permission to role |
| 123 | set request true |
| 124 | set request=true perm grant com.test.appr.@[user.name].grantToRole myInstance myAction com.test.appr.@[user.name].grantToPerm |
| 125 | ** Expect 202 ** |
| 126 | Permission Role Granted Accepted, but requires Approvals before actualizing |
| 127 | |
| 128 | # TC_Appr1.15.54.POS Generate Approval for ungranting permission from role |
| 129 | request perm ungrant com.test.appr.@[user.name].ungrantFromRole myInstance myAction com.test.appr.@[user.name].ungrantFromPerm |
| 130 | ** Expect 202 ** |
| 131 | Permission Role Ungranted Accepted, but requires Approvals before actualizing |
| 132 | |
| 133 | # TC_Appr1.15.55.POS Generate Approval for granting permission to role |
| 134 | request perm grant com.test.appr.@[user.name].grantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm |
| 135 | ** Expect 202 ** |
| 136 | Permission Role Granted Accepted, but requires Approvals before actualizing |
| 137 | Permission Role Granted Accepted, but requires Approvals before actualizing |
| 138 | |
| 139 | # TC_Appr1.15.56.POS Generate Approval for ungranting permission from role |
| 140 | request perm ungrant com.test.appr.@[user.name].ungrantTwoRoles myInstance myAction com.test.appr.@[user.name].grantFirstPerm,com.test.appr.@[user.name].grantSecondPerm |
| 141 | ** Expect 202 ** |
| 142 | Permission Role Ungranted Accepted, but requires Approvals before actualizing |
| 143 | Permission Role Ungranted Accepted, but requires Approvals before actualizing |
| 144 | |