blob: 448efa1df2be285a5729e13532880ee1bcb5a5bd [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 bogus boguspass
5#delay 10
6set NFR 0
7as XX@NS
8# TC_Wild.10.0.POS Validate NS ok
9ns list name com.att.test.TC_Wild.@[user.name]
10** Expect 200 **
11
12List Namespaces by Name[com.att.test.TC_Wild.@[THE_USER]]
13--------------------------------------------------------------------------------
14 *** Namespace Not Found ***
15
16# TC_Wild.10.1.POS Create Namespace with valid IDs and Responsible Parties
17ns create com.att.TC_Wild.@[user.name] @[user.name] testid@aaf.att.com
18** Expect 201 **
19Created Namespace
20
21# TC_Wild.10.10.POS Create a clean MechID
22user cred add m99999@@[user.name].TC_Wild.att.com aNewPass8
23** Expect 201 **
24Added Credential [m99999@@[THE_USER].TC_Wild.att.com]
25
26set m99999@@[THE_USER].TC_Wild.att.com aNewPass8
27as XX@NS
28# TC_Wild.10.11.POS Create role and assign MechID to
29role create com.att.TC_Wild.@[user.name].service m99999@@[user.name].TC_Wild.att.com
30** Expect 201 **
31Created Role
32Added User [m99999@@[THE_USER].TC_Wild.att.com] to Role [com.att.TC_Wild.@[THE_USER].service]
33
34as m99999@@[THE_USER].TC_Wild.att.com
35# TC_Wild.20.1.NEG Fail to create a perm in NS
36perm create com.att.TC_Wild.@[user.name].myType myInstance myAction
37** Expect 403 **
38Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].TC_Wild.att.com] may not write Perm [com.att.TC_Wild.@[THE_USER].myType|myInstance|myAction]
39
40# TC_Wild.20.3.POS Add "access perm" based Wild Card with specific Action
41as XX@NS
42perm create com.att.TC_Wild.@[user.name].access :perm:myType:*:myAction write com.att.TC_Wild.@[user.name].service
43** Expect 201 **
44Created Permission
45Granted Permission [com.att.TC_Wild.@[THE_USER].access|:perm:myType:*:myAction|write] to Role [com.att.TC_Wild.@[THE_USER].service]
46
47# TC_Wild.20.5.POS Print Perms
48perm list user m99999@@[user.name].TC_Wild.att.com
49** Expect 200 **
50
51List Permissions by User[m99999@@[THE_USER].TC_Wild.att.com]
52--------------------------------------------------------------------------------
53PERM Type Instance Action
54--------------------------------------------------------------------------------
55com.att.TC_Wild.@[THE_USER].access :perm:myType:*:myAction write
56
57
58# TC_Wild.20.7.POS Now able to create a perm in NS
59as m99999@@[THE_USER].TC_Wild.att.com
60perm create com.att.TC_Wild.@[user.name].myType myInstance myAction
61** Expect 201 **
62Created Permission
63
64# TC_Wild.20.8.POS Print Perms
65as XX@NS
66perm list ns com.att.TC_Wild.@[user.name]
67** Expect 200 **
68
69List Perms by NS [com.att.TC_Wild.@[THE_USER]]
70--------------------------------------------------------------------------------
71PERM Type Instance Action
72--------------------------------------------------------------------------------
73com.att.TC_Wild.@[THE_USER].access * *
74com.att.TC_Wild.@[THE_USER].access * read
75com.att.TC_Wild.@[THE_USER].access :perm:myType:*:myAction write
76com.att.TC_Wild.@[THE_USER].myType myInstance myAction
77
78
79# TC_Wild.20.10.POS Delete Perms Created
80force perm delete com.att.TC_Wild.@[user.name].access :perm:myType:*:myAction write
81** Expect 200 **
82Deleted Permission
83
84force perm delete com.att.TC_Wild.@[user.name].myType myInstance myAction
85** Expect 200 **
86Deleted Permission
87
88as m99999@@[THE_USER].TC_Wild.att.com
89# TC_Wild.21.1.NEG Fail to create a perm in NS
90perm create com.att.TC_Wild.@[user.name].myType myInstance myAction
91** Expect 403 **
92Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].TC_Wild.att.com] may not write Perm [com.att.TC_Wild.@[THE_USER].myType|myInstance|myAction]
93
94# TC_Wild.21.3.POS Add "access perm" based Wild Card with specific Action
95as XX@NS
96perm create com.att.TC_Wild.@[user.name].access :perm:myType:*:* write com.att.TC_Wild.@[user.name].service
97** Expect 201 **
98Created Permission
99Granted Permission [com.att.TC_Wild.@[THE_USER].access|:perm:myType:*:*|write] to Role [com.att.TC_Wild.@[THE_USER].service]
100
101# TC_Wild.21.5.POS Print Perms
102perm list user m99999@@[user.name].TC_Wild.att.com
103** Expect 200 **
104
105List Permissions by User[m99999@@[THE_USER].TC_Wild.att.com]
106--------------------------------------------------------------------------------
107PERM Type Instance Action
108--------------------------------------------------------------------------------
109com.att.TC_Wild.@[THE_USER].access :perm:myType:*:* write
110
111
112# TC_Wild.21.7.POS Now able to create a perm in NS
113as m99999@@[THE_USER].TC_Wild.att.com
114perm create com.att.TC_Wild.@[user.name].myType myInstance myAction
115** Expect 201 **
116Created Permission
117
118# TC_Wild.21.8.POS Print Perms
119as XX@NS
120perm list ns com.att.TC_Wild.@[user.name]
121** Expect 200 **
122
123List Perms by NS [com.att.TC_Wild.@[THE_USER]]
124--------------------------------------------------------------------------------
125PERM Type Instance Action
126--------------------------------------------------------------------------------
127com.att.TC_Wild.@[THE_USER].access * *
128com.att.TC_Wild.@[THE_USER].access * read
129com.att.TC_Wild.@[THE_USER].access :perm:myType:*:* write
130com.att.TC_Wild.@[THE_USER].myType myInstance myAction
131
132
133# TC_Wild.21.10.POS Delete Perms Created
134force perm delete com.att.TC_Wild.@[user.name].access :perm:myType:*:* write
135** Expect 200 **
136Deleted Permission
137
138force perm delete com.att.TC_Wild.@[user.name].myType myInstance myAction
139** Expect 200 **
140Deleted Permission
141
142as m99999@@[THE_USER].TC_Wild.att.com
143# TC_Wild.30.1.NEG Fail to create a role in NS
144role create com.att.TC_Wild.@[user.name].tool.myRole
145** Expect 403 **
146Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].TC_Wild.att.com] may not write Role [com.att.TC_Wild.@[THE_USER].tool.myRole]
147
148# TC_Wild.30.3.POS Add "access role" based Wild Card with specific Action
149as XX@NS
150perm create com.att.TC_Wild.@[user.name].access :role:tool.* write com.att.TC_Wild.@[user.name].service
151** Expect 201 **
152Created Permission
153Granted Permission [com.att.TC_Wild.@[THE_USER].access|:role:tool.*|write] to Role [com.att.TC_Wild.@[THE_USER].service]
154
155# TC_Wild.30.5.POS Print Perms
156perm list user m99999@@[user.name].TC_Wild.att.com
157** Expect 200 **
158
159List Permissions by User[m99999@@[THE_USER].TC_Wild.att.com]
160--------------------------------------------------------------------------------
161PERM Type Instance Action
162--------------------------------------------------------------------------------
163com.att.TC_Wild.@[THE_USER].access :role:tool.* write
164
165
166# TC_Wild.30.7.POS Now able to create a role in NS
167as m99999@@[THE_USER].TC_Wild.att.com
168role create com.att.TC_Wild.@[user.name].tool.myRole
169** Expect 201 **
170Created Role
171
172# TC_Wild.30.8.POS Print Perms
173as XX@NS
174role list ns com.att.TC_Wild.@[user.name]
175** Expect 200 **
176
177List Roles by NS [com.att.TC_Wild.@[THE_USER]]
178--------------------------------------------------------------------------------
179ROLE Name
180 PERM Type Instance Action
181--------------------------------------------------------------------------------
182com.att.TC_Wild.@[THE_USER].admin
183 com.att.TC_Wild.@[THE_USER].access * *
184com.att.TC_Wild.@[THE_USER].owner
185 com.att.TC_Wild.@[THE_USER].access * read
186com.att.TC_Wild.@[THE_USER].service
187 com.att.TC_Wild.@[THE_USER].access :role:tool.* write
188com.att.TC_Wild.@[THE_USER].tool.myRole
189
190# TC_Wild.30.10.POS Delete Perms Created
191force perm delete com.att.TC_Wild.@[user.name].access :role:tool.* write
192** Expect 200 **
193Deleted Permission
194
195force role delete com.att.TC_Wild.@[user.name].tool.myRole
196** Expect 200 **
197Deleted Role
198
199as m99999@@[THE_USER].TC_Wild.att.com
200# TC_Wild.31.1.NEG Fail to create a role in NS
201role create com.att.TC_Wild.@[user.name].tool.myRole
202** Expect 403 **
203Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].TC_Wild.att.com] may not write Role [com.att.TC_Wild.@[THE_USER].tool.myRole]
204
205# TC_Wild.31.3.POS Add "access role" based Wild Card with specific Action
206as XX@NS
207perm create com.att.TC_Wild.@[user.name].access :role:* write com.att.TC_Wild.@[user.name].service
208** Expect 201 **
209Created Permission
210Granted Permission [com.att.TC_Wild.@[THE_USER].access|:role:*|write] to Role [com.att.TC_Wild.@[THE_USER].service]
211
212# TC_Wild.31.5.POS Print Perms
213perm list user m99999@@[user.name].TC_Wild.att.com
214** Expect 200 **
215
216List Permissions by User[m99999@@[THE_USER].TC_Wild.att.com]
217--------------------------------------------------------------------------------
218PERM Type Instance Action
219--------------------------------------------------------------------------------
220com.att.TC_Wild.@[THE_USER].access :role:* write
221
222
223# TC_Wild.31.7.POS Now able to create a role in NS
224as m99999@@[THE_USER].TC_Wild.att.com
225role create com.att.TC_Wild.@[user.name].tool.myRole
226** Expect 201 **
227Created Role
228
229# TC_Wild.31.8.POS Print Perms
230as XX@NS
231role list ns com.att.TC_Wild.@[user.name]
232** Expect 200 **
233
234List Roles by NS [com.att.TC_Wild.@[THE_USER]]
235--------------------------------------------------------------------------------
236ROLE Name
237 PERM Type Instance Action
238--------------------------------------------------------------------------------
239com.att.TC_Wild.@[THE_USER].admin
240 com.att.TC_Wild.@[THE_USER].access * *
241com.att.TC_Wild.@[THE_USER].owner
242 com.att.TC_Wild.@[THE_USER].access * read
243com.att.TC_Wild.@[THE_USER].service
244 com.att.TC_Wild.@[THE_USER].access :role:* write
245com.att.TC_Wild.@[THE_USER].tool.myRole
246
247# TC_Wild.31.10.POS Delete Perms Created
248force perm delete com.att.TC_Wild.@[user.name].access :role:* write
249** Expect 200 **
250Deleted Permission
251
252force role delete com.att.TC_Wild.@[user.name].tool.myRole
253** Expect 200 **
254Deleted Role
255
256as m99999@@[THE_USER].TC_Wild.att.com
257# TC_Wild.32.1.NEG Fail to create a role in NS
258role create com.att.TC_Wild.@[user.name].tool.myRole
259** Expect 403 **
260Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].TC_Wild.att.com] may not write Role [com.att.TC_Wild.@[THE_USER].tool.myRole]
261
262# TC_Wild.32.3.POS Add "access role" based Wild Card with specific Action
263as XX@NS
264perm create com.att.TC_Wild.@[user.name].access :role:* * com.att.TC_Wild.@[user.name].service
265** Expect 201 **
266Created Permission
267Granted Permission [com.att.TC_Wild.@[THE_USER].access|:role:*|*] to Role [com.att.TC_Wild.@[THE_USER].service]
268
269# TC_Wild.32.5.POS Print Perms
270as m99999@@[THE_USER].TC_Wild.att.com
271perm list user m99999@@[user.name].TC_Wild.att.com
272** Expect 200 **
273
274List Permissions by User[m99999@@[THE_USER].TC_Wild.att.com]
275--------------------------------------------------------------------------------
276PERM Type Instance Action
277--------------------------------------------------------------------------------
278com.att.TC_Wild.@[THE_USER].access :role:* *
279
280
281# TC_Wild.32.7.POS Now able to create a role in NS
282role create com.att.TC_Wild.@[user.name].tool.myRole
283** Expect 201 **
284Created Role
285
286# TC_Wild.32.8.POS May Print Role
287role list role com.att.TC_Wild.@[user.name].tool.myRole
288** Expect 200 **
289
290List Roles for Role[com.att.TC_Wild.@[THE_USER].tool.myRole]
291--------------------------------------------------------------------------------
292ROLE Name
293 PERM Type Instance Action
294--------------------------------------------------------------------------------
295com.att.TC_Wild.@[THE_USER].tool.myRole
296
297as XX@NS
298# TC_Wild.32.10.POS Delete Perms Created
299force perm delete com.att.TC_Wild.@[user.name].access :role:* *
300** Expect 200 **
301Deleted Permission
302
303force role delete com.att.TC_Wild.@[user.name].tool.myRole
304** Expect 200 **
305Deleted Role
306
307as m99999@@[THE_USER].TC_Wild.att.com
308# TC_Wild.50.1.NEG Fail to create a perm in NS
309perm create com.att.TC_Wild.@[user.name].myType myInstance myAction
310** Expect 403 **
311Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].TC_Wild.att.com] may not write Perm [com.att.TC_Wild.@[THE_USER].myType|myInstance|myAction]
312
313# TC_Wild.50.3.POS Add "access perm" based Wild Card with specific Action
314as XX@NS
315perm create com.att.aaf.ns :com.att.*:perm:myType:*:* write com.att.TC_Wild.@[user.name].service
316** Expect 201 **
317Created Permission
318Granted Permission [com.att.aaf.ns|:com.att.*:perm:myType:*:*|write] to Role [com.att.TC_Wild.@[THE_USER].service]
319
320# TC_Wild.50.5.POS Print Perms
321perm list user m99999@@[user.name].TC_Wild.att.com
322** Expect 200 **
323
324List Permissions by User[m99999@@[THE_USER].TC_Wild.att.com]
325--------------------------------------------------------------------------------
326PERM Type Instance Action
327--------------------------------------------------------------------------------
328com.att.aaf.ns :com.att.*:perm:myType:*:* write
329
330
331# TC_Wild.50.7.POS Now able to create a perm in NS
332as m99999@@[THE_USER].TC_Wild.att.com
333perm create com.att.TC_Wild.@[user.name].myType myInstance myAction
334** Expect 201 **
335Created Permission
336
337# TC_Wild.50.8.POS Print Perms
338as XX@NS
339perm list ns com.att.TC_Wild.@[user.name]
340** Expect 200 **
341
342List Perms by NS [com.att.TC_Wild.@[THE_USER]]
343--------------------------------------------------------------------------------
344PERM Type Instance Action
345--------------------------------------------------------------------------------
346com.att.TC_Wild.@[THE_USER].access * *
347com.att.TC_Wild.@[THE_USER].access * read
348com.att.TC_Wild.@[THE_USER].myType myInstance myAction
349
350
351# TC_Wild.50.10.POS Delete Perms Created
352force perm delete com.att.aaf.ns :com.att.*:perm:myType:*:* write
353** Expect 200 **
354Deleted Permission
355
356force perm delete com.att.TC_Wild.@[user.name].myType myInstance myAction
357** Expect 200 **
358Deleted Permission
359
360as m99999@@[THE_USER].TC_Wild.att.com
361# TC_Wild.51.1.NEG Fail to create a role in NS
362role create com.att.TC_Wild.@[user.name].tool.myRole
363** Expect 403 **
364Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].TC_Wild.att.com] may not write Role [com.att.TC_Wild.@[THE_USER].tool.myRole]
365
366# TC_Wild.51.3.POS Add "access role" based Wild Card with specific Action
367as XX@NS
368perm create com.att.aaf.ns :com.att.*:role:tool.* write com.att.TC_Wild.@[user.name].service
369** Expect 201 **
370Created Permission
371Granted Permission [com.att.aaf.ns|:com.att.*:role:tool.*|write] to Role [com.att.TC_Wild.@[THE_USER].service]
372
373# TC_Wild.51.5.POS Print Perms
374perm list user m99999@@[user.name].TC_Wild.att.com
375** Expect 200 **
376
377List Permissions by User[m99999@@[THE_USER].TC_Wild.att.com]
378--------------------------------------------------------------------------------
379PERM Type Instance Action
380--------------------------------------------------------------------------------
381com.att.aaf.ns :com.att.*:role:tool.* write
382
383
384# TC_Wild.51.7.POS Now able to create a role in NS
385as m99999@@[THE_USER].TC_Wild.att.com
386role create com.att.TC_Wild.@[user.name].tool.myRole
387** Expect 201 **
388Created Role
389
390# TC_Wild.51.8.POS Print Perms
391as XX@NS
392role list ns com.att.TC_Wild.@[user.name]
393** Expect 200 **
394
395List Roles by NS [com.att.TC_Wild.@[THE_USER]]
396--------------------------------------------------------------------------------
397ROLE Name
398 PERM Type Instance Action
399--------------------------------------------------------------------------------
400com.att.TC_Wild.@[THE_USER].admin
401 com.att.TC_Wild.@[THE_USER].access * *
402com.att.TC_Wild.@[THE_USER].owner
403 com.att.TC_Wild.@[THE_USER].access * read
404com.att.TC_Wild.@[THE_USER].service
405 com.att.aaf.ns :com.att.*:role:tool.* write
406com.att.TC_Wild.@[THE_USER].tool.myRole
407
408# TC_Wild.51.10.POS Delete Perms Created
409force perm delete com.att.aaf.ns :com.att.*:role:tool.* write
410** Expect 200 **
411Deleted Permission
412
413force role delete com.att.TC_Wild.@[user.name].tool.myRole
414** Expect 200 **
415Deleted Role
416
417as m99999@@[THE_USER].TC_Wild.att.com
418# TC_Wild.52.1.NEG Fail to create a NS
419ns create com.test.TC_Wild.@[user.name] @[user.name] testid@aaf.att.com
420** Expect 403 **
421Failed [SVC1403]: Forbidden - [m99999@@[THE_USER].TC_Wild.att.com] may not write in NS [com.test]
422
423# TC_Wild.52.3.POS Add "access role" based Wild Card with specific Action
424as XX@NS
425perm create com.att.aaf.ns :com.test:ns write com.att.TC_Wild.@[user.name].service
426** Expect 201 **
427Created Permission
428Granted Permission [com.att.aaf.ns|:com.test:ns|write] to Role [com.att.TC_Wild.@[THE_USER].service]
429
430# TC_Wild.52.5.POS Print Perms
431perm list user m99999@@[user.name].TC_Wild.att.com
432** Expect 200 **
433
434List Permissions by User[m99999@@[THE_USER].TC_Wild.att.com]
435--------------------------------------------------------------------------------
436PERM Type Instance Action
437--------------------------------------------------------------------------------
438com.att.aaf.ns :com.test:ns write
439
440
441# TC_Wild.52.7.POS Now able to create an NS
442as m99999@@[THE_USER].TC_Wild.att.com
443ns create com.test.TC_Wild.@[user.name] @[user.name] testid@aaf.att.com
444** Expect 201 **
445Created Namespace
446
447# TC_Wild.52.8.POS Print Perms
448as XX@NS
449ns list name com.test.TC_Wild.@[user.name]
450** Expect 200 **
451
452List Namespaces by Name[com.test.TC_Wild.@[THE_USER]]
453--------------------------------------------------------------------------------
454com.test.TC_Wild.@[THE_USER]
455 Administrators
456 testid@aaf.att.com
457 Responsible Parties
458 @[THE_USER]@csp.att.com
459 Roles
460 com.test.TC_Wild.@[THE_USER].admin
461 com.test.TC_Wild.@[THE_USER].owner
462 Permissions
463 com.test.TC_Wild.@[THE_USER].access * *
464 com.test.TC_Wild.@[THE_USER].access * read
465
466# TC_Wild.52.10.POS Delete Perms Created
467force perm delete com.att.aaf.ns :com.test:ns write
468** Expect 200 **
469Deleted Permission
470
471force ns delete com.test.TC_Wild.@[user.name]
472** Expect 200 **
473Deleted Namespace
474
475as XX@NS
476# TC_Wild.99.80.POS Cleanup
477force perm delete com.att.aaf.ns :com.att.*:perm:*:* write
478** Expect 200,404 **
479Failed [SVC4404]: Not Found - Permission [com.att.aaf.ns|:com.att.*:perm:*:*|write] does not exist
480
481# TC_Wild.99.81.POS Cleanup
482force perm delete com.att.aaf.ns :com.att.*:perm:*:* *
483** Expect 200,404 **
484Failed [SVC4404]: Not Found - Permission [com.att.aaf.ns|:com.att.*:perm:*:*|*] does not exist
485
486# TC_Wild.99.82.POS Cleanup
487force perm delete com.att.aaf.ns :com.att.*:role:* write
488** Expect 200,404 **
489Failed [SVC4404]: Not Found - Permission [com.att.aaf.ns|:com.att.*:role:*|write] does not exist
490
491# TC_Wild.99.83.POS Cleanup
492force perm delete com.att.aaf.ns :com.test:ns write
493** Expect 200,404 **
494Failed [SVC4404]: Not Found - Permission [com.att.aaf.ns|:com.test:ns|write] does not exist
495
496# TC_Wild.99.90.POS Cleanup
497force ns delete com.test.TC_Wild.@[user.name]
498** Expect 200,404 **
499Failed [SVC2404]: Not Found - com.test.TC_Wild.@[THE_USER] does not exist
500
501# TC_Wild.99.91.POS Cleanup
502force ns delete com.att.TC_Wild.@[user.name]
503** Expect 200,404 **
504Deleted Namespace
505
506# TC_Wild.99.99.POS List to prove clean Namespaces
507ns list name com.att.TC_Wild.@[user.name]
508** Expect 200,404 **
509
510List Namespaces by Name[com.att.TC_Wild.@[THE_USER]]
511--------------------------------------------------------------------------------
512 *** Namespace Not Found ***
513
514ns list name com.test.TC_Wild.@[user.name]
515** Expect 200,404 **
516
517List Namespaces by Name[com.test.TC_Wild.@[THE_USER]]
518--------------------------------------------------------------------------------
519 *** Namespace Not Found ***
520