blob: 962caf6a1eac1f4ec8b8a6509be9ec9f2bc97bee [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001set testid@aaf.att.com <pass>
2set testunused@aaf.att.com <pass>
3set XX@NS <pass>
4set m99999@@[THE_USER].delg.test.com password123
5set bogus@aaf.att.com boguspass
6#delay 10
7set NFR 0
8# TC_DELG1.10.1.POS Check For Existing Data
9as testid@aaf.att.com
10ns list name com.test.delg.@[user.name]
11** Expect 200 **
12
13List Namespaces by Name[com.test.delg.@[THE_USER]]
14--------------------------------------------------------------------------------
15 *** Namespace Not Found ***
16
17as XX@NS
18perm create com.att.aaf.delg com.att * com.att.admin
19** Expect 201,409 **
20Failed [SVC1409]: Conflict Already Exists - Permission [com.att.aaf.delg|com.att|*] already exists.
21
22user list delegates delegate @[user.name]@csp.att.com
23** Expect 404 **
24Failed [SVC7404]: Not Found - Delegate [@[THE_USER]@csp.att.com] is not delegating for anyone.
25
26as testid@aaf.att.com
27# TC_DELG1.10.2.POS Create Namespace to add IDs
28ns create com.test.delg.@[user.name] @[user.name] testid@aaf.att.com
29** Expect 201 **
30Created Namespace
31
32as XX@NS
33# TC_DELG1.10.10.POS Grant ability to change delegates
34force perm grant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg
35** Expect 404 **
36Failed [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
39role create com.test.delg.@[user.name].change_delg
40** Expect 201 **
41Created Role
42
43# TC_DELG1.10.12.POS Grant ability to change delegates
44force perm grant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg
45** Expect 201 **
46Granted 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
49user role add testid@aaf.att.com com.test.delg.@[user.name].change_delg
50** Expect 201 **
51Added 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
54perm grant com.att.aaf.delg com.att create com.test.delg.@[user.name].change_delg
55** Expect 201 **
56Granted Permission [com.att.aaf.delg|com.att|create] to Role [com.test.delg.@[THE_USER].change_delg]
57
58as testid@aaf.att.com
59# TC_DELG1.10.30.POS Create cred that will change his own delg
60user cred add m99999@@[user.name].delg.test.com password123
61** Expect 201 **
62Added Credential [m99999@@[THE_USER].delg.test.com]
63
64as XX@NS
65Unknown Instruction "TC_DELG1.10.31.POS"
66perm ungrant com.att.aaf.mechid com.att create com.test.delg.@[user.name].change_delg
67** Expect 200 **
68UnGranted Permission [com.att.aaf.mechid|com.att|create] from Role [com.test.delg.@[THE_USER].change_delg]
69
70as testid@aaf.att.com
71# TC_DELG1.10.99.POS Check for Data as Correct
72ns list name com.test.delg.@[user.name]
73** Expect 200 **
74
75List Namespaces by Name[com.test.delg.@[THE_USER]]
76--------------------------------------------------------------------------------
77com.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
93user delegate add aa111q@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'
94** Expect 404 **
95Failed [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
98user delegate add @[user.name]@csp.att.com aa111q@csp.att.com '2099-12-31 06:00'
99** Expect 404 **
100Failed [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
103as m99999@@[THE_USER].delg.test.com
104force user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'
105** Expect 403 **
106Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].delg.test.com] may not create a delegate for [@[THE_USER]@csp.att.com]
107
108as testid@aaf.att.com
109# TC_DELG1.20.21.NEG Fail to Update Delegate that doesnt exist
110user delegate upd @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'
111** Expect 404 **
112Failed [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.
115user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'
116** Expect 406 **
117Failed [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.
120force user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'
121** Expect 201 **
122Delegate Added
123
124as XX@NS
125# TC_DELG1.20.30.POS Expect Delegates for User
126user list delegates user @[user.name]@csp.att.com
127** Expect 200 **
128
129List 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
135as testid@aaf.att.com
136# TC_DELG1.20.35.NEG Fail Create when exists
137user delegate add @[user.name]@csp.att.com @[user.name]@csp.att.com '2099-12-31 06:00'
138** Expect 409 **
139Failed [SVC1409]: Conflict Already Exists - [@[THE_USER]@csp.att.com] already delegates to [@[THE_USER]@csp.att.com]
140
141as XX@NS
142# TC_DELG1.20.40.POS Expect Delegates for User
143user list delegates user @[user.name]@csp.att.com
144** Expect 200 **
145
146List 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
152as testid@aaf.att.com
153# TC_DELG1.20.46.POS Update Delegate with new Date
154user delegate upd @[user.name]@csp.att.com @[user.name]@csp.att.com '2999-01-01 06:00'
155** Expect 200 **
156Delegate Updated
157
158as XX@NS
159# TC_DELG1.20.82.POS Expect Delegates for User
160user list delegates user @[user.name]@csp.att.com
161** Expect 200 **
162
163List 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
170user list delegates delegate @[user.name]@csp.att.com
171** Expect 200 **
172
173List 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
179as XX@NS
180# TC_DELG1.99.0.POS Check for Data as Correct
181ns list name com.test.delg.@[user.name]
182** Expect 200,404 **
183
184List Namespaces by Name[com.test.delg.@[THE_USER]]
185--------------------------------------------------------------------------------
186com.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
202user delegate del @[user.name]@csp.att.com
203** Expect 200,404 **
204Delegate Deleted
205
206# TC_DELG1.99.30.POS Delete Namespace com.att.test.id
207force ns delete com.test.delg.@[user.name]
208** Expect 200,404 **
209Deleted Namespace
210
211# TC_DELG1.99.98.POS Check for Delegate Data as Correct
212user list delegates user @[user.name]@csp.att.com
213** Expect 200,404 **
214Failed [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
217ns list name com.test.delg.@[user.name]
218** Expect 200,404 **
219
220List Namespaces by Name[com.test.delg.@[THE_USER]]
221--------------------------------------------------------------------------------
222 *** Namespace Not Found ***
223