Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Role1 / 20_add_data
1 # TC_Role1.20.1.POS List Data on non-Empty NS
2 expect 200
3 ns list name com.test.TC_Role1.@[user.name]
4
5 # TC_Role1.20.2.POS Add Roles 
6 expect 201
7 role create com.test.TC_Role1.@[user.name].r.A
8 role create com.test.TC_Role1.@[user.name].r.B
9
10 # TC_Role1.20.3.POS List Data on non-Empty NS
11 expect 200
12 ns list name com.test.TC_Role1.@[user.name]
13
14 # TC_Role1.20.4.NEG Don't write over Role
15 expect 409
16 role create com.test.TC_Role1.@[user.name].r.A
17
18 # TC_Role1.20.5.NEG Don't allow non-user to create
19 expect 401
20 as bogus
21 role create com.test.TC_Role1.@[user.name].r.No
22
23 # TC_Role1.20.6.NEG Don't allow non-user to create without Approval
24 expect 403
25 as testunused@aaf.att.com
26 role create com.test.TC_Role1.@[user.name].r.No
27
28 # TC_Role1.20.10.NEG Non-admins can't change description
29 expect 403
30 as testunused@aaf.att.com
31 role describe com.test.TC_Role1.@[user.name].r.A Description A
32
33 # TC_Role1.20.11.NEG Role must exist to change description
34 expect 404
35 as testid@aaf.att.com
36 role describe com.test.TC_Role1.@[user.name].r.C Description C
37
38 # TC_Role1.20.12.POS Admin can change description
39 expect 200
40 role describe com.test.TC_Role1.@[user.name].r.A Description A