Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Perm2 / 20_add_data
1 as testid@aaf.att.com:<pass>
2 # TC_Perm2.20.1.POS List Data on non-Empty NS
3 expect 200
4 ns list name com.test.TC_Perm2.@[user.name]
5
6 # TC_Perm2.20.10.POS Add Perms with specific Instance and Action
7 expect 201
8 perm create com.test.TC_Perm2.@[user.name].p.A myInstance myAction
9
10 # TC_Perm2.20.11.POS Add Perms with specific Instance and Star
11 expect 201
12 perm create com.test.TC_Perm2.@[user.name].p.A myInstance *
13
14 # TC_Perm2.20.12.POS Add Perms with Stars for Instance and Action
15 expect 201
16 perm create com.test.TC_Perm2.@[user.name].p.A * *
17 perm create com.test.TC_Perm2.@[user.name].p.phoneCalls * spy
18
19 # TC_Perm2.20.20.POS Create role 
20 expect 201
21 role create com.test.TC_Perm2.@[user.name].p.superUser
22 role create com.test.TC_Perm2.@[user.name].p.secret
23
24 # TC_Perm2.20.21.POS Grant sub-NS perms to role
25 expect 201
26 perm grant com.test.TC_Perm2.@[user.name].p.A myInstance myAction com.test.TC_Perm2.@[user.name].p.superUser
27 perm grant com.test.TC_Perm2.@[user.name].p.A myInstance * com.test.TC_Perm2.@[user.name].p.superUser
28 perm grant com.test.TC_Perm2.@[user.name].p.A * * com.test.TC_Perm2.@[user.name].p.superUser
29 perm grant com.test.TC_Perm2.@[user.name].p.phoneCalls * spy com.test.TC_Perm2.@[user.name].p.secret
30
31 # TC_Perm2.20.30.POS List Data on non-Empty NS
32 expect 200
33 ns list name com.test.TC_Perm2.@[user.name]
34
35 # TC_Perm2.20.40.POS Create role
36 expect 201
37 role create com.test.TC_Perm2.@[user.name].p.watcher
38
39 as XX@NS
40 # TC_Perm2.20.50.POS Grant view perms to watcher role
41 expect 201
42 perm create com.att.aaf.perm :com.test.TC_Perm2.@[user.name].p.A:myInstance:myAction view com.test.TC_Perm2.@[user.name].p.watcher
43 perm create com.att.aaf.perm :com.test.TC_Perm2.@[user.name].p.A:*:* view com.test.TC_Perm2.@[user.name].p.watcher
44