blob: 3c58002e7ccd4eae33b19b97f6941b1019df144c [file] [log] [blame]
sg481n43854a92017-08-03 17:27:34 -04001set testid <pass>
2set testid@aaf.att.com <pass>
3set XX@NS <pass>
4set testunused <pass>
5set bogus boguspass
6#delay 10
7set NFR 0
8# TC_05
9ns list name com.test.TC_Link_1.@[user.name]
10** Expect 200,404 **
11
12List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]]
13--------------------------------------------------------------------------------
14 *** Namespace Not Found ***
15
16ns list name com.test.TC_Link_2.@[user.name]
17** Expect 200,404 **
18
19List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]]
20--------------------------------------------------------------------------------
21 *** Namespace Not Found ***
22
23perm list role com.test.TC_Link_1.@[user.name].myRole
24** Expect 200,404 **
25
26List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole]
27--------------------------------------------------------------------------------
28PERM Type Instance Action
29--------------------------------------------------------------------------------
30
31
32role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
33** Expect 200,404 **
34
35List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction
36--------------------------------------------------------------------------------
37ROLE Name
38 PERM Type Instance Action
39--------------------------------------------------------------------------------
40
41# TC_10
42as XX@NS
43ns create com.test.TC_Link_1.@[user.name] @[user.name] XX@NS
44** Expect 201 **
45Created Namespace
46
47ns create com.test.TC_Link_2.@[user.name] @[user.name] XX@NS
48** Expect 201 **
49Created Namespace
50
51role create com.test.TC_Link_1.@[user.name].myRole
52** Expect 201 **
53Created Role
54
55perm create com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
56** Expect 201 **
57Created Permission
58
59perm grant com.test.TC_Link_2.@[user.name].myPerm myInstance myAction com.test.TC_Link_1.@[user.name].myRole
60** Expect 201 **
61Granted Permission [com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction] to Role [com.test.TC_Link_1.@[THE_USER].myRole]
62
63# 15_print
64ns list name com.test.TC_Link_1.@[user.name]
65** Expect 200 **
66
67List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]]
68--------------------------------------------------------------------------------
69com.test.TC_Link_1.@[THE_USER]
70 Administrators
71 XX@NS
72 Responsible Parties
73 @[THE_USER]@csp.att.com
74 Roles
75 com.test.TC_Link_1.@[THE_USER].admin
76 com.test.TC_Link_1.@[THE_USER].myRole
77 com.test.TC_Link_1.@[THE_USER].owner
78 Permissions
79 com.test.TC_Link_1.@[THE_USER].access * *
80 com.test.TC_Link_1.@[THE_USER].access * read
81
82ns list name com.test.TC_Link_2.@[user.name]
83** Expect 200 **
84
85List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]]
86--------------------------------------------------------------------------------
87com.test.TC_Link_2.@[THE_USER]
88 Administrators
89 XX@NS
90 Responsible Parties
91 @[THE_USER]@csp.att.com
92 Roles
93 com.test.TC_Link_2.@[THE_USER].admin
94 com.test.TC_Link_2.@[THE_USER].owner
95 Permissions
96 com.test.TC_Link_2.@[THE_USER].access * *
97 com.test.TC_Link_2.@[THE_USER].access * read
98 com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction
99
100perm list role com.test.TC_Link_1.@[user.name].myRole
101** Expect 200 **
102
103List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole]
104--------------------------------------------------------------------------------
105PERM Type Instance Action
106--------------------------------------------------------------------------------
107com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction
108
109
110role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
111** Expect 200 **
112
113List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction
114--------------------------------------------------------------------------------
115ROLE Name
116 PERM Type Instance Action
117--------------------------------------------------------------------------------
118com.test.TC_Link_1.@[THE_USER].myRole
119 com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction
120
121role delete com.test.TC_Link_1.@[user.name].myRole
122** Expect 200 **
123Deleted Role
124
125# 15_print
126ns list name com.test.TC_Link_1.@[user.name]
127** Expect 200 **
128
129List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]]
130--------------------------------------------------------------------------------
131com.test.TC_Link_1.@[THE_USER]
132 Administrators
133 XX@NS
134 Responsible Parties
135 @[THE_USER]@csp.att.com
136 Roles
137 com.test.TC_Link_1.@[THE_USER].admin
138 com.test.TC_Link_1.@[THE_USER].owner
139 Permissions
140 com.test.TC_Link_1.@[THE_USER].access * *
141 com.test.TC_Link_1.@[THE_USER].access * read
142
143ns list name com.test.TC_Link_2.@[user.name]
144** Expect 200 **
145
146List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]]
147--------------------------------------------------------------------------------
148com.test.TC_Link_2.@[THE_USER]
149 Administrators
150 XX@NS
151 Responsible Parties
152 @[THE_USER]@csp.att.com
153 Roles
154 com.test.TC_Link_2.@[THE_USER].admin
155 com.test.TC_Link_2.@[THE_USER].owner
156 Permissions
157 com.test.TC_Link_2.@[THE_USER].access * *
158 com.test.TC_Link_2.@[THE_USER].access * read
159 com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction
160
161perm list role com.test.TC_Link_1.@[user.name].myRole
162** Expect 200 **
163
164List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole]
165--------------------------------------------------------------------------------
166PERM Type Instance Action
167--------------------------------------------------------------------------------
168
169
170role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
171** Expect 200 **
172
173List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction
174--------------------------------------------------------------------------------
175ROLE Name
176 PERM Type Instance Action
177--------------------------------------------------------------------------------
178
179role create com.test.TC_Link_1.@[user.name].myRole
180** Expect 201 **
181Created Role
182
183perm grant com.test.TC_Link_2.@[user.name].myPerm myInstance myAction com.test.TC_Link_1.@[user.name].myRole
184** Expect 201 **
185Granted Permission [com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction] to Role [com.test.TC_Link_1.@[THE_USER].myRole]
186
187# 15_print
188ns list name com.test.TC_Link_1.@[user.name]
189** Expect 200 **
190
191List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]]
192--------------------------------------------------------------------------------
193com.test.TC_Link_1.@[THE_USER]
194 Administrators
195 XX@NS
196 Responsible Parties
197 @[THE_USER]@csp.att.com
198 Roles
199 com.test.TC_Link_1.@[THE_USER].admin
200 com.test.TC_Link_1.@[THE_USER].myRole
201 com.test.TC_Link_1.@[THE_USER].owner
202 Permissions
203 com.test.TC_Link_1.@[THE_USER].access * *
204 com.test.TC_Link_1.@[THE_USER].access * read
205
206ns list name com.test.TC_Link_2.@[user.name]
207** Expect 200 **
208
209List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]]
210--------------------------------------------------------------------------------
211com.test.TC_Link_2.@[THE_USER]
212 Administrators
213 XX@NS
214 Responsible Parties
215 @[THE_USER]@csp.att.com
216 Roles
217 com.test.TC_Link_2.@[THE_USER].admin
218 com.test.TC_Link_2.@[THE_USER].owner
219 Permissions
220 com.test.TC_Link_2.@[THE_USER].access * *
221 com.test.TC_Link_2.@[THE_USER].access * read
222 com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction
223
224perm list role com.test.TC_Link_1.@[user.name].myRole
225** Expect 200 **
226
227List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole]
228--------------------------------------------------------------------------------
229PERM Type Instance Action
230--------------------------------------------------------------------------------
231com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction
232
233
234role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
235** Expect 200 **
236
237List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction
238--------------------------------------------------------------------------------
239ROLE Name
240 PERM Type Instance Action
241--------------------------------------------------------------------------------
242com.test.TC_Link_1.@[THE_USER].myRole
243 com.test.TC_Link_2.@[THE_USER].myPerm myInstance myAction
244
245as XX@NS
246force ns delete com.test.TC_Link_2.@[user.name]
247** Expect 200,404 **
248Deleted Namespace
249
250force ns delete com.test.TC_Link_1.@[user.name]
251** Expect 200,404 **
252Deleted Namespace
253