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
11 as testid@aaf.att.com:<pass>
12 # TC_Role2.20.1.POS List Data on non-Empty NS
14 ns list name com.test.TC_Role2.@[user.name]
16 # TC_Role2.20.10.POS Create Orwellian Roles
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
22 # TC_Role2.20.20.POS Create and Grant Perms to Dog Roles
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
29 # TC_Role2.20.25.POS Create and Grant Animal Farm Priviledges to Pigs
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
35 # TC_Role2.20.60.POS List Data on non-Empty NS
37 as testid@aaf.att.com:<pass>
38 ns list name com.test.TC_Role2.@[user.name]