Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Role2 / 20_add_data
1 ##############
2 # Testing Model
3 # We are making a Testing model based loosely on George Orwell's Animal Farm
4 # In Animal Farm, Animals did all the work but didn't get any priviledges.
5 #   In our test, the animals can't see anything but their own role, etc
6 # Dogs were supervisors, and ostensibly did something, though mostly laid around
7 #   In our test, they have Implicit Permissions by being Admins
8 # Pigs were the Elite.  They did nothing, but watch everyone and eat the produce
9 #   In our test, they have Explicit Permissions to see everything they want
10 ##############
11 as testid@aaf.att.com:<pass>
12 # TC_Role2.20.1.POS List Data on non-Empty NS
13 expect 200
14 ns list name com.test.TC_Role2.@[user.name]
15
16 # TC_Role2.20.10.POS Create Orwellian Roles
17 expect 201
18 role create com.test.TC_Role2.@[user.name].r.animals 
19 role create com.test.TC_Role2.@[user.name].r.dogs
20 role create com.test.TC_Role2.@[user.name].r.pigs 
21
22 # TC_Role2.20.20.POS Create and Grant Perms to Dog Roles
23 expect 201
24 perm create com.test.TC_Role2.@[user.name].r.A garbage eat com.test.TC_Role2.@[user.name].r.animals
25 perm create com.test.TC_Role2.@[user.name].r.A grain eat com.test.TC_Role2.@[user.name].r.dogs
26 perm create com.test.TC_Role2.@[user.name].r.A grain * com.test.TC_Role2.@[user.name].r.dogs
27 perm create com.test.TC_Role2.@[user.name].r.A * * com.test.TC_Role2.@[user.name].r.dogs
28
29 # TC_Role2.20.25.POS Create and Grant Animal Farm Priviledges to Pigs
30 expect 201
31 as XX@NS:<pass>
32 perm create com.att.aaf.role com.test.TC_Role2.@[user.name].r.animals view com.test.TC_Role2.@[user.name].r.pigs
33 perm create com.att.aaf.role com.test.TC_Role2.@[user.name].r.dogs view com.test.TC_Role2.@[user.name].r.pigs
34
35 # TC_Role2.20.60.POS List Data on non-Empty NS
36 expect 200
37 as testid@aaf.att.com:<pass>
38 ns list name com.test.TC_Role2.@[user.name]
39