Upgrade to latest oparent
[aaf/authz.git] / authz-test / TestSuite / TC_Perm2 / 40_viewByType
1
2 as testunused@aaf.att.com
3 # TC_Perm2.40.1.NEG Non-admin, not granted user should not view
4 expect 200
5 perm list name com.test.TC_Perm2.@[user.name].p.A
6
7 as testid@aaf.att.com
8 # Tens test user granted to permission
9 # TC_Perm2.40.10.POS Add user to superUser role
10 expect 201
11 user role add testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.superUser
12
13 as testunused@aaf.att.com
14 # TC_Perm2.40.11.POS Non-admin, granted user should view
15 expect 200
16 perm list name com.test.TC_Perm2.@[user.name].p.A
17
18 as testid@aaf.att.com
19 # TC_Perm2.40.12.POS Ungrant perm with wildcards
20 expect 200
21 perm ungrant com.test.TC_Perm2.@[user.name].p.A * * com.test.TC_Perm2.@[user.name].p.superUser
22
23 as testunused@aaf.att.com
24 # TC_Perm2.40.13.POS Non-admin, granted user should view
25 expect 200
26 perm list name com.test.TC_Perm2.@[user.name].p.A
27
28 as testid@aaf.att.com
29 # TC_Perm2.40.19.POS Remove user from superUser role
30 expect 200
31 user role del testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.superUser
32
33 # Twenties test user granted explicit view permission
34 # TC_Perm2.40.20.POS Add user to watcher role
35 expect 201
36 user role add testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.watcher
37
38 as testunused@aaf.att.com
39 # TC_Perm2.40.21.NEG Non-admin, granted explicit view perm user should view
40 expect 200
41 perm list name com.test.TC_Perm2.@[user.name].p.A
42
43 as XX@NS
44 # TC_Perm2.40.22.POS Ungrant perm with wildcards
45 expect 200
46 perm ungrant com.att.aaf.perm :com.test.TC_Perm2.@[user.name].p.A:*:* view com.test.TC_Perm2.@[user.name].p.watcher
47
48 as testunused@aaf.att.com
49 # TC_Perm2.40.23.POS Non-admin, granted user should view
50 expect 200
51 perm list name com.test.TC_Perm2.@[user.name].p.A
52
53 as testid@aaf.att.com
54 # TC_Perm2.40.29.POS Remove user from watcher role
55 expect 200
56 user role del testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.watcher
57
58 # Thirties test admin user 
59 # TC_Perm2.40.30.POS Admin should be able to view
60 expect 200
61 perm list name com.test.TC_Perm2.@[user.name].p.A
62
63 # TC_Perm2.40.31.POS Add new admin for sub-NS
64 expect 201
65 ns admin add com.test.TC_Perm2.@[user.name].p testunused@aaf.att.com
66
67 # TC_Perm2.40.32.POS Remove admin from sub-NS
68 expect 200
69 ns admin del com.test.TC_Perm2.@[user.name].p testid@aaf.att.com
70
71 # TC_Perm2.40.34.POS Admin of parent NS should be able to view
72 expect 200
73 perm list name com.test.TC_Perm2.@[user.name].p.A
74
75 # TC_Perm2.40.80.POS Add new admin for sub-NS
76 expect 201
77 ns admin add com.test.TC_Perm2.@[user.name].p testid@aaf.att.com
78
79 # TC_Perm2.40.81.POS Remove admin from sub-NS
80 expect 200
81 ns admin del com.test.TC_Perm2.@[user.name].p testunused@aaf.att.com
82