summaryrefslogtreecommitdiffstats
path: root/authz-test/TestSuite/expected/TC_Perm1.expected
blob: d099990c057cc74e32401f349aa895c6b0fb6a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
set testid <pass>
set testid@aaf.att.com <pass>
set XX@NS <pass>
set testunused <pass>
set bogus boguspass
#delay 10
set NFR 0
# TC_Perm1.10.0.POS Validate Namespace is empty first
as testid@aaf.att.com
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***

# TC_Perm1.10.1.POS Create Namespace with valid IDs and Responsible Parties
ns create com.test.TC_Perm1.@[user.name] @[user.name] testid@aaf.att.com
** Expect 201 **
Created Namespace

# TC_Perm1.10.10.POS Create role to assign mechid perm to
role create com.test.TC_Perm1.@[user.name].cred_admin
** Expect 201 **
Created Role

as XX@NS
# TC_Perm1.10.11.POS Assign role to mechid perm
perm grant com.att.aaf.mechid com.att create com.test.TC_Perm1.@[user.name].cred_admin
** Expect 201 **
Granted Permission [com.att.aaf.mechid|com.att|create] to Role [com.test.TC_Perm1.@[THE_USER].cred_admin]

as testid@aaf.att.com
# TC_Perm1.10.12.POS Assign user for creating creds
user role add XX@NS com.test.TC_Perm1.@[user.name].cred_admin
** Expect 201 **
Added Role [com.test.TC_Perm1.@[THE_USER].cred_admin] to User [XX@NS]

# TC_Perm1.20.1.POS List Data on non-Empty NS
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           

# TC_Perm1.20.2.POS Add Perm 
perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction
** Expect 201 **
Created Permission

# TC_Perm1.20.3.NEG Already Added Perm 
perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction
** Expect 409 **
Failed [SVC1409]: Conflict Already Exists - Permission [com.test.TC_Perm1.@[THE_USER].p.A|myInstance|myAction] already exists.

# TC_Perm1.20.4.POS Add Perm with non-existent Roles as well
force perm create com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].r.A,com.test.TC_Perm1.@[user.name].r.B
** Expect 201 **
Created Role [com.test.TC_Perm1.@[THE_USER].r.A]
Created Role [com.test.TC_Perm1.@[THE_USER].r.B]
Created Permission
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.B|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER].r.A]
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.B|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER].r.B]

# TC_Perm1.20.8.POS Print Info for Validation
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   myInstance               myAction       

# TC_Perm1.20.9.NEG Already Added Perm with some Roles as well
perm create com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].r.A,com.test.TC_Perm1.@[user.name].r.B
** Expect 409 **
Failed [SVC1409]: Conflict Already Exists - Permission [com.test.TC_Perm1.@[THE_USER].p.B|myInstance|myAction] already exists.

# TC_Perm1.20.10.NEG Non-admins can't change description
as testunused
perm describe com.test.TC_Perm1.@[user.name].p.A myInstance myAction Description for A
** Expect 403 **
Failed [SVC1403]: Forbidden - You do not have approval to change Permission [com.test.TC_Perm1.@[THE_USER].p.A|myInstance|myAction]

# TC_Perm1.20.11.NEG Permission must exist to change description
as testid
perm describe com.test.TC_Perm1.@[user.name].p.C myInstance myAction Description for C
** Expect 404 **
Failed [SVC1404]: Not Found - Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] does not exist

# TC_Perm1.20.12.POS Admin can change description
perm describe com.test.TC_Perm1.@[user.name].p.A myInstance myAction Description for A
** Expect 200 **
Description added to Permission

# TC_Perm1.22.1.NEG Try to rename permission without changing anything
perm rename com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].p.B myInstance myAction
** Expect 409 **
Failed [SVC1409]: Conflict Already Exists - New Permission must be different than original permission

# TC_Perm1.22.2.NEG Try to rename parent ns
perm rename com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.att.TC_Perm1.@[user.name].p.C myInstance myAction
** Expect 403 **
Failed [SVC1403]: Forbidden - You do not have approval to change Permission [com.att.TC_Perm1.@[THE_USER].p.C|myInstance|myAction]

# TC_Perm1.22.10.POS View permission in original state
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   myInstance               myAction       

# TC_Perm1.22.11.POS Rename permission instance
perm rename com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].p.B yourInstance myAction
** Expect 200 **
Updated Permission

# TC_Perm1.22.12.POS Verify change in permission instance
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   yourInstance             myAction       

# TC_Perm1.22.13.POS Rename permission action
perm rename com.test.TC_Perm1.@[user.name].p.B yourInstance myAction com.test.TC_Perm1.@[user.name].p.B yourInstance yourAction
** Expect 200 **
Updated Permission

# TC_Perm1.22.14.POS Verify change in permission action
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   yourInstance             yourAction     

# TC_Perm1.22.15.POS Rename permission type
perm rename com.test.TC_Perm1.@[user.name].p.B yourInstance yourAction com.test.TC_Perm1.@[user.name].p.yourB yourInstance yourAction
** Expect 200 **
Updated Permission

# TC_Perm1.22.16.POS Verify change in permission type
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.yourB yourInstance             yourAction     

# TC_Perm1.22.20.POS See permission is attached to this role
role list role com.test.TC_Perm1.@[user.name].r.A
** Expect 200 **

List Roles for Role[com.test.TC_Perm1.@[THE_USER].r.A]
--------------------------------------------------------------------------------
ROLE Name                                         
   PERM Type                      Instance                       Action         
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER].r.A                      
   com.test.TC_Perm1.@[THE_USER].p.yourB yourInstance                   yourAction     

# TC_Perm1.22.21.POS Rename permission type, instance and action
perm rename com.test.TC_Perm1.@[user.name].p.yourB yourInstance yourAction com.test.TC_Perm1.@[user.name].p.B myInstance myAction
** Expect 200 **
Updated Permission

# TC_Perm1.22.22.POS See permission stays attached after rename
role list role com.test.TC_Perm1.@[user.name].r.A
** Expect 200 **

List Roles for Role[com.test.TC_Perm1.@[THE_USER].r.A]
--------------------------------------------------------------------------------
ROLE Name                                         
   PERM Type                      Instance                       Action         
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER].r.A                      
   com.test.TC_Perm1.@[THE_USER].p.B   myInstance                     myAction       

# TC_Perm1.22.23.POS Verify permission is back to original state
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   myInstance               myAction       

# TC_Perm1.25.1.POS Create another Role in This namespace
role create com.test.TC_Perm1.@[user.name].r.C
** Expect 201 **
Created Role

# TC_Perm1.25.2.POS Create another Perm in This namespace
perm create com.test.TC_Perm1.@[user.name].p.C myInstance myAction
** Expect 201 **
Created Permission

# TC_Perm1.25.3.NEG Permission must Exist to Add to Role
perm grant com.test.TC_Perm1.@[user.name].p.NO myInstance myAction com.test.TC_Perm1.@[user.name].r.C
** Expect 404 **
Failed [SVC4404]: Not Found - Permission [com.test.TC_Perm1.@[THE_USER].p.NO|myInstance|myAction] does not exist

# TC_Perm1.25.4.POS Grant individual new Perm to new Role
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
** Expect 201 **
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER].r.C]

# TC_Perm1.25.5.NEG Already Granted Perm
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
** Expect 409 **
Failed [SVC1409]: Conflict Already Exists - Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] already granted to Role [com.test.TC_Perm1.@[THE_USER].r.C]

# TC_Perm1.25.6.POS Print Info for Validation
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
        com.test.TC_Perm1.@[THE_USER].r.C                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.C   myInstance               myAction       

# TC_Perm1.25.10.POS UnGrant individual new Perm to new Role
perm ungrant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
** Expect 200 **
UnGranted Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] from Role [com.test.TC_Perm1.@[THE_USER].r.C]

# TC_Perm1.25.11.NEG Already UnGranted Perm
perm ungrant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
** Expect 404 **
Failed [SVC4404]: Not Found - Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] not associated with any Role

# TC_Perm1.25.20.POS Reset roles attached to permision with setTo
perm setTo com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C,com.test.TC_Perm1.@[user.name].r.A
** Expect 200 **
Set Permission's Roles to [com.test.TC_Perm1.@[THE_USER].r.C,com.test.TC_Perm1.@[THE_USER].r.A]

# TC_Perm1.25.21.POS Owner of permission can reset roles
perm setTo com.test.TC_Perm1.@[user.name].p.C myInstance myAction
** Expect 200 **
Set Permission's Roles to []

# TC_Perm1.26.1.POS Create another Namespace, not owned by testid, one in company, one not
as XX@NS
ns create com.test2.TC_Perm1.@[user.name] @[user.name] XX@NS
** Expect 201 **
Created Namespace

ns create com.test.TC_Perm1.@[user.name]_2 @[user.name] XX@NS
** Expect 201 **
Created Namespace

# TC_Perm1.26.2.POS Create ID in other Namespace
user cred add m99990@@[user.name].TC_Perm1.test2.com aRealPass7
** Expect 201 **
Added Credential [m99990@@[THE_USER].TC_Perm1.test2.com]

# TC_Perm1.26.3.POS Create a Role in other Namespaces, not owned by testid
role create com.test2.TC_Perm1.@[user.name].r.C
** Expect 201 **
Created Role

role create com.test2.TC_Perm1.@[user.name]_2.r.C
** Expect 201 **
Created Role

# TC_Perm1.26.11.NEG Grant Perm to Role in Other Namespace, when Role ID
as m99990@@[THE_USER].TC_Perm1.test2.com
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test2.TC_Perm1.@[user.name].r.C
** Expect 403 **
Failed [SVC1403]: Forbidden - [m99990@@[THE_USER].TC_Perm1.test2.com] may not write Perm [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction]

# TC_Perm1.26.11a.NEG Grant Perm to Role in Other Namespace, when Role ID
as m99990@@[THE_USER].TC_Perm1.test2.com
set request true
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test2.TC_Perm1.@[user.name].r.C
** Expect 202 **
Permission Role Granted Accepted, but requires Approvals before actualizing

# TC_Perm1.26.12.NEG Grant Perm to Role in Other Namespace, when Perm ID, but different Company
as testid@aaf.att.com
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test2.TC_Perm1.@[user.name].r.C
** Expect 403 **
Failed [SVC1403]: Forbidden - [testid@aaf.att.com] may not write Role [com.test2.TC_Perm1.@[THE_USER].r.C]

# TC_Perm1.26.13.NEG Fail Grant Perm to Role in Other Namespace, when Perm ID, but same Company
as testid@aaf.att.com
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 404 **
Failed [SVC3404]: Not Found - Role [com.test.TC_Perm1.@[THE_USER]_2.r.C] does not exist

# TC_Perm1.26.14.POS Create Role
as testid@aaf.att.com
role create com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 201 **
Created Role

# TC_Perm1.26.15.POS Fail Create/Grant Perm to Role in Other Namespace, when Perm ID, but same Company
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 201 **
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER]_2.r.C]

# TC_Perm1.26.16.POS Print Info for Validation
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
        com.test.TC_Perm1.@[THE_USER].r.C                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.C   myInstance               myAction       

# TC_Perm1.26.17.POS Grant individual new Perm to new Role
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
** Expect 201 **
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER].r.C]

# TC_Perm1.26.18.NEG Already Granted Perm
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
** Expect 409 **
Failed [SVC1409]: Conflict Already Exists - Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] already granted to Role [com.test.TC_Perm1.@[THE_USER].r.C]

# TC_Perm1.26.19.POS UnGrant Perm from Role in Other Namespace, when Perm ID
perm ungrant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 200 **
UnGranted Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] from Role [com.test.TC_Perm1.@[THE_USER]_2.r.C]

# TC_Perm1.26.21.NEG No Permission to Grant Perm to Role with Unrelated ID
as m99990@@[THE_USER].TC_Perm1.test2.com
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test2.TC_Perm1.@[user.name].r.C
** Expect 403 **
Failed [SVC1403]: Forbidden - [m99990@@[THE_USER].TC_Perm1.test2.com] may not write Perm [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction]

# TC_Perm1.26.22.NEG No Permission to Grant Perm to Role with Unrelated ID
set request true
as m99990@@[THE_USER].TC_Perm1.test2.com
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test2.TC_Perm1.@[user.name].r.C
** Expect 202 **
Permission Role Granted Accepted, but requires Approvals before actualizing

# TC_Perm1.26.25.NEG No Permission to UnGrant with Unrelated ID
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.B
** Expect 403 **
Failed [SVC1403]: Forbidden - [m99990@@[THE_USER].TC_Perm1.test2.com] may not write Perm [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction]

# TC_Perm1.26.26.NEG No Permission to UnGrant with Unrelated ID
set request true
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.B
** Expect 202 **
Permission Role Granted Accepted, but requires Approvals before actualizing

# TC_Perm1.26.30.POS  Add ID to Role
as XX@NS
ns admin add com.test2.TC_Perm1.@[user.name] m99990@@[user.name].TC_Perm1.test2.com 
** Expect 201 **
Admin m99990@@[THE_USER].TC_Perm1.test2.com added to com.test2.TC_Perm1.@[THE_USER]

as m99990@@[THE_USER].TC_Perm1.test2.com
sleep 0
# TC_Perm1.26.31.NEG No Permission Grant Perm to Role if not Perm Owner
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test2.TC_Perm1.@[user.name].r.C
** Expect 403 **
Failed [SVC1403]: Forbidden - [m99990@@[THE_USER].TC_Perm1.test2.com] may not write Perm [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction]

# TC_Perm1.26.31.NEG No Permission Grant Perm to Role if not Perm Owner
set request true
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test2.TC_Perm1.@[user.name].r.C
** Expect 202 **
Permission Role Granted Accepted, but requires Approvals before actualizing

# TC_Perm1.26.32.POS Grant individual new Perm to Role in Other Namespace
as testid@aaf.att.com
perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 201 **
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER]_2.r.C]

# TC_Perm1.26.34.POS Print Info for Validation
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
        com.test.TC_Perm1.@[THE_USER].r.C                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.C   myInstance               myAction       

as XX@NS
# TC_Perm1.26.35.POS Print Info for Validation
ns list name com.test2.TC_Perm1.@[user.name]  
** Expect 200 **

List Namespaces by Name[com.test2.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test2.TC_Perm1.@[THE_USER]
    Administrators
        XX@NS                                                      
        m99990@@[THE_USER].TC_Perm1.test2.com                                        
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test2.TC_Perm1.@[THE_USER].admin                                         
        com.test2.TC_Perm1.@[THE_USER].owner                                         
        com.test2.TC_Perm1.@[THE_USER].r.C                                           
    Permissions
        com.test2.TC_Perm1.@[THE_USER].access *                        *              
        com.test2.TC_Perm1.@[THE_USER].access *                        read           
    Credentials
        m99990@@[THE_USER].TC_Perm1.test2.com                                        

as testid@aaf.att.com
# TC_Perm1.26.36.POS UnGrant individual new Perm to new Role
as testid@aaf.att.com
perm ungrant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 200 **
UnGranted Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] from Role [com.test.TC_Perm1.@[THE_USER]_2.r.C]

# TC_Perm1.26.37.NEG Already UnGranted Perm
perm ungrant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 404 **
Failed [SVC4404]: Not Found - Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] not associated with any Role

# TC_Perm1.26.40.POS Reset roles attached to permision with setTo
perm setTo com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C,com.test.TC_Perm1.@[user.name].r.A
** Expect 200 **
Set Permission's Roles to [com.test.TC_Perm1.@[THE_USER].r.C,com.test.TC_Perm1.@[THE_USER].r.A]

# TC_Perm1.26.41.NEG Non-owner of permission cannot reset roles
as m99990@@[THE_USER].TC_Perm1.test2.com
perm setTo com.test.TC_Perm1.@[user.name].p.C myInstance myAction
** Expect 403 **
Failed [SVC1403]: Forbidden - [m99990@@[THE_USER].TC_Perm1.test2.com] may not write Perm [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction]

# TC_Perm1.26.42.NEG Non-owner of permission cannot ungrant
perm ungrant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
** Expect 403 **
Failed [SVC1403]: Forbidden - [m99990@@[THE_USER].TC_Perm1.test2.com] may not write Perm [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction]

# TC_Perm1.26.43.NEG Non-owner of permission cannot delete
perm delete com.test.TC_Perm1.@[user.name].p.C myInstance myAction
** Expect 403 **
Failed [SVC1403]: Forbidden - [m99990@@[THE_USER].TC_Perm1.test2.com] may not write Perm [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction]

# TC_Perm1.26.45.POS Owner of permission can reset roles
as testid@aaf.att.com
perm setTo com.test.TC_Perm1.@[user.name].p.C myInstance myAction
** Expect 200 **
Set Permission's Roles to []

as XX@NS
# TC_Perm1.26.97.POS List the Namespaces 
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.B                                            
        com.test.TC_Perm1.@[THE_USER].r.C                                            
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.B   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.C   myInstance               myAction       

ns list name com.test2.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test2.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test2.TC_Perm1.@[THE_USER]
    Administrators
        XX@NS                                                      
        m99990@@[THE_USER].TC_Perm1.test2.com                                        
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test2.TC_Perm1.@[THE_USER].admin                                         
        com.test2.TC_Perm1.@[THE_USER].owner                                         
        com.test2.TC_Perm1.@[THE_USER].r.C                                           
    Permissions
        com.test2.TC_Perm1.@[THE_USER].access *                        *              
        com.test2.TC_Perm1.@[THE_USER].access *                        read           
    Credentials
        m99990@@[THE_USER].TC_Perm1.test2.com                                        

as testid@aaf.att.com
# TC_Perm1.26.98.POS Cleanup
role delete com.test.TC_Perm1.@[user.name].r.A
** Expect 200 **
Deleted Role

role delete com.test.TC_Perm1.@[user.name].r.B
** Expect 200 **
Deleted Role

role delete com.test.TC_Perm1.@[user.name].r.C
** Expect 200 **
Deleted Role

role delete com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 200 **
Deleted Role

as XX@NS
role delete com.test2.TC_Perm1.@[user.name]_2.r.C
** Expect 200 **
Deleted Role

role delete com.test2.TC_Perm1.@[user.name].r.C
** Expect 200 **
Deleted Role

as testid@aaf.att.com
perm delete com.test.TC_Perm1.@[user.name].p.A myInstance myAction
** Expect 200 **
Deleted Permission

perm delete com.test.TC_Perm1.@[user.name].p.B myInstance myAction
** Expect 200 **
Deleted Permission

perm delete com.test.TC_Perm1.@[user.name].p.C myInstance myAction
** Expect 200 **
Deleted Permission

force ns delete com.test.TC_Perm1.@[user.name]_2
** Expect 200 **
Deleted Namespace

as XX@NS
set force true
set force=true user cred del m99990@@[user.name].TC_Perm1.test2.com 
** Expect 200 **
Deleted Credential [m99990@@[THE_USER].TC_Perm1.test2.com]

ns delete com.test2.TC_Perm1.@[user.name]
** Expect 200 **
Deleted Namespace

# TC_Perm1.26.99.POS List the Now Empty Namespaces 
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           

ns list name com.test2.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test2.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***

# TC_Perm1.27.1.POS Create Permission
perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction 
** Expect 201 **
Created Permission

# TC_Perm1.27.2.POS Create Role
role create com.test.TC_Perm1.@[user.name].r.A
** Expect 201 **
Created Role

# TC_Perm1.27.10.NEG Role must Exist to Add to Role without force
perm grant com.test.TC_Perm1.@[user.name].p.A myInstance myAction com.test.TC_Perm1.@[user.name].r.unknown
** Expect 404 **
Failed [SVC3404]: Not Found - Role [com.test.TC_Perm1.@[THE_USER].r.unknown] does not exist

# TC_Perm1.27.11.POS Role is created with force
force perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction com.test.TC_Perm1.@[user.name].r.unknown
** Expect 201 **
Created Role [com.test.TC_Perm1.@[THE_USER].r.unknown]
Created Permission
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.A|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER].r.unknown]

# TC_Perm1.27.12.NEG Perm must Exist to Grant without force
perm grant com.test.TC_Perm1.@[user.name].p.unknown myInstance myAction com.test.TC_Perm1.@[user.name].r.A
** Expect 404 **
Failed [SVC4404]: Not Found - Permission [com.test.TC_Perm1.@[THE_USER].p.unknown|myInstance|myAction] does not exist

# TC_Perm1.27.13.POS Perm is created with force
force perm grant com.test.TC_Perm1.@[user.name].p.unknown myInstance myAction com.test.TC_Perm1.@[user.name].r.A
** Expect 201 **
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.unknown|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER].r.A]

# TC_Perm1.27.14.POS Role and perm are created with force
force perm create com.test.TC_Perm1.@[user.name].p.unknown2 myInstance myAction com.test.TC_Perm1.@[user.name].r.unknown2
** Expect 201 **
Created Role [com.test.TC_Perm1.@[THE_USER].r.unknown2]
Created Permission
Granted Permission [com.test.TC_Perm1.@[THE_USER].p.unknown2|myInstance|myAction] to Role [com.test.TC_Perm1.@[THE_USER].r.unknown2]

# TC_Perm1.30.1.POS List Data on non-Empty NS
as testid
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.unknown                                      
        com.test.TC_Perm1.@[THE_USER].r.unknown2                                     
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.unknown myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.unknown2 myInstance               myAction       

# TC_Perm1.30.2.POS Create Sub-ns when Roles that exist
ns create com.test.TC_Perm1.@[user.name].r @[user.name] testid@aaf.att.com
** Expect 201 **
Created Namespace

# TC_Perm1.30.3.POS List Data on NS with sub-roles
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER]
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].admin                                          
        com.test.TC_Perm1.@[THE_USER].cred_admin                                     
        com.test.TC_Perm1.@[THE_USER].owner                                          
    Permissions
        com.test.TC_Perm1.@[THE_USER].access *                        *              
        com.test.TC_Perm1.@[THE_USER].access *                        read           
        com.test.TC_Perm1.@[THE_USER].p.A   myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.unknown myInstance               myAction       
        com.test.TC_Perm1.@[THE_USER].p.unknown2 myInstance               myAction       

ns list name com.test.TC_Perm1.@[user.name].r
** Expect 200 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER].r]
--------------------------------------------------------------------------------
com.test.TC_Perm1.@[THE_USER].r
    Administrators
        testid@aaf.att.com                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Perm1.@[THE_USER].r.A                                            
        com.test.TC_Perm1.@[THE_USER].r.admin                                        
        com.test.TC_Perm1.@[THE_USER].r.owner                                        
        com.test.TC_Perm1.@[THE_USER].r.unknown                                      
        com.test.TC_Perm1.@[THE_USER].r.unknown2                                     
    Permissions
        com.test.TC_Perm1.@[THE_USER].r.access *                        *              
        com.test.TC_Perm1.@[THE_USER].r.access *                        read           

as XX@NS
# TC_Perm1.99.1.POS Namespace Admin can delete Namepace defined Roles
set force true
set force=true perm delete com.test.TC_Perm1.@[user.name].p.A myInstance myAction
** Expect 200,404 **
Deleted Permission

set force true
set force=true perm delete com.test.TC_Perm1.@[user.name].p.B myInstance myAction
** Expect 200,404 **
Failed [SVC4404]: Not Found - Permission [com.test.TC_Perm1.@[THE_USER].p.B|myInstance|myAction] does not exist

set force true
set force=true perm delete com.test.TC_Perm1.@[user.name].p.C myInstance myAction
** Expect 200,404 **
Failed [SVC4404]: Not Found - Permission [com.test.TC_Perm1.@[THE_USER].p.C|myInstance|myAction] does not exist

set force true
set force=true perm delete com.test.TC_Perm1.@[user.name].p.unknown myInstance myAction
** Expect 200,404 **
Deleted Permission

set force true
set force=true perm delete com.test.TC_Perm1.@[user.name].p.unknown2 myInstance myAction
** Expect 200,404 **
Deleted Permission

role delete com.test.TC_Perm1.@[user.name].r.A
** Expect 200,404 **
Deleted Role

role delete com.test.TC_Perm1.@[user.name].r.B
** Expect 200,404 **
Failed [SVC3404]: Not Found - Role [com.test.TC_Perm1.@[THE_USER].r.B] does not exist

role delete com.test.TC_Perm1.@[user.name].r.C
** Expect 200,404 **
Failed [SVC3404]: Not Found - Role [com.test.TC_Perm1.@[THE_USER].r.C] does not exist

role delete com.test.TC_Perm1.@[user.name].r.unknown
** Expect 200,404 **
Deleted Role

role delete com.test.TC_Perm1.@[user.name].r.unknown2
** Expect 200,404 **
Deleted Role

role delete com.test2.TC_Perm1.@[user.name].r.C
** Expect 200,404 **
Failed [SVC3404]: Not Found - Role [com.test2.TC_Perm1.@[THE_USER].r.C] does not exist

role delete com.test.TC_Perm1.@[user.name]_2.r.C
** Expect 200,404 **
Failed [SVC3404]: Not Found - Role [com.test.TC_Perm1.@[THE_USER]_2.r.C] does not exist

role delete com.test2.TC_Perm1.@[user.name]_2.r.C
** Expect 200,404 **
Failed [SVC3404]: Not Found - Role [com.test2.TC_Perm1.@[THE_USER]_2.r.C] does not exist

# TC_Perm1.99.2.POS Remove ability to create creds
user role del XX@NS com.test.TC_Perm1.@[user.name].cred_admin
** Expect 200,404 **
Removed Role [com.test.TC_Perm1.@[THE_USER].cred_admin] from User [XX@NS]

as XX@NS
perm ungrant com.att.aaf.mechid com.att create com.test.TC_Perm1.@[user.name].cred_admin
** Expect 200,404 **
UnGranted Permission [com.att.aaf.mechid|com.att|create] from Role [com.test.TC_Perm1.@[THE_USER].cred_admin]

as testid@aaf.att.com
role delete com.test.TC_Perm1.@[user.name].cred_admin
** Expect 200,404 **
Deleted Role

sleep 0
as XX@NS
# TC_Perm1.99.98.POS Namespace Admin can delete Namespace
set force true
set force=true ns delete com.test2.TC_Perm1.@[user.name]
** Expect 200,404 **
Failed [SVC2404]: Not Found - com.test2.TC_Perm1.@[THE_USER] does not exist

as testid
force ns delete com.test.TC_Perm1.@[user.name].r
** Expect 200,404 **
Deleted Namespace

force ns delete com.test.TC_Perm1.@[user.name]_2
** Expect 200,404 **
Failed [SVC2404]: Not Found - com.test.TC_Perm1.@[THE_USER]_2 does not exist

force ns delete com.test.TC_Perm1.@[user.name]
** Expect 200,404 **
Deleted Namespace

force ns delete com.test2.TC_Perm1.@[user.name]
** Expect 200,404 **
Failed [SVC2404]: Not Found - com.test2.TC_Perm1.@[THE_USER] does not exist

# TC_Perm1.99.99.POS List to prove removed
ns list name com.test.TC_Perm1.@[user.name]
** Expect 200,404 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***

ns list name com.test.TC_Perm1.@[user.name].r
** Expect 200,404 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER].r]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***

ns list name com.test.TC_Perm1.@[user.name]_2
** Expect 200,404 **

List Namespaces by Name[com.test.TC_Perm1.@[THE_USER]_2]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***

ns list name com.test2.TC_Perm1.@[user.name]
** Expect 200,404 **

List Namespaces by Name[com.test2.TC_Perm1.@[THE_USER]]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***