blob: 51c2ecb4ac6df9ec6bb594e7e6678e35112f5cd5 [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001# TC_Perm2.41.1.POS Add user to some roles with perms attached
2as testid@aaf.att.com
3expect 201
4user role add testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.superUser
5user role add testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.watcher
6user 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
9as testunused@aaf.att.com
10expect 200
11perm 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
14as testid@aaf.att.com
15expect 200
16perm 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
19as XX@NS
20expect 200
21perm 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)
24as testunused@aaf.att.com
25expect 200
26perm list user XX@NS
27
28# TC_Perm2.41.99.POS Remove users from roles for later test
29as testid@aaf.att.com
30expect 200
31user role del testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.superUser
32user role del testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.watcher
33user role del XX@NS com.test.TC_Perm2.@[user.name].p.secret
34