1 set testid@aaf.att.com <pass>
2 set testunused@aaf.att.com <pass>
4 set m99999@@[THE_USER].delg.test.com password123
5 set bogus@aaf.att.com boguspass
8 # TC_DELG1.10.1.POS Check For Existing Data
10 ns list name com.test.delg.@[user.name]
13 List Namespaces by Name[com.test.delg.@[THE_USER]]
14 --------------------------------------------------------------------------------
15 *** Namespace Not Found ***
18 perm create com.att.aaf.delg com.att * com.att.admin
20 Failed [SVC1409]: Conflict Already Exists - Permission [com.att.aaf.delg|com.att|*] already exists.
22 user list delegates delegate @[user.name]@csp.att.com
24 Failed [SVC7404]: Not Found - Delegate [@[THE_USER]@csp.att.com] is not delegating for anyone.
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
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
36 Failed [SVC3404]: Not Found - Role [com.test.delg.@[THE_USER].change_delg] does not exist
38 # TC_DELG1.10.11.POS Grant ability to change delegates
39 role create com.test.delg.@[user.name].change_delg
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
46 Granted Permission [com.att.aaf.mechid|com.att|create] to Role [com.test.delg.@[THE_USER].change_delg]
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
51 Added Role [com.test.delg.@[THE_USER].change_delg] to User [testid@aaf.att.com]
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
56 Granted Permission [com.att.aaf.delg|com.att|create] to Role [com.test.delg.@[THE_USER].change_delg]
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
62 Added Credential [m99999@@[THE_USER].delg.test.com]
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
68 UnGranted Permission [com.att.aaf.mechid|com.att|create] from Role [com.test.delg.@[THE_USER].change_delg]
71 # TC_DELG1.10.99.POS Check for Data as Correct
72 ns list name com.test.delg.@[user.name]
75 List Namespaces by Name[com.test.delg.@[THE_USER]]
76 --------------------------------------------------------------------------------
77 com.test.delg.@[THE_USER]
81 @[THE_USER]@csp.att.com
83 com.test.delg.@[THE_USER].admin
84 com.test.delg.@[THE_USER].change_delg
85 com.test.delg.@[THE_USER].owner
87 com.test.delg.@[THE_USER].access * *
88 com.test.delg.@[THE_USER].access * read
90 m99999@@[THE_USER].delg.test.com
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'
95 Failed [SVC5404]: Not Found - [aa111q@csp.att.com] is not a user in the company database.
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'
100 Failed [SVC5404]: Not Found - [aa111q@csp.att.com] is not a user in the company database.
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'
106 Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].delg.test.com] may not create a delegate for [@[THE_USER]@csp.att.com]
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'
112 Failed [SVC1404]: Not Found - [@[THE_USER]@csp.att.com] does not have a Delegate Record to [write].
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'
117 Failed [SVC1406]: Not Acceptable - [@[THE_USER]@csp.att.com] cannot be a delegate for self
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'
125 # TC_DELG1.20.30.POS Expect Delegates for User
126 user list delegates user @[user.name]@csp.att.com
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
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'
139 Failed [SVC1409]: Conflict Already Exists - [@[THE_USER]@csp.att.com] already delegates to [@[THE_USER]@csp.att.com]
142 # TC_DELG1.20.40.POS Expect Delegates for User
143 user list delegates user @[user.name]@csp.att.com
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
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'
159 # TC_DELG1.20.82.POS Expect Delegates for User
160 user list delegates user @[user.name]@csp.att.com
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
169 # TC_DELG1.20.83.POS Expect Delegate to show up in list
170 user list delegates delegate @[user.name]@csp.att.com
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
180 # TC_DELG1.99.0.POS Check for Data as Correct
181 ns list name com.test.delg.@[user.name]
184 List Namespaces by Name[com.test.delg.@[THE_USER]]
185 --------------------------------------------------------------------------------
186 com.test.delg.@[THE_USER]
190 @[THE_USER]@csp.att.com
192 com.test.delg.@[THE_USER].admin
193 com.test.delg.@[THE_USER].change_delg
194 com.test.delg.@[THE_USER].owner
196 com.test.delg.@[THE_USER].access * *
197 com.test.delg.@[THE_USER].access * read
199 m99999@@[THE_USER].delg.test.com
201 # TC_DELG1.99.10.POS Delete Delegates
202 user delegate del @[user.name]@csp.att.com
206 # TC_DELG1.99.30.POS Delete Namespace com.att.test.id
207 force ns delete com.test.delg.@[user.name]
211 # TC_DELG1.99.98.POS Check for Delegate Data as Correct
212 user list delegates user @[user.name]@csp.att.com
214 Failed [SVC7404]: Not Found - No Delegate found for [@[THE_USER]@csp.att.com]
216 # TC_DELG1.99.99.POS Check for NS Data as Correct
217 ns list name com.test.delg.@[user.name]
220 List Namespaces by Name[com.test.delg.@[THE_USER]]
221 --------------------------------------------------------------------------------
222 *** Namespace Not Found ***