Debian Codegraph @

install/freeipa-webui/cypress/e2e/netgroup/netgroup_settings.feature

raw
1 Feature: Netgroup settings manipulation
2 Modify a netgroup
3
4 @seed
5 Scenario: Create netgroup
6 Given netgroup "netgroup1" exists
7
8 @test
9 Scenario: Set Description
10 Given I am logged in as admin
11 And I am on "netgroups/netgroup1" page
12
13 When I type in the "netgroups-tab-settings-textbox-description" textbox text "test"
14 Then I should see "test" in the "netgroups-tab-settings-textbox-description" textbox
15 And I should see the "netgroups-tab-settings-button-save" button is enabled
16
17 When I click on the "netgroups-tab-settings-button-save" button
18 Then I should see "save-success" alert
19
20 @cleanup
21 Scenario: Cleanup netgroup
22 Given I delete netgroup "netgroup1"
23
24 @seed
25 Scenario: Create netgroup
26 Given netgroup "netgroup1" exists
27
28 @test
29 Scenario: Set NIS domain name
30 Given I am logged in as admin
31 And I am on "netgroups/netgroup1" page
32
33 When I type in the "netgroups-tab-settings-textbox-nisdomainname" textbox text "newNIS"
34 Then I should see "newNIS" in the "netgroups-tab-settings-textbox-nisdomainname" textbox
35 And I should see the "netgroups-tab-settings-button-save" button is enabled
36
37 When I click on the "netgroups-tab-settings-button-save" button
38 Then I should see "save-success" alert
39 And I should see "newNIS" in the "netgroups-tab-settings-textbox-nisdomainname" textbox
40
41 @cleanup
42 Scenario: Cleanup netgroup
43 Given I delete netgroup "netgroup1"
44
45 @seed
46 Scenario: Create netgroup
47 Given netgroup "netgroup1" exists
48
49 @test
50 Scenario: Add user to User category
51 Given I am logged in as admin
52 And I am on "netgroups/netgroup1" page
53
54 When I click on the "netgroups-tab-settings-tab-users" tab
55 Then I should see "netgroups-tab-settings-tab-users" tab
56
57 When I click on the "settings-button-add-user" button
58 Then I should see "dual-list-modal" modal
59
60 When I click on search link in dual list
61 Then I should see "item-admin" dual list item on the left
62
63 When I click on "item-admin" dual list item
64 Then I should see "item-admin" dual list item selected
65
66 When I click on the "dual-list-add-selected" button
67 Then I should see "item-admin" dual list item on the right
68 And I should see "item-admin" dual list item not selected
69
70 When I click on the "modal-button-add" button
71 Then I should not see "dual-list-modal" modal
72 And I should see "add-member-success" alert
73 And I should see "admin" entry in the data table
74
75 @cleanup
76 Scenario: Cleanup user "admin"
77 Given I delete element "user" named "admin" from netgroup "netgroup1"
78
79 @seed
80 Scenario: Add user "admin"
81 Given I have element "user" named "admin" in netgroup "netgroup1"
82
83 @test
84 Scenario: Remove user from User category
85 Given I am logged in as admin
86 And I am on "netgroups/netgroup1" page
87
88 When I click on the "netgroups-tab-settings-tab-users" tab
89 Then I should see "netgroups-tab-settings-tab-users" tab
90 And I should see "admin" entry in the data table
91
92 When I select entry "admin" in the settings data table "user"
93 Then I should see "admin" entry selected in the data table
94
95 When I click on the "settings-button-delete-user" button
96 Then I should see "remove-netgroup-members-modal" modal
97
98 When I click on the "modal-button-delete" button
99 Then I should not see "remove-netgroup-members-modal" modal
100 And I should see "remove-netgroups-success" alert
101 And I should not see "admin" entry in the data table
102
103 @test
104 Scenario: Add group to User category
105 Given I am logged in as admin
106 And I am on "netgroups/netgroup1" page
107
108 When I click on the "netgroups-tab-settings-tab-groups" tab
109 Then I should see "netgroups-tab-settings-tab-groups" tab
110
111 When I click on the "settings-button-add-group" button
112 Then I should see "dual-list-modal" modal
113
114 When I click on search link in dual list
115 Then I should see "item-admins" dual list item on the left
116
117 When I click on "item-admins" dual list item
118 Then I should see "item-admins" dual list item selected
119
120 When I click on the "dual-list-add-selected" button
121 Then I should see "item-admins" dual list item on the right
122 And I should see "item-admins" dual list item not selected
123
124 When I click on the "modal-button-add" button
125 Then I should not see "dual-list-modal" modal
126 And I should see "add-member-success" alert
127 And I should see "admins" entry in the data table
128
129 @cleanup
130 Scenario: Cleanup group "admins"
131 Given I delete element "group" named "admins" from netgroup "netgroup1"
132
133 @seed
134 Scenario: Add group "admins"
135 Given I have element "group" named "admins" in netgroup "netgroup1"
136
137 @test
138 Scenario: Remove group from User category
139 Given I am logged in as admin
140 And I am on "netgroups/netgroup1" page
141
142 When I click on the "netgroups-tab-settings-tab-groups" tab
143 Then I should see "netgroups-tab-settings-tab-groups" tab
144 And I should see "admins" entry in the data table
145
146 When I select entry "admins" in the settings data table "group"
147 Then I should see "admins" entry selected in the data table
148 When I click on the "settings-button-delete-group" button
149 Then I should see "remove-netgroup-members-modal" modal
150
151 When I click on the "modal-button-delete" button
152 Then I should not see "remove-netgroup-members-modal" modal
153 And I should see "remove-netgroups-success" alert
154 And I should not see "admins" entry in the data table
155
156 @seed
157 Scenario: Add a host
158 Given host "my-server.ipa.test" exists
159
160 @test
161 Scenario: Add host to Host category
162 Given I am logged in as admin
163 And I am on "netgroups/netgroup1" page
164
165 When I click on the "netgroups-tab-settings-tab-hosts" tab
166 Then I should see "netgroups-tab-settings-tab-hosts" tab
167
168 When I click on the "settings-button-add-host" button
169 Then I should see "dual-list-modal" modal
170
171 When I click on search link in dual list
172 Then I should see "item-my-server.ipa.test" dual list item on the left
173
174 When I click on "item-my-server.ipa.test" dual list item
175 Then I should see "item-my-server.ipa.test" dual list item selected
176
177 When I click on the "dual-list-add-selected" button
178 Then I should see "item-my-server.ipa.test" dual list item on the right
179 And I should see "item-my-server.ipa.test" dual list item not selected
180
181 When I click on the "modal-button-add" button
182 Then I should not see "dual-list-modal" modal
183 And I should see "add-member-success" alert
184 And I should see "my-server.ipa.test" entry in the data table
185
186 @cleanup
187 Scenario: Cleanup host from Host category
188 Given I delete element "host" named "my-server" from netgroup "netgroup1"
189
190 @seed
191 Scenario: Add host to Host category
192 Given I am logged in as admin
193 And I am on "netgroups/netgroup1" page
194
195 When I click on the "netgroups-tab-settings-tab-hosts" tab
196 Then I should see "netgroups-tab-settings-tab-hosts" tab
197
198 When I click on the "settings-button-add-host" button
199 Then I should see "dual-list-modal" modal
200
201 When I click on search link in dual list
202 Then I should see "item-my-server.ipa.test" dual list item on the left
203
204 When I click on "item-my-server.ipa.test" dual list item
205 Then I should see "item-my-server.ipa.test" dual list item selected
206
207 When I click on the "dual-list-add-selected" button
208 Then I should see "item-my-server.ipa.test" dual list item on the right
209 And I should see "item-my-server.ipa.test" dual list item not selected
210
211 When I click on the "modal-button-add" button
212 Then I should not see "dual-list-modal" modal
213 And I should see "add-member-success" alert
214 And I should see "my-server.ipa.test" entry in the data table
215
216 @test
217 Scenario: Remove host from Host category
218 Given I am logged in as admin
219 And I am on "netgroups/netgroup1" page
220
221 When I click on the "netgroups-tab-settings-tab-hosts" tab
222 Then I should see "netgroups-tab-settings-tab-hosts" tab
223
224 Then I should see "my-server.ipa.test" entry in the data table
225 When I select entry "my-server.ipa.test" in the settings data table "host"
226 Then I should see "my-server.ipa.test" entry selected in the data table
227 When I click on the "settings-button-delete-host" button
228 Then I should see "remove-netgroup-members-modal" modal
229
230 When I click on the "modal-button-delete" button
231 Then I should not see "remove-netgroup-members-modal" modal
232 And I should see "remove-netgroups-success" alert
233 And I should not see "my-server.ipa.test" entry in the data table
234
235 @cleanup
236 Scenario: Cleanup host
237 Given I delete host "my-server.ipa.test"
238
239 @test
240 Scenario: Add hostgroup to Host category
241 Given I am logged in as admin
242 And I am on "netgroups/netgroup1" page
243
244 When I click on the "netgroups-tab-settings-tab-hostgroups" tab
245 Then I should see "netgroups-tab-settings-tab-hostgroups" tab
246
247 When I click on the "settings-button-add-hostgroup" button
248 Then I should see "dual-list-modal" modal
249
250 When I click on search link in dual list
251 Then I should see "item-ipaservers" dual list item on the left
252
253 When I click on "item-ipaservers" dual list item
254 Then I should see "item-ipaservers" dual list item selected
255
256 When I click on the "dual-list-add-selected" button
257 Then I should see "item-ipaservers" dual list item on the right
258 And I should see "item-ipaservers" dual list item not selected
259
260 When I click on the "modal-button-add" button
261 Then I should not see "dual-list-modal" modal
262 And I should see "add-member-success" alert
263 And I should see "ipaservers" entry in the data table
264
265 @cleanup
266 Scenario: Cleanup hostgroup "ipaservers"
267 Given I delete element "hostgroup" named "ipaservers" from netgroup "netgroup1"
268
269 @seed
270 Scenario: Add hostgroup "ipaservers"
271 Given I have element "hostgroup" named "ipaservers" in netgroup "netgroup1"
272
273 @test
274 Scenario: Remove hostgroup from Host category
275 Given I am logged in as admin
276 And I am on "netgroups/netgroup1" page
277
278 When I click on the "netgroups-tab-settings-tab-hostgroups" tab
279 Then I should see "netgroups-tab-settings-tab-hostgroups" tab
280
281 Then I should see "ipaservers" entry in the data table
282 When I select entry "ipaservers" in the settings data table "hostgroup"
283 Then I should see "ipaservers" entry selected in the data table
284 When I click on the "settings-button-delete-hostgroup" button
285 Then I should see "remove-netgroup-members-modal" modal
286
287 When I click on the "modal-button-delete" button
288 Then I should not see "remove-netgroup-members-modal" modal
289 And I should see "remove-netgroups-success" alert
290 And I should not see "ipaservers" entry in the data table
291
292 @test
293 Scenario: Add external host to Host category
294 Given I am logged in as admin
295 And I am on "netgroups/netgroup1" page
296
297 When I click on the "netgroups-tab-settings-tab-externalhosts" tab
298 Then I should see "netgroups-tab-settings-tab-externalhosts" tab
299
300 When I click on the "settings-button-add-externalHost" button
301 Then I should see "add-external-host-modal" modal
302
303 When I type in the "modal-textbox-external-host-name" textbox text "test.test.test"
304 Then I should see "test.test.test" in the "modal-textbox-external-host-name" textbox
305 When I click on the "modal-button-add" button
306 Then I should not see "add-external-host-modal" modal
307 And I should see "add-member-success" alert
308 And I should see "test.test.test" entry in the data table
309
310 @cleanup
311 Scenario: Cleanup external host "test.test.test"
312 Given I delete external host "test.test.test" from netgroup "netgroup1"
313
314 @seed
315 Scenario: Add external host "test.test.test"
316 Given I have external host "test.test.test" in netgroup "netgroup1"
317
318 @test
319 Scenario: Remove external host from Host category
320 Given I am logged in as admin
321 And I am on "netgroups/netgroup1" page
322
323 When I click on the "netgroups-tab-settings-tab-externalhosts" tab
324 Then I should see "netgroups-tab-settings-tab-externalhosts" tab
325
326 Then I should see "test.test.test" entry in the data table
327 When I select entry "test.test.test" in the settings data table "externalHost"
328 Then I should see "test.test.test" entry selected in the data table
329 When I click on the "settings-button-delete-externalHost" button
330 Then I should see "remove-netgroup-members-modal" modal
331
332 When I click on the "modal-button-delete" button
333 Then I should not see "remove-netgroup-members-modal" modal
334 And I should see "remove-netgroups-success" alert
335 And I should not see "test.test.test" entry in the data table
336
337 @test
338 Scenario: Toggle user category allow anyone
339 Given I am logged in as admin
340 And I am on "netgroups/netgroup1" page
341
342 When I click on the "netgroups-tab-settings-checkbox-usercategory" checkbox
343 Then I should not see "netgroups-tab-settings-tab-users" tab
344 And I should not see "netgroups-tab-settings-tab-groups" tab
345
346 @test
347 Scenario: Toggle host category allow any host
348 Given I am logged in as admin
349 And I am on "netgroups/netgroup1" page
350
351 When I click on the "netgroups-tab-settings-checkbox-hostcategory" checkbox
352 Then I should not see "netgroups-tab-settings-tab-hosts" tab
353 And I should not see "netgroups-tab-settings-tab-hostgroups" tab
354
355 @cleanup
356 Scenario: Cleanup netgroup
357 Given I delete netgroup "netgroup1"