Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Perm1 / 25_grant_owned
1 # TC_Perm1.25.1.POS Create another Role in This namespace
2 expect 201
3 role create com.test.TC_Perm1.@[user.name].r.C
4
5 # TC_Perm1.25.2.POS Create another Perm in This namespace
6 expect 201
7 perm create com.test.TC_Perm1.@[user.name].p.C myInstance myAction
8
9 # TC_Perm1.25.3.NEG Permission must Exist to Add to Role
10 expect 404
11 perm grant com.test.TC_Perm1.@[user.name].p.NO myInstance myAction com.test.TC_Perm1.@[user.name].r.C
12
13 # TC_Perm1.25.4.POS Grant individual new Perm to new Role
14 expect 201
15 perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
16
17 # TC_Perm1.25.5.NEG Already Granted Perm
18 expect 409
19 perm grant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
20
21 # TC_Perm1.25.6.POS Print Info for Validation
22 expect 200
23 ns list name com.test.TC_Perm1.@[user.name]
24
25 # TC_Perm1.25.10.POS UnGrant individual new Perm to new Role
26 expect 200
27 perm ungrant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
28
29 # TC_Perm1.25.11.NEG Already UnGranted Perm
30 expect 404
31 perm ungrant com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C
32
33 # TC_Perm1.25.20.POS Reset roles attached to permision with setTo
34 expect 200
35 perm setTo com.test.TC_Perm1.@[user.name].p.C myInstance myAction com.test.TC_Perm1.@[user.name].r.C,com.test.TC_Perm1.@[user.name].r.A
36
37 # TC_Perm1.25.21.POS Owner of permission can reset roles
38 expect 200
39 perm setTo com.test.TC_Perm1.@[user.name].p.C myInstance myAction
40