summaryrefslogtreecommitdiffstats
path: root/authz-test/TestSuite/TC_Perm2/40_viewByType
blob: cef41b05a4d1970353633ceefa6e4c6ce261de24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
as testunused@aaf.att.com
# TC_Perm2.40.1.NEG Non-admin, not granted user should not view
expect 200
perm list name com.test.TC_Perm2.@[user.name].p.A

as testid@aaf.att.com
# Tens test user granted to permission
# TC_Perm2.40.10.POS Add user to superUser role
expect 201
user role add testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.superUser

as testunused@aaf.att.com
# TC_Perm2.40.11.POS Non-admin, granted user should view
expect 200
perm list name com.test.TC_Perm2.@[user.name].p.A

as testid@aaf.att.com
# TC_Perm2.40.12.POS Ungrant perm with wildcards
expect 200
perm ungrant com.test.TC_Perm2.@[user.name].p.A * * com.test.TC_Perm2.@[user.name].p.superUser

as testunused@aaf.att.com
# TC_Perm2.40.13.POS Non-admin, granted user should view
expect 200
perm list name com.test.TC_Perm2.@[user.name].p.A

as testid@aaf.att.com
# TC_Perm2.40.19.POS Remove user from superUser role
expect 200
user role del testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.superUser

# Twenties test user granted explicit view permission
# TC_Perm2.40.20.POS Add user to watcher role
expect 201
user role add testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.watcher

as testunused@aaf.att.com
# TC_Perm2.40.21.NEG Non-admin, granted explicit view perm user should view
expect 200
perm list name com.test.TC_Perm2.@[user.name].p.A

as XX@NS
# TC_Perm2.40.22.POS Ungrant perm with wildcards
expect 200
perm ungrant com.att.aaf.perm :com.test.TC_Perm2.@[user.name].p.A:*:* view com.test.TC_Perm2.@[user.name].p.watcher

as testunused@aaf.att.com
# TC_Perm2.40.23.POS Non-admin, granted user should view
expect 200
perm list name com.test.TC_Perm2.@[user.name].p.A

as testid@aaf.att.com
# TC_Perm2.40.29.POS Remove user from watcher role
expect 200
user role del testunused@aaf.att.com com.test.TC_Perm2.@[user.name].p.watcher

# Thirties test admin user 
# TC_Perm2.40.30.POS Admin should be able to view
expect 200
perm list name com.test.TC_Perm2.@[user.name].p.A

# TC_Perm2.40.31.POS Add new admin for sub-NS
expect 201
ns admin add com.test.TC_Perm2.@[user.name].p testunused@aaf.att.com

# TC_Perm2.40.32.POS Remove admin from sub-NS
expect 200
ns admin del com.test.TC_Perm2.@[user.name].p testid@aaf.att.com

# TC_Perm2.40.34.POS Admin of parent NS should be able to view
expect 200
perm list name com.test.TC_Perm2.@[user.name].p.A

# TC_Perm2.40.80.POS Add new admin for sub-NS
expect 201
ns admin add com.test.TC_Perm2.@[user.name].p testid@aaf.att.com

# TC_Perm2.40.81.POS Remove admin from sub-NS
expect 200
ns admin del com.test.TC_Perm2.@[user.name].p testunused@aaf.att.com