sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame] | 1 | # TC_Perm2.41.1.POS Add user to some roles with perms attached |
| 2 | as testid@aaf.att.com |
| 3 | expect 201 |
| 4 | user role add testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.superUser |
| 5 | user role add testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.watcher |
| 6 | user role add XX@NS com.test.TC_Perm2.@[user.name].p.secret |
| 7 | |
| 8 | # TC_Perm2.41.10.POS List by User when Same as Caller |
| 9 | as testunused@aaf.att.com |
| 10 | expect 200 |
| 11 | perm list user testunused@aaf.att.com |
| 12 | |
| 13 | # TC_NS2.41.15.POS List by User when not same as Caller, but own/admin namespace of Roles |
| 14 | as testid@aaf.att.com |
| 15 | expect 200 |
| 16 | perm list user testunused@aaf.att.com |
| 17 | |
| 18 | # TC_Perm2.41.20.POS List by User when not same as Caller, but parent owner/admin of Namespace |
| 19 | as XX@NS |
| 20 | expect 200 |
| 21 | perm list user testunused@aaf.att.com |
| 22 | |
| 23 | # TC_Perm2.41.80.NEG List by User when not Caller nor associated to Namespace (nothing should be shown) |
| 24 | as testunused@aaf.att.com |
| 25 | expect 200 |
| 26 | perm list user XX@NS |
| 27 | |
| 28 | # TC_Perm2.41.99.POS Remove users from roles for later test |
| 29 | as testid@aaf.att.com |
| 30 | expect 200 |
| 31 | user role del testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.superUser |
| 32 | user role del testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.watcher |
| 33 | user role del XX@NS com.test.TC_Perm2.@[user.name].p.secret |
| 34 | |