sg481n | 43854a9 | 2017-08-03 17:27:34 -0400 | [diff] [blame] | 1 | as XX@NS:<pass> |
| 2 | expect 200,404 |
| 3 | |
| 4 | # TC_Perm1.99.1.POS Namespace Admin can delete Namepace defined Roles |
| 5 | set force=true perm delete com.test.TC_Perm1.@[user.name].p.A myInstance myAction |
| 6 | set force=true perm delete com.test.TC_Perm1.@[user.name].p.B myInstance myAction |
| 7 | set force=true perm delete com.test.TC_Perm1.@[user.name].p.C myInstance myAction |
| 8 | set force=true perm delete com.test.TC_Perm1.@[user.name].p.unknown myInstance myAction |
| 9 | set force=true perm delete com.test.TC_Perm1.@[user.name].p.unknown2 myInstance myAction |
| 10 | role delete com.test.TC_Perm1.@[user.name].r.A |
| 11 | role delete com.test.TC_Perm1.@[user.name].r.B |
| 12 | role delete com.test.TC_Perm1.@[user.name].r.C |
| 13 | role delete com.test.TC_Perm1.@[user.name].r.unknown |
| 14 | role delete com.test.TC_Perm1.@[user.name].r.unknown2 |
| 15 | role delete com.test2.TC_Perm1.@[user.name].r.C |
| 16 | role delete com.test.TC_Perm1.@[user.name]_2.r.C |
| 17 | role delete com.test2.TC_Perm1.@[user.name]_2.r.C |
| 18 | |
| 19 | # TC_Perm1.99.2.POS Remove ability to create creds |
| 20 | user role del XX@NS com.test.TC_Perm1.@[user.name].cred_admin |
| 21 | |
| 22 | as XX@NS:<pass> |
| 23 | perm ungrant com.att.aaf.mechid com.att create com.test.TC_Perm1.@[user.name].cred_admin |
| 24 | |
| 25 | as testid@aaf.att.com:<pass> |
| 26 | role delete com.test.TC_Perm1.@[user.name].cred_admin |
| 27 | |
| 28 | sleep @[NFR] |
| 29 | as XX@NS:<pass> |
| 30 | # TC_Perm1.99.98.POS Namespace Admin can delete Namespace |
| 31 | set force=true ns delete com.test2.TC_Perm1.@[user.name] |
| 32 | as testid:<pass> |
| 33 | force ns delete com.test.TC_Perm1.@[user.name].r |
| 34 | force ns delete com.test.TC_Perm1.@[user.name]_2 |
| 35 | force ns delete com.test.TC_Perm1.@[user.name] |
| 36 | force ns delete com.test2.TC_Perm1.@[user.name] |
| 37 | |
| 38 | # TC_Perm1.99.99.POS List to prove removed |
| 39 | ns list name com.test.TC_Perm1.@[user.name] |
| 40 | ns list name com.test.TC_Perm1.@[user.name].r |
| 41 | ns list name com.test.TC_Perm1.@[user.name]_2 |
| 42 | ns list name com.test2.TC_Perm1.@[user.name] |