summaryrefslogtreecommitdiffstats
path: root/authz-test/TestSuite/expected/TC_NS3.expected
blob: 8ac3afcf9658f7645e5641074f292520487759d3 (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
set XX@NS <pass>
set testid@aaf.att.com <pass>
set testunused@aaf.att.com <pass>
set testid_1@test.com <pass>
set testid_2@test.com <pass>
set bogus boguspass
#delay 10
set NFR 0
as XX@NS
ns list name com.test.TC_NS3.@[user.name] 
** Expect 200 **

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

# TC_NS3.10.1.POS Create Namespace with User ID
ns create com.test.TC_NS3.@[user.name]_1 @[user.name] testid_1@test.com
** Expect 201 **
Created Namespace

as testid_1@test.com
# TC_NS3.20.0.NEG Too short
ns attrib
** Expect -1 **
Too few args: attrib <add|upd|del> <ns> <key> [value] 

# TC_NS3.20.1.NEG Wrong command
ns attrib xyz
** Expect -1 **
Too few args: attrib <add|upd|del> <ns> <key> [value] 

# TC_NS3.20.2.NEG Too Short after Command
ns attrib add
** Expect -1 **
Too few args: attrib <add|upd|del> <ns> <key> [value] 

# TC_NS3.20.3.NEG Too Short after Namespace
ns attrib add com.test.TC_NS3.@[user.name]
** Expect -1 **
Too few args: attrib <add|upd|del> <ns> <key> [value] 

# TC_NS3.20.4.NEG Too Short after Key
ns attrib add com.test.TC_NS3.@[user.name] TC_NS3_swm
** Expect -1 **
Not added: Need more Data

# TC_NS3.20.5.NEG No Permission
ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1
** Expect 403 **
Failed [SVC1403]: Forbidden - testid_1@test.com may not create NS Attrib [com.test.TC_NS3.@[THE_USER]_1:TC_NS3_swm]

# TC_NS3.20.6.POS Create Permission to write Attrib
as XX@NS
perm create com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
** Expect 201 **
Created Permission
Granted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] to Role [com.test.TC_NS3.@[THE_USER]_1.admin]

# TC_NS3.20.6.POS Create Permission
perm create com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin
** Expect 201 **
Created Permission
Granted Permission [com.att.aaf.attrib|:com.att.*:*|read] to Role [com.test.TC_NS3.@[THE_USER]_1.admin]

# TC_NS3.20.10.POS Attribute added
as testid_1@test.com
ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1
** Expect 201 **
Add Attrib TC_NS3_swm=v1 to com.test.TC_NS3.@[THE_USER]_1

# TC_NS3.20.30.POS List NS by Attrib
ns list keys TC_NS3_swm
** Expect 200 **

List Namespace Names by Attribute
--------------------------------------------------------------------------------
  com.test.TC_NS3.@[THE_USER]_1                                                

# TC_NS3.20.40.POS List NS (shows Attrib)
ns list name com.test.TC_NS3.@[user.name]_1
** Expect 200 **

List Namespaces by Name[com.test.TC_NS3.@[THE_USER]_1]
--------------------------------------------------------------------------------
com.test.TC_NS3.@[THE_USER]_1
    Administrators
        testid_1@test.com                                                       
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Namespace Attributes
        TC_NS3_swm=v1                                                           
    Roles
        com.test.TC_NS3.@[THE_USER]_1.admin                                          
        com.test.TC_NS3.@[THE_USER]_1.owner                                          
    Permissions
        com.test.TC_NS3.@[THE_USER]_1.access *                        *              
        com.test.TC_NS3.@[THE_USER]_1.access *                        read           

# TC_NS3.20.42.POS Change Attrib
ns attrib upd com.test.TC_NS3.@[user.name]_1 TC_NS3_swm Version1
** Expect 200 **
Update Attrib TC_NS3_swm=Version1 for com.test.TC_NS3.@[THE_USER]_1

# TC_NS3.20.49.POS List NS (shows new Attrib)
ns list name com.test.TC_NS3.@[user.name]_1
** Expect 200 **

List Namespaces by Name[com.test.TC_NS3.@[THE_USER]_1]
--------------------------------------------------------------------------------
com.test.TC_NS3.@[THE_USER]_1
    Administrators
        testid_1@test.com                                                       
    Responsible Parties
        @[THE_USER]@csp.att.com                                                      
    Namespace Attributes
        TC_NS3_swm=Version1                                                     
    Roles
        com.test.TC_NS3.@[THE_USER]_1.admin                                          
        com.test.TC_NS3.@[THE_USER]_1.owner                                          
    Permissions
        com.test.TC_NS3.@[THE_USER]_1.access *                        *              
        com.test.TC_NS3.@[THE_USER]_1.access *                        read           

# TC_NS3.20.80.POS Remove write Permission
perm ungrant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
** Expect 200 **
UnGranted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] from Role [com.test.TC_NS3.@[THE_USER]_1.admin]

# TC_NS3.20.83.POS Remove read Permission
perm ungrant com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin
** Expect 200 **
UnGranted Permission [com.att.aaf.attrib|:com.att.*:*|read] from Role [com.test.TC_NS3.@[THE_USER]_1.admin]

as testid_1@test.com
# TC_NS3.50.2.NEG Too Short after Command
ns attrib del
** Expect -1 **
Too few args: attrib <add|upd|del> <ns> <key> [value] 

# TC_NS3.50.3.NEG Too Short after Namespace
ns attrib del com.test.TC_NS3.@[user.name]
** Expect -1 **
Too few args: attrib <add|upd|del> <ns> <key> [value] 

# TC_NS3.50.5.NEG No Permission
ns attrib del com.test.TC_NS3.@[user.name]_1 TC_NS3_swm 
** Expect 403 **
Failed [SVC1403]: Forbidden - testid_1@test.com may not delete NS Attrib [com.test.TC_NS3.@[THE_USER]_1:TC_NS3_swm]

# TC_NS3.50.6.POS Create Permission
as XX@NS
perm grant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
** Expect 201 **
Granted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] to Role [com.test.TC_NS3.@[THE_USER]_1.admin]

# TC_NS3.50.7.POS Attribute added
as testid_1@test.com
ns attrib del com.test.TC_NS3.@[user.name]_1 TC_NS3_swm 
** Expect 200 **
Attrib TC_NS3_swm deleted from com.test.TC_NS3.@[THE_USER]_1

# TC_NS3.50.8.POS Remove Permission
as XX@NS
perm ungrant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
** Expect 200 **
UnGranted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] from Role [com.test.TC_NS3.@[THE_USER]_1.admin]

as testid_1@test.com
# TC_NS3.99.2.POS Namespace Admin can delete Namespace
force ns delete com.test.TC_NS3.@[user.name]_1
** Expect 200,404 **
Deleted Namespace

# TC_NS3.99.3.POS Print Namespaces
ns list name com.test.TC_NS3.@[user.name]_1
** Expect 200,404 **

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

# TC_NS3.99.10.POS Remove Special Permissions
as XX@NS
force perm delete com.att.aaf.attrib :com.att.*:TC_NS3_swm write
** Expect 200,404 **
Deleted Permission

force perm delete com.att.aaf.attrib :com.att.*:* read
** Expect 200,404 **
Deleted Permission