blob: 67232e2afdc3b2403aa13cd25a0929559b7fcb23 [file] [log] [blame]
sg481n43854a92017-08-03 17:27:34 -04001set testid@aaf.att.com <pass>
2set testunused@aaf.att.com <pass>
3set XX@NS <pass>
4set bogus boguspass
5#delay 10
6set NFR 0
7as testid@aaf.att.com
8# TC_Realm1.10.0.POS Validate no NS
9ns list name com.test.TC_Realm1.@[user.name]
10** Expect 200,404 **
11
12List Namespaces by Name[com.test.TC_Realm1.@[THE_USER]]
13--------------------------------------------------------------------------------
14 *** Namespace Not Found ***
15
16# TC_Realm1.10.1.POS Create Namespace to add IDs
17ns create com.test.TC_Realm1.@[user.name] @[user.name] testid@aaf.att.com
18** Expect 201 **
19Created Namespace
20
21as XX@NS
22# TC_Realm1.10.10.POS Grant ability to change delegates
23force perm create com.att.aaf.delg com.att create com.test.TC_Realm1.@[user.name].change_delg
24** Expect 201 **
25Created Role [com.test.TC_Realm1.@[THE_USER].change_delg]
26Created Permission
27Granted Permission [com.att.aaf.delg|com.att|create] to Role [com.test.TC_Realm1.@[THE_USER].change_delg]
28
29# TC_Realm1.10.11.POS Create user role to change delegates
30user role add testid@aaf.att.com com.test.TC_Realm1.@[user.name].change_delg
31** Expect 201 **
32Added Role [com.test.TC_Realm1.@[THE_USER].change_delg] to User [testid@aaf.att.com]
33
34as testid@aaf.att.com
35# TC_Realm1.20.1.NEG Fail to create - default domain wrong
36ns create com.test.TC_Realm1.@[user.name].project1 testunused
37** Expect 403 **
38Failed [SVC3403]: Forbidden - testunused@csp.att.com does not have permission to assume test status at AT&T
39
40# TC_Realm1.20.2.POS Create - default domain appended
41ns create com.test.TC_Realm1.@[user.name].project1 @[user.name] @[user.name]
42** Expect 201 **
43Created Namespace
44
45# TC_Realm1.20.3.NEG Fail to create - default domain wrong
46ns admin add com.test.TC_Realm1.@[user.name].project1 testunused
47** Expect 403 **
48Failed [SVC1403]: Forbidden - AT&T reports that testunused@csp.att.com is a faulty ID
49
50# TC_Realm1.20.4.POS Create - full domain given
51ns admin add com.test.TC_Realm1.@[user.name].project1 testid@aaf.att.com
52** Expect 201 **
53Admin testid@aaf.att.com added to com.test.TC_Realm1.@[THE_USER].project1
54
55# TC_Realm1.20.5.POS Delete - default domain appended
56ns admin del com.test.TC_Realm1.@[user.name].project1 @[user.name]
57** Expect 200 **
58Admin @[THE_USER]@csp.att.com deleted from com.test.TC_Realm1.@[THE_USER].project1
59
60# TC_Realm1.20.6.POS Add admin - default domain appended
61ns admin add com.test.TC_Realm1.@[user.name].project1 @[user.name]
62** Expect 201 **
63Admin @[THE_USER]@csp.att.com added to com.test.TC_Realm1.@[THE_USER].project1
64
65# TC_Realm1.30.1.POS Create role to add to users
66role create com.test.TC_Realm1.@[user.name].role1
67** Expect 201 **
68Created Role
69
70# TC_Realm1.30.2.NEG Add user, but default domain wrong
71role user add com.test.TC_Realm1.@[user.name].role1 testunused
72** Expect 403 **
73Failed [SVC1403]: Forbidden - AT&T reports that testunused@csp.att.com is a faulty ID
74
75# TC_Realm1.30.3.POS Add user, with default domain appended
76role user add com.test.TC_Realm1.@[user.name].role1 @[user.name]
77** Expect 201 **
78Added User [@[THE_USER]@csp.att.com] to Role [com.test.TC_Realm1.@[THE_USER].role1]
79
80# TC_Realm1.30.10.POS Role list, with default domain added
81role list user testunused
82** Expect 200 **
83
84List Roles for User [testunused@csp.att.com]
85--------------------------------------------------------------------------------
86ROLE Name
87 PERM Type Instance Action
88--------------------------------------------------------------------------------
89
90# TC_Realm1.30.80.POS Delete user, with default domain appended
91role user del com.test.TC_Realm1.@[user.name].role1 @[user.name]
92** Expect 200 **
93Removed User [@[THE_USER]@csp.att.com] from Role [com.test.TC_Realm1.@[THE_USER].role1]
94
95# TC_Realm1.40.1.POS Create role to add to users
96role create com.test.TC_Realm1.@[user.name].role2
97** Expect 201 **
98Created Role
99
100# TC_Realm1.40.2.NEG Add user, but default domain wrong
101user role add testunused com.test.TC_Realm1.@[user.name].role2
102** Expect 403 **
103Failed [SVC1403]: Forbidden - AT&T reports that testunused@csp.att.com is a faulty ID
104
105# TC_Realm1.40.3.POS Add user, with default domain appended
106user role add @[user.name] com.test.TC_Realm1.@[user.name].role2
107** Expect 201 **
108Added Role [com.test.TC_Realm1.@[THE_USER].role2] to User [@[THE_USER]@csp.att.com]
109
110# TC_Realm1.40.10.NEG Add delegate, but default domain wrong
111user delegate add testunused testid 2099-01-01
112** Expect 404 **
113Failed [SVC5404]: Not Found - [testunused@csp.att.com] is not a user in the company database.
114
115# TC_Realm1.40.11.POS Add delegate, with default domain appended
116force user delegate add @[user.name] @[user.name] 2099-01-01
117** Expect 201 **
118Delegate Added
119
120# TC_Realm1.40.12.POS Update delegate, with default domain appended
121user delegate upd @[user.name] @[user.name] 2099-01-01
122** Expect 200 **
123Delegate Updated
124
125as XX@NS
126# TC_Realm1.40.20.POS List delegate, with default domain appended
127user list delegates user @[user.name]
128** Expect 200 **
129
130List Delegates by user[@[THE_USER]@csp.att.com]
131--------------------------------------------------------------------------------
132 User Delegate Expires
133--------------------------------------------------------------------------------
134 @[THE_USER]@csp.att.com @[THE_USER]@csp.att.com XXXX-XX-XX
135
136# TC_Realm1.40.21.POS List delegate, with default domain appended
137user list delegates delegate @[user.name]
138** Expect 200 **
139
140List Delegates by delegate[@[THE_USER]@csp.att.com]
141--------------------------------------------------------------------------------
142 User Delegate Expires
143--------------------------------------------------------------------------------
144 @[THE_USER]@csp.att.com @[THE_USER]@csp.att.com XXXX-XX-XX
145
146as testid@aaf.att.com
147# TC_Realm1.40.80.POS Delete user, with default domain appended
148user role del @[user.name] com.test.TC_Realm1.@[user.name].role2
149** Expect 200 **
150Removed Role [com.test.TC_Realm1.@[THE_USER].role2] from User [@[THE_USER]@csp.att.com]
151
152# TC_Realm1.40.81.POS Delete delegate, with default domain appended
153user delegate del @[user.name]
154** Expect 200 **
155Delegate Deleted
156
157as testid@aaf.att.com
158# TC_Realm1.99.1.POS Delete delgates
159user delegate del @[user.name]
160** Expect 200,404 **
161Failed [SVC7404]: Not Found - Cannot delete non-existent Delegate
162
163# TC_Realm1.99.2.POS Delete user roles
164role user del com.test.TC_Realm1.@[user.name].role1 @[user.name]
165** Expect 200,404 **
166Failed [SVC6404]: Not Found - User [ @[THE_USER]@csp.att.com ] is not Assigned to the Role [ com.test.TC_Realm1.@[THE_USER].role1 ]
167
168user role del @[user.name] com.test.TC_Realm1.@[user.name].role2
169** Expect 200,404 **
170Failed [SVC6404]: Not Found - User [ @[THE_USER]@csp.att.com ] is not Assigned to the Role [ com.test.TC_Realm1.@[THE_USER].role2 ]
171
172# TC_Realm1.99.3.POS Delete roles
173role delete com.test.TC_Realm1.@[user.name].role1
174** Expect 200,404 **
175Deleted Role
176
177role delete com.test.TC_Realm1.@[user.name].role2
178** Expect 200,404 **
179Deleted Role
180
181as XX@NS
182# TC_Realm1.99.10.POS UnGrant ability to change delegates
183perm ungrant com.att.aaf.delg com.att change com.test.TC_Realm1.@[user.name].change_delg
184** Expect 200,404 **
185Failed [SVC4404]: Not Found - Permission [com.att.aaf.delg|com.att|change] not associated with any Role
186
187as testid@aaf.att.com
188# TC_Realm1.99.11.POS Delete role to change delegates
189set force true
190set force=true role delete com.test.TC_Realm1.@[user.name].change_delg
191** Expect 200,404 **
192Deleted Role
193
194# TC_Realm1.99.98.POS Delete Namespaces
195ns delete com.test.TC_Realm1.@[user.name]
196** Expect 200,404 **
197Deleted Namespace
198
199ns delete com.test.TC_Realm1.@[user.name].project1
200** Expect 200,404 **
201Deleted Namespace
202
203# TC_Realm1.99.99.POS Verify Cleaned NS
204ns list name com.test.TC_Realm1.@[user.name]
205** Expect 200,404 **
206
207List Namespaces by Name[com.test.TC_Realm1.@[THE_USER]]
208--------------------------------------------------------------------------------
209 *** Namespace Not Found ***
210