Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Perm1 / 27_grant_force
1 # TC_Perm1.27.1.POS Create Permission
2 expect 201
3 perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction 
4
5 # TC_Perm1.27.2.POS Create Role
6 expect 201
7 role create com.test.TC_Perm1.@[user.name].r.A
8
9 # TC_Perm1.27.10.NEG Role must Exist to Add to Role without force
10 expect 404
11 perm grant com.test.TC_Perm1.@[user.name].p.A myInstance myAction com.test.TC_Perm1.@[user.name].r.unknown
12
13 # TC_Perm1.27.11.POS Role is created with force
14 expect 201
15 force perm create com.test.TC_Perm1.@[user.name].p.A myInstance myAction com.test.TC_Perm1.@[user.name].r.unknown
16
17 # TC_Perm1.27.12.NEG Perm must Exist to Grant without force
18 expect 404
19 perm grant com.test.TC_Perm1.@[user.name].p.unknown myInstance myAction com.test.TC_Perm1.@[user.name].r.A
20
21 # TC_Perm1.27.13.POS Perm is created with force
22 expect 201
23 force perm grant com.test.TC_Perm1.@[user.name].p.unknown myInstance myAction com.test.TC_Perm1.@[user.name].r.A
24
25 # TC_Perm1.27.14.POS Role and perm are created with force
26 expect 201
27 force perm create com.test.TC_Perm1.@[user.name].p.unknown2 myInstance myAction com.test.TC_Perm1.@[user.name].r.unknown2
28
29