sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 1 | set testid@aaf.att.com <pass> |
| 2 | set testunused@aaf.att.com <pass> |
| 3 | set XX@NS <pass> |
| 4 | set m99999@@[THE_USER].delg.test.com password123 |
| 5 | set bogus@aaf.att.com boguspass |
| 6 | #delay 10 |
| 7 | set NFR 0 |
| 8 | # TC_DELG1.10.1.POS Check For Existing Data |
| 9 | as testid@aaf.att.com |
| 10 | ns list name com.test.delg.@[user.name] |
| 11 | ** Expect 200 ** |
| 12 | |
| 13 | List Namespaces by Name[com.test.delg.@[THE_USER]] |
| 14 | -------------------------------------------------------------------------------- |
| 15 | *** Namespace Not Found *** |
| 16 | |
| 17 | as XX@NS |
| 18 | perm create com.att.aaf.delg com.att * com.att.admin |
| 19 | ** Expect 201,409 ** |
| 20 | Failed [SVC1409]: Conflict Already Exists - Permission [com.att.aaf.delg|com.att|*] already exists. |
| 21 | |
| 22 | user list delegates delegate @[user.name]@csp.att.com |
| 23 | ** Expect 404 ** |
| 24 | Failed [SVC7404]: Not Found - Delegate [@[THE_USER]@csp.att.com] is not delegating for anyone. |
| 25 | |
| 26 | as testid@aaf.att.com |
| 27 | # TC_DELG1.10.2.POS Create Namespace to add IDs |
| 28 | ns create com.test.delg.@[user.name] @[user.name] testid@aaf.att.com |
| 29 | ** Expect 201 ** |
| 30 | Created Namespace |
| 31 | |
| 32 | as XX@NS |
| 33 | # TC_DELG1.10.10.POS Grant ability to change delegates |
| 34 | force perm grant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg |
| 35 | ** Expect 404 ** |
| 36 | Failed [SVC3404]: Not Found - Role [com.test.delg.@[THE_USER].change_delg] does not exist |
| 37 | |
| 38 | # TC_DELG1.10.11.POS Grant ability to change delegates |
| 39 | role create com.test.delg.@[user.name].change_delg |
| 40 | ** Expect 201 ** |
| 41 | Created Role |
| 42 | |
| 43 | # TC_DELG1.10.12.POS Grant ability to change delegates |
| 44 | force perm grant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg |
| 45 | ** Expect 201 ** |
| 46 | Granted Permission [com.att.aaf.mechid|com.att|create] to Role [com.test.delg.@[THE_USER].change_delg] |
| 47 | |
| 48 | # TC_DELG1.10.14.POS Create user role to change delegates |
| 49 | user role add testid@aaf.att.com com.test.delg.@[user.name].change_delg |
| 50 | ** Expect 201 ** |
| 51 | Added Role [com.test.delg.@[THE_USER].change_delg] to User [testid@aaf.att.com] |
| 52 | |
| 53 | # TC_DELG1.10.15.POS Grant ability to create cred |
| 54 | perm grant com.att.aaf.delg com.att create com.test.delg.@[user.name].change_delg |
| 55 | ** Expect 201 ** |
| 56 | Granted Permission [com.att.aaf.delg|com.att|create] to Role [com.test.delg.@[THE_USER].change_delg] |
| 57 | |
| 58 | as testid@aaf.att.com |
| 59 | # TC_DELG1.10.30.POS Create cred that will change his own delg |
| 60 | user cred add m99999@@[user.name].delg.test.com password123 |
| 61 | ** Expect 201 ** |
| 62 | Added Credential [m99999@@[THE_USER].delg.test.com] |
| 63 | |
| 64 | as XX@NS |
| 65 | Unknown Instruction "TC_DELG1.10.31.POS" |
| 66 | perm ungrant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg |
| 67 | ** Expect 200 ** |
| 68 | UnGranted Permission [com.att.aaf.mechid|com.att|create] from Role [com.test.delg.@[THE_USER].change_delg] |
| 69 | |
| 70 | as testid@aaf.att.com |
| 71 | # TC_DELG1.10.99.POS Check for Data as Correct |
| 72 | ns list name com.test.delg.@[user.name] |
| 73 | ** Expect 200 ** |
| 74 | |
| 75 | List Namespaces by Name[com.test.delg.@[THE_USER]] |
| 76 | -------------------------------------------------------------------------------- |
| 77 | com.test.delg.@[THE_USER] |
| 78 | Administrators |
| 79 | testid@aaf.att.com |
| 80 | Responsible Parties |
| 81 | @[THE_USER]@csp.att.com |
| 82 | Roles |
| 83 | com.test.delg.@[THE_USER].admin |
| 84 | com.test.delg.@[THE_USER].change_delg |
| 85 | com.test.delg.@[THE_USER].owner |
| 86 | Permissions |
| 87 | com.test.delg.@[THE_USER].access * * |
| 88 | com.test.delg.@[THE_USER].access * read |
| 89 | Credentials |
| 90 | m99999@@[THE_USER].delg.test.com |
| 91 | |
| 92 | # TC_DELG1.20.10.NEG Cannot create delegate with unknown user ID |
| 93 | user delegate add aa111q@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00' |
| 94 | ** Expect 404 ** |
| 95 | Failed [SVC5404]: Not Found - [aa111q@csp.att.com] is not a user in the company database. |
| 96 | |
| 97 | # TC_DELG1.20.11.NEG Cannot Create Delegate with unknown delegate |
| 98 | user delegate add @[user.name]@csp.att.com aa111q@csp.att.com '2099-12-31 06:00' |
| 99 | ** Expect 404 ** |
| 100 | Failed [SVC5404]: Not Found - [aa111q@csp.att.com] is not a user in the company database. |
| 101 | |
| 102 | # TC_DELG1.20.20.NEG May not change user, no delegate permission |
| 103 | as m99999@@[THE_USER].delg.test.com |
| 104 | force user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00' |
| 105 | ** Expect 403 ** |
| 106 | Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].delg.test.com] may not create a delegate for [@[THE_USER]@csp.att.com] |
| 107 | |
| 108 | as testid@aaf.att.com |
| 109 | # TC_DELG1.20.21.NEG Fail to Update Delegate that doesnt exist |
| 110 | user delegate upd @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00' |
| 111 | ** Expect 404 ** |
| 112 | Failed [SVC1404]: Not Found - [@[THE_USER]@csp.att.com] does not have a Delegate Record to [write]. |
| 113 | |
| 114 | # TC_DELG1.20.22.NEG May not create delegate for self. |
| 115 | user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00' |
| 116 | ** Expect 406 ** |
| 117 | Failed [SVC1406]: Not Acceptable - [@[THE_USER]@csp.att.com] cannot be a delegate for self |
| 118 | |
| 119 | # TC_DELG1.20.23.POS May create delegate for self for tests by forcing. |
| 120 | force user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00' |
| 121 | ** Expect 201 ** |
| 122 | Delegate Added |
| 123 | |
| 124 | as XX@NS |
| 125 | # TC_DELG1.20.30.POS Expect Delegates for User |
| 126 | user list delegates user @[user.name]@csp.att.com |
| 127 | ** Expect 200 ** |
| 128 | |
| 129 | List Delegates by user[@[THE_USER]@csp.att.com] |
| 130 | -------------------------------------------------------------------------------- |
| 131 | User Delegate Expires |
| 132 | -------------------------------------------------------------------------------- |
| 133 | @[THE_USER]@csp.att.com @[THE_USER]@csp.att.com XXXX-XX-XX |
| 134 | |
| 135 | as testid@aaf.att.com |
| 136 | # TC_DELG1.20.35.NEG Fail Create when exists |
| 137 | user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00' |
| 138 | ** Expect 409 ** |
| 139 | Failed [SVC1409]: Conflict Already Exists - [@[THE_USER]@csp.att.com] already delegates to [@[THE_USER]@csp.att.com] |
| 140 | |
| 141 | as XX@NS |
| 142 | # TC_DELG1.20.40.POS Expect Delegates for User |
| 143 | user list delegates user @[user.name]@csp.att.com |
| 144 | ** Expect 200 ** |
| 145 | |
| 146 | List Delegates by user[@[THE_USER]@csp.att.com] |
| 147 | -------------------------------------------------------------------------------- |
| 148 | User Delegate Expires |
| 149 | -------------------------------------------------------------------------------- |
| 150 | @[THE_USER]@csp.att.com @[THE_USER]@csp.att.com XXXX-XX-XX |
| 151 | |
| 152 | as testid@aaf.att.com |
| 153 | # TC_DELG1.20.46.POS Update Delegate with new Date |
| 154 | user delegate upd @[user.name]@csp.att.com @[user.name]@csp.att.com '2999-01-01 06:00' |
| 155 | ** Expect 200 ** |
| 156 | Delegate Updated |
| 157 | |
| 158 | as XX@NS |
| 159 | # TC_DELG1.20.82.POS Expect Delegates for User |
| 160 | user list delegates user @[user.name]@csp.att.com |
| 161 | ** Expect 200 ** |
| 162 | |
| 163 | List Delegates by user[@[THE_USER]@csp.att.com] |
| 164 | -------------------------------------------------------------------------------- |
| 165 | User Delegate Expires |
| 166 | -------------------------------------------------------------------------------- |
| 167 | @[THE_USER]@csp.att.com @[THE_USER]@csp.att.com XXXX-XX-XX |
| 168 | |
| 169 | # TC_DELG1.20.83.POS Expect Delegate to show up in list |
| 170 | user list delegates delegate @[user.name]@csp.att.com |
| 171 | ** Expect 200 ** |
| 172 | |
| 173 | List Delegates by delegate[@[THE_USER]@csp.att.com] |
| 174 | -------------------------------------------------------------------------------- |
| 175 | User Delegate Expires |
| 176 | -------------------------------------------------------------------------------- |
| 177 | @[THE_USER]@csp.att.com @[THE_USER]@csp.att.com XXXX-XX-XX |
| 178 | |
| 179 | as XX@NS |
| 180 | # TC_DELG1.99.0.POS Check for Data as Correct |
| 181 | ns list name com.test.delg.@[user.name] |
| 182 | ** Expect 200,404 ** |
| 183 | |
| 184 | List Namespaces by Name[com.test.delg.@[THE_USER]] |
| 185 | -------------------------------------------------------------------------------- |
| 186 | com.test.delg.@[THE_USER] |
| 187 | Administrators |
| 188 | testid@aaf.att.com |
| 189 | Responsible Parties |
| 190 | @[THE_USER]@csp.att.com |
| 191 | Roles |
| 192 | com.test.delg.@[THE_USER].admin |
| 193 | com.test.delg.@[THE_USER].change_delg |
| 194 | com.test.delg.@[THE_USER].owner |
| 195 | Permissions |
| 196 | com.test.delg.@[THE_USER].access * * |
| 197 | com.test.delg.@[THE_USER].access * read |
| 198 | Credentials |
| 199 | m99999@@[THE_USER].delg.test.com |
| 200 | |
| 201 | # TC_DELG1.99.10.POS Delete Delegates |
| 202 | user delegate del @[user.name]@csp.att.com |
| 203 | ** Expect 200,404 ** |
| 204 | Delegate Deleted |
| 205 | |
| 206 | # TC_DELG1.99.30.POS Delete Namespace com.att.test.id |
| 207 | force ns delete com.test.delg.@[user.name] |
| 208 | ** Expect 200,404 ** |
| 209 | Deleted Namespace |
| 210 | |
| 211 | # TC_DELG1.99.98.POS Check for Delegate Data as Correct |
| 212 | user list delegates user @[user.name]@csp.att.com |
| 213 | ** Expect 200,404 ** |
| 214 | Failed [SVC7404]: Not Found - No Delegate found for [@[THE_USER]@csp.att.com] |
| 215 | |
| 216 | # TC_DELG1.99.99.POS Check for NS Data as Correct |
| 217 | ns list name com.test.delg.@[user.name] |
| 218 | ** Expect 200,404 ** |
| 219 | |
| 220 | List Namespaces by Name[com.test.delg.@[THE_USER]] |
| 221 | -------------------------------------------------------------------------------- |
| 222 | *** Namespace Not Found *** |
| 223 | |