summaryrefslogtreecommitdiffstats
path: root/authz-test/TestSuite/expected/TC_Link.expected
blob: 3c58002e7ccd4eae33b19b97f6941b1019df144c (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
set testid <pass>
set testid@aaf.att.com <pass>
set XX@NS <pass>
set testunused <pass>
set bogus boguspass
#delay 10
set NFR 0
# TC_05
ns list name com.test.TC_Link_1.@[user.name]
** Expect 200,404 **

List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***

ns list name com.test.TC_Link_2.@[user.name]
** Expect 200,404 **

List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]]
--------------------------------------------------------------------------------
    *** Namespace Not Found ***

perm list role com.test.TC_Link_1.@[user.name].myRole
** Expect 200,404 **

List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole]
--------------------------------------------------------------------------------
PERM Type                      Instance                       Action    
--------------------------------------------------------------------------------


role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
** Expect 200,404 **

List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction
--------------------------------------------------------------------------------
ROLE Name                                         
   PERM Type                      Instance                       Action         
--------------------------------------------------------------------------------

# TC_10
as XX@NS
ns create com.test.TC_Link_1.@[user.name] @[user.name] XX@NS
** Expect 201 **
Created Namespace

ns create com.test.TC_Link_2.@[user.name] @[user.name] XX@NS
** Expect 201 **
Created Namespace

role create com.test.TC_Link_1.@[user.name].myRole
** Expect 201 **
Created Role

perm create com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
** Expect 201 **
Created Permission

perm grant com.test.TC_Link_2.@[user.name].myPerm myInstance myAction com.test.TC_Link_1.@[user.name].myRole
** Expect 201 **
Granted Permission [com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction] to Role [com.test.TC_Link_1.@[THE_USER].myRole]

# 15_print
ns list name com.test.TC_Link_1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Link_1.@[THE_USER]
    Administrators
        XX@NS                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Link_1.@[THE_USER].admin                                         
        com.test.TC_Link_1.@[THE_USER].myRole                                        
        com.test.TC_Link_1.@[THE_USER].owner                                         
    Permissions
        com.test.TC_Link_1.@[THE_USER].access *                        *              
        com.test.TC_Link_1.@[THE_USER].access *                        read           

ns list name com.test.TC_Link_2.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Link_2.@[THE_USER]
    Administrators
        XX@NS                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Link_2.@[THE_USER].admin                                         
        com.test.TC_Link_2.@[THE_USER].owner                                         
    Permissions
        com.test.TC_Link_2.@[THE_USER].access *                        *              
        com.test.TC_Link_2.@[THE_USER].access *                        read           
        com.test.TC_Link_2.@[THE_USER].myPerm myInstance               myAction       

perm list role com.test.TC_Link_1.@[user.name].myRole
** Expect 200 **

List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole]
--------------------------------------------------------------------------------
PERM Type                      Instance                       Action    
--------------------------------------------------------------------------------
com.test.TC_Link_2.@[THE_USER].myPerm myInstance                     myAction  


role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
** Expect 200 **

List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction
--------------------------------------------------------------------------------
ROLE Name                                         
   PERM Type                      Instance                       Action         
--------------------------------------------------------------------------------
com.test.TC_Link_1.@[THE_USER].myRole                  
   com.test.TC_Link_2.@[THE_USER].myPerm myInstance                     myAction       

role delete com.test.TC_Link_1.@[user.name].myRole
** Expect 200 **
Deleted Role

# 15_print
ns list name com.test.TC_Link_1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Link_1.@[THE_USER]
    Administrators
        XX@NS                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Link_1.@[THE_USER].admin                                         
        com.test.TC_Link_1.@[THE_USER].owner                                         
    Permissions
        com.test.TC_Link_1.@[THE_USER].access *                        *              
        com.test.TC_Link_1.@[THE_USER].access *                        read           

ns list name com.test.TC_Link_2.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Link_2.@[THE_USER]
    Administrators
        XX@NS                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Link_2.@[THE_USER].admin                                         
        com.test.TC_Link_2.@[THE_USER].owner                                         
    Permissions
        com.test.TC_Link_2.@[THE_USER].access *                        *              
        com.test.TC_Link_2.@[THE_USER].access *                        read           
        com.test.TC_Link_2.@[THE_USER].myPerm myInstance               myAction       

perm list role com.test.TC_Link_1.@[user.name].myRole
** Expect 200 **

List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole]
--------------------------------------------------------------------------------
PERM Type                      Instance                       Action    
--------------------------------------------------------------------------------


role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
** Expect 200 **

List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction
--------------------------------------------------------------------------------
ROLE Name                                         
   PERM Type                      Instance                       Action         
--------------------------------------------------------------------------------

role create com.test.TC_Link_1.@[user.name].myRole
** Expect 201 **
Created Role

perm grant com.test.TC_Link_2.@[user.name].myPerm myInstance myAction com.test.TC_Link_1.@[user.name].myRole
** Expect 201 **
Granted Permission [com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction] to Role [com.test.TC_Link_1.@[THE_USER].myRole]

# 15_print
ns list name com.test.TC_Link_1.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Link_1.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Link_1.@[THE_USER]
    Administrators
        XX@NS                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Link_1.@[THE_USER].admin                                         
        com.test.TC_Link_1.@[THE_USER].myRole                                        
        com.test.TC_Link_1.@[THE_USER].owner                                         
    Permissions
        com.test.TC_Link_1.@[THE_USER].access *                        *              
        com.test.TC_Link_1.@[THE_USER].access *                        read           

ns list name com.test.TC_Link_2.@[user.name]
** Expect 200 **

List Namespaces by Name[com.test.TC_Link_2.@[THE_USER]]
--------------------------------------------------------------------------------
com.test.TC_Link_2.@[THE_USER]
    Administrators
        XX@NS                                                      
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Roles
        com.test.TC_Link_2.@[THE_USER].admin                                         
        com.test.TC_Link_2.@[THE_USER].owner                                         
    Permissions
        com.test.TC_Link_2.@[THE_USER].access *                        *              
        com.test.TC_Link_2.@[THE_USER].access *                        read           
        com.test.TC_Link_2.@[THE_USER].myPerm myInstance               myAction       

perm list role com.test.TC_Link_1.@[user.name].myRole
** Expect 200 **

List Perms by Role [com.test.TC_Link_1.@[THE_USER].myRole]
--------------------------------------------------------------------------------
PERM Type                      Instance                       Action    
--------------------------------------------------------------------------------
com.test.TC_Link_2.@[THE_USER].myPerm myInstance                     myAction  


role list perm com.test.TC_Link_2.@[user.name].myPerm myInstance myAction
** Expect 200 **

List Roles by Perm com.test.TC_Link_2.@[THE_USER].myPerm|myInstance|myAction
--------------------------------------------------------------------------------
ROLE Name                                         
   PERM Type                      Instance                       Action         
--------------------------------------------------------------------------------
com.test.TC_Link_1.@[THE_USER].myRole                  
   com.test.TC_Link_2.@[THE_USER].myPerm myInstance                     myAction       

as XX@NS
force ns delete com.test.TC_Link_2.@[user.name] 
** Expect 200,404 **
Deleted Namespace

force ns delete com.test.TC_Link_1.@[user.name]
** Expect 200,404 **
Deleted Namespace