1 set testid@aaf.att.com <pass>
2 set testunused@aaf.att.com <pass>
8 # TC_UR1.10.0.POS Validate no NS
9 ns list name com.test.TC_UR1.@[user.name]
12 List Namespaces by Name[com.test.TC_UR1.@[THE_USER]]
13 --------------------------------------------------------------------------------
14 *** Namespace Not Found ***
16 # TC_UR1.10.1.POS Create Namespace to add IDs
17 ns create com.test.TC_UR1.@[user.name] @[user.name] testid@aaf.att.com
21 # TC_Role1.10.10.POS Create role to assign mechid perm to
22 role create com.test.TC_UR1.@[user.name].cred_admin
27 # TC_Role1.10.11.POS Assign role to mechid perm
28 perm grant com.att.aaf.mechid com.att create com.test.TC_UR1.@[user.name].cred_admin
30 Granted Permission [com.att.aaf.mechid|com.att|create] to Role [com.test.TC_UR1.@[THE_USER].cred_admin]
33 # TC_Role1.10.12.POS Assign user for creating creds
34 user role add testid@aaf.att.com com.test.TC_UR1.@[user.name].cred_admin
36 Added Role [com.test.TC_UR1.@[THE_USER].cred_admin] to User [testid@aaf.att.com]
38 # TC_UR1.10.20.POS Create two Credentials
39 user cred add m00001@@[user.name].TC_UR1.test.com "abc123sd"
41 Added Credential [m00001@@[THE_USER].TC_UR1.test.com]
43 user cred add m00002@@[user.name].TC_UR1.test.com "abc123sd"
45 Added Credential [m00002@@[THE_USER].TC_UR1.test.com]
47 # TC_UR1.10.21.POS Create two Roles
48 role create com.test.TC_UR1.@[user.name].r1
52 role create com.test.TC_UR1.@[user.name].r2
56 # TC_UR1.23.1.NEG Too Few Args for User Role 1
59 user role <add|del|setTo|extend> <user> [role[,role]* (!REQ S)]
60 cred <add|del|reset|extend> <id> [password (! D|E)] [entry# (if multi)]
61 delegate <add|upd|del> <from> [to REQ A&U] [until (YYYY-MM-DD) REQ A]
63 perm <type> <instance> <action>
65 delegates <user|delegate> <id>
66 approvals <user|approver|ticket> <value>
69 # TC_UR1.23.2.NEG Too Few Args for user role
72 Too few args: role <add|del|setTo|extend> <user> [role[,role]* (!REQ S)]
74 # TC_UR1.23.3.NEG Too Few Args for user role add
77 Too few args: role <add|del|setTo|extend> <user> [role[,role]* (!REQ S)]
79 # TC_UR1.30.10.POS Create a UserRole
80 user role add m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1
82 Added Role [com.test.TC_UR1.@[THE_USER].r1] to User [m00001@@[THE_USER].TC_UR1.test.com]
84 # TC_UR1.30.11.NEG Created UserRole Exists
85 user role add m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1
87 Failed [SVC1409]: Conflict Already Exists - User Role exists
89 # TC_UR1.30.13.POS Delete UserRole
91 user role del m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1
93 Removed Role [com.test.TC_UR1.@[THE_USER].r1] from User [m00001@@[THE_USER].TC_UR1.test.com]
95 # TC_UR1.30.20.POS Create multiple UserRoles
96 user role add m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1,com.test.TC_UR1.@[user.name].r2
98 Added Role [com.test.TC_UR1.@[THE_USER].r1] to User [m00001@@[THE_USER].TC_UR1.test.com]
99 Added Role [com.test.TC_UR1.@[THE_USER].r2] to User [m00001@@[THE_USER].TC_UR1.test.com]
101 # TC_UR1.30.21.NEG Created UserRole Exists
102 user role add m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1,com.test.TC_UR1.@[user.name].r2
104 Failed [SVC1409]: Conflict Already Exists - User Role exists
105 Failed [SVC1409]: Conflict Already Exists - User Role exists
107 # TC_UR1.30.23.POS Delete UserRole
109 user role del m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1,com.test.TC_UR1.@[user.name].r2
111 Removed Role [com.test.TC_UR1.@[THE_USER].r1] from User [m00001@@[THE_USER].TC_UR1.test.com]
112 Removed Role [com.test.TC_UR1.@[THE_USER].r2] from User [m00001@@[THE_USER].TC_UR1.test.com]
114 # TC_UR1.30.30.POS Create a Role User
115 role user add com.test.TC_UR1.@[user.name].r1 m00001@@[user.name].TC_UR1.test.com
117 Added User [m00001@@[THE_USER].TC_UR1.test.com] to Role [com.test.TC_UR1.@[THE_USER].r1]
119 # TC_UR1.30.31.NEG Created Role User Exists
120 role user add com.test.TC_UR1.@[user.name].r1 m00001@@[user.name].TC_UR1.test.com
122 Failed [SVC1409]: Conflict Already Exists - User Role exists
124 # TC_UR1.30.33.POS Delete Role User
126 role user del com.test.TC_UR1.@[user.name].r1 m00001@@[user.name].TC_UR1.test.com
128 Removed User [m00001@@[THE_USER].TC_UR1.test.com] from Role [com.test.TC_UR1.@[THE_USER].r1]
130 # TC_UR1.30.40.POS Create multiple Role Users
131 role user add com.test.TC_UR1.@[user.name].r1 m00001@@[user.name].TC_UR1.test.com,m00002@@[user.name].TC_UR1.test.com
133 Added User [m00001@@[THE_USER].TC_UR1.test.com] to Role [com.test.TC_UR1.@[THE_USER].r1]
134 Added User [m00002@@[THE_USER].TC_UR1.test.com] to Role [com.test.TC_UR1.@[THE_USER].r1]
136 # TC_UR1.30.41.NEG Created Role User Exists
137 role user add com.test.TC_UR1.@[user.name].r1 m00001@@[user.name].TC_UR1.test.com,m00002@@[user.name].TC_UR1.test.com
139 Failed [SVC1409]: Conflict Already Exists - User Role exists
140 Failed [SVC1409]: Conflict Already Exists - User Role exists
142 # TC_UR1.30.43.POS Delete Role Users
144 role user del com.test.TC_UR1.@[user.name].r1 m00001@@[user.name].TC_UR1.test.com,m00002@@[user.name].TC_UR1.test.com
146 Removed User [m00001@@[THE_USER].TC_UR1.test.com] from Role [com.test.TC_UR1.@[THE_USER].r1]
147 Removed User [m00002@@[THE_USER].TC_UR1.test.com] from Role [com.test.TC_UR1.@[THE_USER].r1]
149 # TC_UR1.40.10.POS Create multiple UserRoles
150 user role setTo m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1,com.test.TC_UR1.@[user.name].r2
152 Set User's Roles to [com.test.TC_UR1.@[THE_USER].r1,com.test.TC_UR1.@[THE_USER].r2]
154 # TC_UR1.40.11.POS Reset userrole for a user
155 user role setTo m00001@@[user.name].TC_UR1.test.com
157 Set User's Roles to []
159 # TC_UR1.40.12.NEG Create userrole where Role doesn't exist
160 user role setTo m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r5
162 Failed [SVC3404]: Not Found - Role [com.test.TC_UR1.@[THE_USER].r5] does not exist
164 # TC_UR1.40.13.NEG Create userrole where User doesn't exist
165 user role setTo m99999@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1
167 Failed [SVC2403]: Forbidden - m99999@@[THE_USER].TC_UR1.test.com is not a valid AAF Credential
169 as testunused@aaf.att.com
170 # TC_UR1.40.19.NEG User without permission tries to add userrole
171 user role setTo m00001@@[user.name].TC_UR1.test.com com.test.TC_UR1.@[user.name].r1
173 Failed [SVC1403]: Forbidden - [testunused@aaf.att.com] may not write Role [com.test.TC_UR1.@[THE_USER].r1]
175 # TC_UR1.40.20.NEG User without permission tries to add userrole
176 role user setTo com.test.TC_UR1.@[user.name].r1 m00001@@[user.name].TC_UR1.test.com
178 Failed [SVC1403]: Forbidden - [testunused@aaf.att.com] may not write Role [com.test.TC_UR1.@[THE_USER].r1]
180 as testid@aaf.att.com
181 # TC_UR1.40.22.POS Reset userrole for a user
182 role user setTo com.test.TC_UR1.@[user.name].r1
184 Set the Role to Users []
187 # TC_UR1.40.23.NEG Create UserRole where Role doesn't exist
188 role user setTo com.test.TC_UR1.@[user.name].r5 m00001@@[user.name].TC_UR1.test.com
190 Failed [SVC3404]: Not Found - Role [com.test.TC_UR1.@[THE_USER].r5] does not exist
193 # TC_UR1.40.24.NEG Create UserRole where User doesn't exist
194 role user setTo com.test.TC_UR1.@[user.name].r1 m99999@@[user.name].TC_UR1.test.com
196 Failed [SVC2403]: Forbidden - m99999@@[THE_USER].TC_UR1.test.com is not a valid AAF Credential
198 # Need to let DB catch up on deletes
200 as testid@aaf.att.com
201 # TC_UR1.99.1.POS Remove User from Role
202 role user del com.test.TC_UR1.@[user.name].r1 m00001@@[user.name].TC_UR1.test.com,m00002@@[user.name].TC_UR1.test.com
204 Failed [SVC6404]: Not Found - User [ m00001@@[THE_USER].TC_UR1.test.com ] is not Assigned to the Role [ com.test.TC_UR1.@[THE_USER].r1 ]
205 Failed [SVC6404]: Not Found - User [ m00002@@[THE_USER].TC_UR1.test.com ] is not Assigned to the Role [ com.test.TC_UR1.@[THE_USER].r1 ]
207 role user del com.test.TC_UR1.@[user.name].r2 m00001@@[user.name].TC_UR1.test.com,m00002@@[user.name].TC_UR1.test.com
209 Failed [SVC6404]: Not Found - User [ m00001@@[THE_USER].TC_UR1.test.com ] is not Assigned to the Role [ com.test.TC_UR1.@[THE_USER].r2 ]
210 Failed [SVC6404]: Not Found - User [ m00002@@[THE_USER].TC_UR1.test.com ] is not Assigned to the Role [ com.test.TC_UR1.@[THE_USER].r2 ]
212 role user setTo com.test.TC_UR1.@[user.name].r1
214 Set the Role to Users []
216 # TC_UR1.99.2.POS Remove ability to create creds
217 user role del testid@aaf.att.com com.test.TC_UR1.@[user.name].cred_admin
219 Removed Role [com.test.TC_UR1.@[THE_USER].cred_admin] from User [testid@aaf.att.com]
222 perm ungrant com.att.aaf.mechid com.att create com.test.TC_UR1.@[user.name].cred_admin
224 UnGranted Permission [com.att.aaf.mechid|com.att|create] from Role [com.test.TC_UR1.@[THE_USER].cred_admin]
226 as testid@aaf.att.com
227 role delete com.test.TC_UR1.@[user.name].cred_admin
231 # TC_UR1.99.3.POS Delete Creds
233 user cred del m00001@@[user.name].TC_UR1.test.com
235 Deleted Credential [m00001@@[THE_USER].TC_UR1.test.com]
238 user cred del m00002@@[user.name].TC_UR1.test.com
240 Deleted Credential [m00002@@[THE_USER].TC_UR1.test.com]
242 # TC_UR1.99.4.POS Delete Roles
244 set force=true role delete com.test.TC_UR1.@[user.name].r1
249 set force=true role delete com.test.TC_UR1.@[user.name].r2
253 # TC_UR1.99.5.POS Delete Namespace
255 set force=true ns delete com.test.TC_UR1.@[user.name]
259 # TC_UR1.99.99.POS Verify Cleaned NS
260 ns list name com.test.TC_UR1.@[user.name]
263 List Namespaces by Name[com.test.TC_UR1.@[THE_USER]]
264 --------------------------------------------------------------------------------
265 *** Namespace Not Found ***