sg481n | 43854a9 | 2017-08-03 17:27:34 -0400 | [diff] [blame] | 1 | set testid@aaf.att.com <pass> |
| 2 | set testunused@aaf.att.com <pass> |
| 3 | set XX@NS <pass> |
| 4 | set bogus boguspass |
| 5 | #delay 10 |
| 6 | set NFR 0 |
| 7 | as testid@aaf.att.com |
| 8 | # TC_Realm1.10.0.POS Validate no NS |
| 9 | ns list name com.test.TC_Realm1.@[user.name] |
| 10 | ** Expect 200,404 ** |
| 11 | |
| 12 | List Namespaces by Name[com.test.TC_Realm1.@[THE_USER]] |
| 13 | -------------------------------------------------------------------------------- |
| 14 | *** Namespace Not Found *** |
| 15 | |
| 16 | # TC_Realm1.10.1.POS Create Namespace to add IDs |
| 17 | ns create com.test.TC_Realm1.@[user.name] @[user.name] testid@aaf.att.com |
| 18 | ** Expect 201 ** |
| 19 | Created Namespace |
| 20 | |
| 21 | as XX@NS |
| 22 | # TC_Realm1.10.10.POS Grant ability to change delegates |
| 23 | force perm create com.att.aaf.delg com.att create com.test.TC_Realm1.@[user.name].change_delg |
| 24 | ** Expect 201 ** |
| 25 | Created Role [com.test.TC_Realm1.@[THE_USER].change_delg] |
| 26 | Created Permission |
| 27 | Granted Permission [com.att.aaf.delg|com.att|create] to Role [com.test.TC_Realm1.@[THE_USER].change_delg] |
| 28 | |
| 29 | # TC_Realm1.10.11.POS Create user role to change delegates |
| 30 | user role add testid@aaf.att.com com.test.TC_Realm1.@[user.name].change_delg |
| 31 | ** Expect 201 ** |
| 32 | Added Role [com.test.TC_Realm1.@[THE_USER].change_delg] to User [testid@aaf.att.com] |
| 33 | |
| 34 | as testid@aaf.att.com |
| 35 | # TC_Realm1.20.1.NEG Fail to create - default domain wrong |
| 36 | ns create com.test.TC_Realm1.@[user.name].project1 testunused |
| 37 | ** Expect 403 ** |
| 38 | Failed [SVC3403]: Forbidden - testunused@csp.att.com does not have permission to assume test status at AT&T |
| 39 | |
| 40 | # TC_Realm1.20.2.POS Create - default domain appended |
| 41 | ns create com.test.TC_Realm1.@[user.name].project1 @[user.name] @[user.name] |
| 42 | ** Expect 201 ** |
| 43 | Created Namespace |
| 44 | |
| 45 | # TC_Realm1.20.3.NEG Fail to create - default domain wrong |
| 46 | ns admin add com.test.TC_Realm1.@[user.name].project1 testunused |
| 47 | ** Expect 403 ** |
| 48 | Failed [SVC1403]: Forbidden - AT&T reports that testunused@csp.att.com is a faulty ID |
| 49 | |
| 50 | # TC_Realm1.20.4.POS Create - full domain given |
| 51 | ns admin add com.test.TC_Realm1.@[user.name].project1 testid@aaf.att.com |
| 52 | ** Expect 201 ** |
| 53 | Admin testid@aaf.att.com added to com.test.TC_Realm1.@[THE_USER].project1 |
| 54 | |
| 55 | # TC_Realm1.20.5.POS Delete - default domain appended |
| 56 | ns admin del com.test.TC_Realm1.@[user.name].project1 @[user.name] |
| 57 | ** Expect 200 ** |
| 58 | Admin @[THE_USER]@csp.att.com deleted from com.test.TC_Realm1.@[THE_USER].project1 |
| 59 | |
| 60 | # TC_Realm1.20.6.POS Add admin - default domain appended |
| 61 | ns admin add com.test.TC_Realm1.@[user.name].project1 @[user.name] |
| 62 | ** Expect 201 ** |
| 63 | Admin @[THE_USER]@csp.att.com added to com.test.TC_Realm1.@[THE_USER].project1 |
| 64 | |
| 65 | # TC_Realm1.30.1.POS Create role to add to users |
| 66 | role create com.test.TC_Realm1.@[user.name].role1 |
| 67 | ** Expect 201 ** |
| 68 | Created Role |
| 69 | |
| 70 | # TC_Realm1.30.2.NEG Add user, but default domain wrong |
| 71 | role user add com.test.TC_Realm1.@[user.name].role1 testunused |
| 72 | ** Expect 403 ** |
| 73 | Failed [SVC1403]: Forbidden - AT&T reports that testunused@csp.att.com is a faulty ID |
| 74 | |
| 75 | # TC_Realm1.30.3.POS Add user, with default domain appended |
| 76 | role user add com.test.TC_Realm1.@[user.name].role1 @[user.name] |
| 77 | ** Expect 201 ** |
| 78 | Added User [@[THE_USER]@csp.att.com] to Role [com.test.TC_Realm1.@[THE_USER].role1] |
| 79 | |
| 80 | # TC_Realm1.30.10.POS Role list, with default domain added |
| 81 | role list user testunused |
| 82 | ** Expect 200 ** |
| 83 | |
| 84 | List Roles for User [testunused@csp.att.com] |
| 85 | -------------------------------------------------------------------------------- |
| 86 | ROLE Name |
| 87 | PERM Type Instance Action |
| 88 | -------------------------------------------------------------------------------- |
| 89 | |
| 90 | # TC_Realm1.30.80.POS Delete user, with default domain appended |
| 91 | role user del com.test.TC_Realm1.@[user.name].role1 @[user.name] |
| 92 | ** Expect 200 ** |
| 93 | Removed User [@[THE_USER]@csp.att.com] from Role [com.test.TC_Realm1.@[THE_USER].role1] |
| 94 | |
| 95 | # TC_Realm1.40.1.POS Create role to add to users |
| 96 | role create com.test.TC_Realm1.@[user.name].role2 |
| 97 | ** Expect 201 ** |
| 98 | Created Role |
| 99 | |
| 100 | # TC_Realm1.40.2.NEG Add user, but default domain wrong |
| 101 | user role add testunused com.test.TC_Realm1.@[user.name].role2 |
| 102 | ** Expect 403 ** |
| 103 | Failed [SVC1403]: Forbidden - AT&T reports that testunused@csp.att.com is a faulty ID |
| 104 | |
| 105 | # TC_Realm1.40.3.POS Add user, with default domain appended |
| 106 | user role add @[user.name] com.test.TC_Realm1.@[user.name].role2 |
| 107 | ** Expect 201 ** |
| 108 | Added Role [com.test.TC_Realm1.@[THE_USER].role2] to User [@[THE_USER]@csp.att.com] |
| 109 | |
| 110 | # TC_Realm1.40.10.NEG Add delegate, but default domain wrong |
| 111 | user delegate add testunused testid 2099-01-01 |
| 112 | ** Expect 404 ** |
| 113 | Failed [SVC5404]: Not Found - [testunused@csp.att.com] is not a user in the company database. |
| 114 | |
| 115 | # TC_Realm1.40.11.POS Add delegate, with default domain appended |
| 116 | force user delegate add @[user.name] @[user.name] 2099-01-01 |
| 117 | ** Expect 201 ** |
| 118 | Delegate Added |
| 119 | |
| 120 | # TC_Realm1.40.12.POS Update delegate, with default domain appended |
| 121 | user delegate upd @[user.name] @[user.name] 2099-01-01 |
| 122 | ** Expect 200 ** |
| 123 | Delegate Updated |
| 124 | |
| 125 | as XX@NS |
| 126 | # TC_Realm1.40.20.POS List delegate, with default domain appended |
| 127 | user list delegates user @[user.name] |
| 128 | ** Expect 200 ** |
| 129 | |
| 130 | List Delegates by user[@[THE_USER]@csp.att.com] |
| 131 | -------------------------------------------------------------------------------- |
| 132 | User Delegate Expires |
| 133 | -------------------------------------------------------------------------------- |
| 134 | @[THE_USER]@csp.att.com @[THE_USER]@csp.att.com XXXX-XX-XX |
| 135 | |
| 136 | # TC_Realm1.40.21.POS List delegate, with default domain appended |
| 137 | user list delegates delegate @[user.name] |
| 138 | ** Expect 200 ** |
| 139 | |
| 140 | List Delegates by delegate[@[THE_USER]@csp.att.com] |
| 141 | -------------------------------------------------------------------------------- |
| 142 | User Delegate Expires |
| 143 | -------------------------------------------------------------------------------- |
| 144 | @[THE_USER]@csp.att.com @[THE_USER]@csp.att.com XXXX-XX-XX |
| 145 | |
| 146 | as testid@aaf.att.com |
| 147 | # TC_Realm1.40.80.POS Delete user, with default domain appended |
| 148 | user role del @[user.name] com.test.TC_Realm1.@[user.name].role2 |
| 149 | ** Expect 200 ** |
| 150 | Removed Role [com.test.TC_Realm1.@[THE_USER].role2] from User [@[THE_USER]@csp.att.com] |
| 151 | |
| 152 | # TC_Realm1.40.81.POS Delete delegate, with default domain appended |
| 153 | user delegate del @[user.name] |
| 154 | ** Expect 200 ** |
| 155 | Delegate Deleted |
| 156 | |
| 157 | as testid@aaf.att.com |
| 158 | # TC_Realm1.99.1.POS Delete delgates |
| 159 | user delegate del @[user.name] |
| 160 | ** Expect 200,404 ** |
| 161 | Failed [SVC7404]: Not Found - Cannot delete non-existent Delegate |
| 162 | |
| 163 | # TC_Realm1.99.2.POS Delete user roles |
| 164 | role user del com.test.TC_Realm1.@[user.name].role1 @[user.name] |
| 165 | ** Expect 200,404 ** |
| 166 | Failed [SVC6404]: Not Found - User [ @[THE_USER]@csp.att.com ] is not Assigned to the Role [ com.test.TC_Realm1.@[THE_USER].role1 ] |
| 167 | |
| 168 | user role del @[user.name] com.test.TC_Realm1.@[user.name].role2 |
| 169 | ** Expect 200,404 ** |
| 170 | Failed [SVC6404]: Not Found - User [ @[THE_USER]@csp.att.com ] is not Assigned to the Role [ com.test.TC_Realm1.@[THE_USER].role2 ] |
| 171 | |
| 172 | # TC_Realm1.99.3.POS Delete roles |
| 173 | role delete com.test.TC_Realm1.@[user.name].role1 |
| 174 | ** Expect 200,404 ** |
| 175 | Deleted Role |
| 176 | |
| 177 | role delete com.test.TC_Realm1.@[user.name].role2 |
| 178 | ** Expect 200,404 ** |
| 179 | Deleted Role |
| 180 | |
| 181 | as XX@NS |
| 182 | # TC_Realm1.99.10.POS UnGrant ability to change delegates |
| 183 | perm ungrant com.att.aaf.delg com.att change com.test.TC_Realm1.@[user.name].change_delg |
| 184 | ** Expect 200,404 ** |
| 185 | Failed [SVC4404]: Not Found - Permission [com.att.aaf.delg|com.att|change] not associated with any Role |
| 186 | |
| 187 | as testid@aaf.att.com |
| 188 | # TC_Realm1.99.11.POS Delete role to change delegates |
| 189 | set force true |
| 190 | set force=true role delete com.test.TC_Realm1.@[user.name].change_delg |
| 191 | ** Expect 200,404 ** |
| 192 | Deleted Role |
| 193 | |
| 194 | # TC_Realm1.99.98.POS Delete Namespaces |
| 195 | ns delete com.test.TC_Realm1.@[user.name] |
| 196 | ** Expect 200,404 ** |
| 197 | Deleted Namespace |
| 198 | |
| 199 | ns delete com.test.TC_Realm1.@[user.name].project1 |
| 200 | ** Expect 200,404 ** |
| 201 | Deleted Namespace |
| 202 | |
| 203 | # TC_Realm1.99.99.POS Verify Cleaned NS |
| 204 | ns list name com.test.TC_Realm1.@[user.name] |
| 205 | ** Expect 200,404 ** |
| 206 | |
| 207 | List Namespaces by Name[com.test.TC_Realm1.@[THE_USER]] |
| 208 | -------------------------------------------------------------------------------- |
| 209 | *** Namespace Not Found *** |
| 210 | |