blob: a6ec33c523faeade52c9a2e3d4b44f485960b22b [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001as XX@NS
2# TC_Role2.40.1.POS List Data on Role
3expect 200
4role list role com.test.TC_Role2.@[user.name].r.animals
5role list role com.test.TC_Role2.@[user.name].r.dogs
6role list role com.test.TC_Role2.@[user.name].r.pigs
7
8# TC_Role2.40.10.POS Add testunused to animals
9expect 201
10as testid@aaf.att.com
11user role add testunused@aaf.att.com com.test.TC_Role2.@[user.name].r.animals
12
13# TC_Role2.40.11.POS List by Name when part of role
14as testunused@aaf.att.com
15expect 200
16role list role com.test.TC_Role2.@[user.name].r.animals
17
18# TC_Role2.40.12.NEG List by Name when not part of Role
19expect 403
20role list role com.test.TC_Role2.@[user.name].r.dogs
21role list role com.test.TC_Role2.@[user.name].r.pigs
22
23
24# TC_Role2.40.30.POS Read various Roles based on being Admin in Namespace
25as testid@aaf.att.com
26expect 200
27role list role com.test.TC_Role2.@[user.name].r.animals
28role list role com.test.TC_Role2.@[user.name].r.dogs
29role list role com.test.TC_Role2.@[user.name].r.pigs
30
31# TC_Role2.40.50.POS Change testunused to Pigs
32as testid@aaf.att.com
33expect 200
34user role del testunused@aaf.att.com com.test.TC_Role2.@[user.name].r.animals
35expect 201
36user role add testunused@aaf.att.com com.test.TC_Role2.@[user.name].r.pigs
37
38# TC_Role2.40.51.POS Read various Roles based on having Explicit Permissions
39as testunused@aaf.att.com
40expect 403
41role list role com.test.TC_Role2.@[user.name].r.animals
42role list role com.test.TC_Role2.@[user.name].r.dogs
43expect 200
44role list role com.test.TC_Role2.@[user.name].r.pigs
45