blob: 8ac3afcf9658f7645e5641074f292520487759d3 [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001set XX@NS <pass>
2set testid@aaf.att.com <pass>
3set testunused@aaf.att.com <pass>
4set testid_1@test.com <pass>
5set testid_2@test.com <pass>
6set bogus boguspass
7#delay 10
8set NFR 0
9as XX@NS
10ns list name com.test.TC_NS3.@[user.name]
11** Expect 200 **
12
13List Namespaces by Name[com.test.TC_NS3.@[THE_USER]]
14--------------------------------------------------------------------------------
15 *** Namespace Not Found ***
16
17# TC_NS3.10.1.POS Create Namespace with User ID
18ns create com.test.TC_NS3.@[user.name]_1 @[user.name] testid_1@test.com
19** Expect 201 **
20Created Namespace
21
22as testid_1@test.com
23# TC_NS3.20.0.NEG Too short
24ns attrib
25** Expect -1 **
26Too few args: attrib <add|upd|del> <ns> <key> [value]
27
28# TC_NS3.20.1.NEG Wrong command
29ns attrib xyz
30** Expect -1 **
31Too few args: attrib <add|upd|del> <ns> <key> [value]
32
33# TC_NS3.20.2.NEG Too Short after Command
34ns attrib add
35** Expect -1 **
36Too few args: attrib <add|upd|del> <ns> <key> [value]
37
38# TC_NS3.20.3.NEG Too Short after Namespace
39ns attrib add com.test.TC_NS3.@[user.name]
40** Expect -1 **
41Too few args: attrib <add|upd|del> <ns> <key> [value]
42
43# TC_NS3.20.4.NEG Too Short after Key
44ns attrib add com.test.TC_NS3.@[user.name] TC_NS3_swm
45** Expect -1 **
46Not added: Need more Data
47
48# TC_NS3.20.5.NEG No Permission
49ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1
50** Expect 403 **
51Failed [SVC1403]: Forbidden - testid_1@test.com may not create NS Attrib [com.test.TC_NS3.@[THE_USER]_1:TC_NS3_swm]
52
53# TC_NS3.20.6.POS Create Permission to write Attrib
54as XX@NS
55perm create com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
56** Expect 201 **
57Created Permission
58Granted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] to Role [com.test.TC_NS3.@[THE_USER]_1.admin]
59
60# TC_NS3.20.6.POS Create Permission
61perm create com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin
62** Expect 201 **
63Created Permission
64Granted Permission [com.att.aaf.attrib|:com.att.*:*|read] to Role [com.test.TC_NS3.@[THE_USER]_1.admin]
65
66# TC_NS3.20.10.POS Attribute added
67as testid_1@test.com
68ns attrib add com.test.TC_NS3.@[user.name]_1 TC_NS3_swm v1
69** Expect 201 **
70Add Attrib TC_NS3_swm=v1 to com.test.TC_NS3.@[THE_USER]_1
71
72# TC_NS3.20.30.POS List NS by Attrib
73ns list keys TC_NS3_swm
74** Expect 200 **
75
76List Namespace Names by Attribute
77--------------------------------------------------------------------------------
78 com.test.TC_NS3.@[THE_USER]_1
79
80# TC_NS3.20.40.POS List NS (shows Attrib)
81ns list name com.test.TC_NS3.@[user.name]_1
82** Expect 200 **
83
84List Namespaces by Name[com.test.TC_NS3.@[THE_USER]_1]
85--------------------------------------------------------------------------------
86com.test.TC_NS3.@[THE_USER]_1
87 Administrators
88 testid_1@test.com
89 Responsible Parties
90 @[THE_USER]@csp.att.com
91 Namespace Attributes
92 TC_NS3_swm=v1
93 Roles
94 com.test.TC_NS3.@[THE_USER]_1.admin
95 com.test.TC_NS3.@[THE_USER]_1.owner
96 Permissions
97 com.test.TC_NS3.@[THE_USER]_1.access * *
98 com.test.TC_NS3.@[THE_USER]_1.access * read
99
100# TC_NS3.20.42.POS Change Attrib
101ns attrib upd com.test.TC_NS3.@[user.name]_1 TC_NS3_swm Version1
102** Expect 200 **
103Update Attrib TC_NS3_swm=Version1 for com.test.TC_NS3.@[THE_USER]_1
104
105# TC_NS3.20.49.POS List NS (shows new Attrib)
106ns list name com.test.TC_NS3.@[user.name]_1
107** Expect 200 **
108
109List Namespaces by Name[com.test.TC_NS3.@[THE_USER]_1]
110--------------------------------------------------------------------------------
111com.test.TC_NS3.@[THE_USER]_1
112 Administrators
113 testid_1@test.com
114 Responsible Parties
115 @[THE_USER]@csp.att.com
116 Namespace Attributes
117 TC_NS3_swm=Version1
118 Roles
119 com.test.TC_NS3.@[THE_USER]_1.admin
120 com.test.TC_NS3.@[THE_USER]_1.owner
121 Permissions
122 com.test.TC_NS3.@[THE_USER]_1.access * *
123 com.test.TC_NS3.@[THE_USER]_1.access * read
124
125# TC_NS3.20.80.POS Remove write Permission
126perm ungrant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
127** Expect 200 **
128UnGranted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] from Role [com.test.TC_NS3.@[THE_USER]_1.admin]
129
130# TC_NS3.20.83.POS Remove read Permission
131perm ungrant com.att.aaf.attrib :com.att.*:* read com.test.TC_NS3.@[user.name]_1.admin
132** Expect 200 **
133UnGranted Permission [com.att.aaf.attrib|:com.att.*:*|read] from Role [com.test.TC_NS3.@[THE_USER]_1.admin]
134
135as testid_1@test.com
136# TC_NS3.50.2.NEG Too Short after Command
137ns attrib del
138** Expect -1 **
139Too few args: attrib <add|upd|del> <ns> <key> [value]
140
141# TC_NS3.50.3.NEG Too Short after Namespace
142ns attrib del com.test.TC_NS3.@[user.name]
143** Expect -1 **
144Too few args: attrib <add|upd|del> <ns> <key> [value]
145
146# TC_NS3.50.5.NEG No Permission
147ns attrib del com.test.TC_NS3.@[user.name]_1 TC_NS3_swm
148** Expect 403 **
149Failed [SVC1403]: Forbidden - testid_1@test.com may not delete NS Attrib [com.test.TC_NS3.@[THE_USER]_1:TC_NS3_swm]
150
151# TC_NS3.50.6.POS Create Permission
152as XX@NS
153perm grant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
154** Expect 201 **
155Granted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] to Role [com.test.TC_NS3.@[THE_USER]_1.admin]
156
157# TC_NS3.50.7.POS Attribute added
158as testid_1@test.com
159ns attrib del com.test.TC_NS3.@[user.name]_1 TC_NS3_swm
160** Expect 200 **
161Attrib TC_NS3_swm deleted from com.test.TC_NS3.@[THE_USER]_1
162
163# TC_NS3.50.8.POS Remove Permission
164as XX@NS
165perm ungrant com.att.aaf.attrib :com.att.*:TC_NS3_swm write com.test.TC_NS3.@[user.name]_1.admin
166** Expect 200 **
167UnGranted Permission [com.att.aaf.attrib|:com.att.*:TC_NS3_swm|write] from Role [com.test.TC_NS3.@[THE_USER]_1.admin]
168
169as testid_1@test.com
170# TC_NS3.99.2.POS Namespace Admin can delete Namespace
171force ns delete com.test.TC_NS3.@[user.name]_1
172** Expect 200,404 **
173Deleted Namespace
174
175# TC_NS3.99.3.POS Print Namespaces
176ns list name com.test.TC_NS3.@[user.name]_1
177** Expect 200,404 **
178
179List Namespaces by Name[com.test.TC_NS3.@[THE_USER]_1]
180--------------------------------------------------------------------------------
181 *** Namespace Not Found ***
182
183# TC_NS3.99.10.POS Remove Special Permissions
184as XX@NS
185force perm delete com.att.aaf.attrib :com.att.*:TC_NS3_swm write
186** Expect 200,404 **
187Deleted Permission
188
189force perm delete com.att.aaf.attrib :com.att.*:* read
190** Expect 200,404 **
191Deleted Permission
192