Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Perm1 / 20_add_data
1 # TC_Perm1.20.1.POS List Data on non-Empty NS
2 expect 200
3 ns list name com.test.TC_Perm1.@[user.name]
4
5 # TC_Perm1.20.2.POS Add Perm 
6 expect 201
7 perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction
8
9 # TC_Perm1.20.3.NEG Already Added Perm 
10 expect 409
11 perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction
12
13 # TC_Perm1.20.4.POS Add Perm with non-existent Roles as well
14 expect 201
15 force perm create com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].r.A,com.test.TC_Perm1.@[user.name].r.B
16
17 # TC_Perm1.20.8.POS Print Info for Validation
18 expect 200
19 ns list name com.test.TC_Perm1.@[user.name]
20
21 # TC_Perm1.20.9.NEG Already Added Perm with some Roles as well
22 expect 409
23 perm create com.test.TC_Perm1.@[user.name].p.B myInstance myAction com.test.TC_Perm1.@[user.name].r.A,com.test.TC_Perm1.@[user.name].r.B
24
25 # TC_Perm1.20.10.NEG Non-admins can't change description
26 expect 403
27 as testunused
28 perm describe com.test.TC_Perm1.@[user.name].p.A myInstance myAction Description for A
29
30 # TC_Perm1.20.11.NEG Permission must exist to change description
31 expect 404
32 as testid
33 perm describe com.test.TC_Perm1.@[user.name].p.C myInstance myAction Description for C
34
35 # TC_Perm1.20.12.POS Admin can change description
36 expect 200
37 perm describe com.test.TC_Perm1.@[user.name].p.A myInstance myAction Description for A
38