Debian Codegraph @

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

raw
1 Feature: Netgroup members manipulation
2 Manage members of a netgroup across Users, User groups, Hosts, Host groups and Netgroups tabs
3
4 @seed
5 Scenario: Seed data
6 Given netgroup "mynetgroup" exists
7
8 @test
9 Scenario: Add a User member
10 Given I am logged in as admin
11 And I am on "netgroups/mynetgroup/member_user" page
12 And I should be on "netgroups/mynetgroup/member_user" page
13
14 When I click on the "member-of-button-add" button
15 Then I should see "member-of-add-modal" modal
16
17 When I click on "item-admin" dual list item
18 Then I should see "item-admin" dual list item selected
19
20 When I click on the "dual-list-add-selected" button
21 Then I should see "member-of-add-modal" modal
22
23 When I click on the "modal-button-add" button
24 Then I should not see "member-of-add-modal" modal
25 And I should see "add-member-success" alert
26 When I search for "admin" in the members table
27 Then I should see "admin" entry in the data table
28
29 @cleanup
30 Scenario: Cleanup: delete netgroup
31 Given I delete netgroup "mynetgroup"
32
33 @seed
34 Scenario: Seed data
35 Given netgroup "mynetgroup" exists
36 And "admin" exists in table "mynetgroup/member_user"
37
38 @test
39 Scenario: Remove User member
40 Given I am logged in as admin
41 When I am on "netgroups/mynetgroup/member_user" page
42 Then I should be on "netgroups/mynetgroup/member_user" page
43
44 When I select entry "admin" in the members table
45 Then I should see "admin" entry selected in the data table
46 When I click on the "member-of-button-delete" button
47 Then I should see "member-of-delete-modal" modal
48
49 When I click on the "modal-button-delete" button
50 Then I should not see "member-of-delete-modal" modal
51 And I should see "remove-users-success" alert
52 When I search for "admin" in the members table
53 Then I should not see "admin" entry in the data table
54
55 @cleanup
56 Scenario: Cleanup: delete netgroup
57 Given I delete netgroup "mynetgroup"
58
59 @seed
60 Scenario: Seed data
61 Given netgroup "mynetgroup" exists
62
63 @test
64 Scenario: Add a User group member
65 Given I am logged in as admin
66 When I am on "netgroups/mynetgroup/member_group" page
67 Then I should be on "netgroups/mynetgroup/member_group" page
68
69 When I click on the "member-of-button-add" button
70 Then I should see "member-of-add-modal" modal
71
72 When I click on "item-editors" dual list item
73 Then I should see "item-editors" dual list item selected
74
75 When I click on the "dual-list-add-selected" button
76 Then I should see "member-of-add-modal" modal
77
78 When I click on the "modal-button-add" button
79 Then I should not see "member-of-add-modal" modal
80 And I should see "add-member-success" alert
81 When I search for "editors" in the members table
82 Then I should see "editors" entry in the data table
83
84 @cleanup
85 Scenario: Cleanup: delete netgroup
86 Given I delete netgroup "mynetgroup"
87
88 @seed
89 Scenario: Seed data
90 Given netgroup "mynetgroup" exists
91 And "editors" exists in table "mynetgroup/member_group"
92
93 @test
94 Scenario: Remove User group member
95 Given I am logged in as admin
96 When I am on "netgroups/mynetgroup/member_group" page
97 Then I should be on "netgroups/mynetgroup/member_group" page
98
99 When I select entry "editors" in the members table
100 Then I should see "editors" entry selected in the data table
101 When I click on the "member-of-button-delete" button
102 Then I should see "member-of-delete-modal" modal
103
104 When I click on the "modal-button-delete" button
105 Then I should not see "member-of-delete-modal" modal
106 And I should see "remove-usersgroups-success" alert
107 When I search for "editors" in the members table
108 Then I should not see "editors" entry in the data table
109
110 @cleanup
111 Scenario: Cleanup: delete netgroup
112 Given I delete netgroup "mynetgroup"
113
114 @seed
115 Scenario: Seed data
116 Given netgroup "mynetgroup" exists
117
118 @test
119 Scenario: Add a Host member
120 Given I am logged in as admin
121 When I am on "netgroups/mynetgroup/member_host" page
122 Then I should be on "netgroups/mynetgroup/member_host" page
123
124 When I click on the "member-of-button-add" button
125 Then I should see "member-of-add-modal" modal
126
127 When I click on "item-webui.ipa.test" dual list item
128 Then I should see "item-webui.ipa.test" dual list item selected
129
130 When I click on the "dual-list-add-selected" button
131 Then I should see "member-of-add-modal" modal
132
133 When I click on the "modal-button-add" button
134 Then I should not see "member-of-add-modal" modal
135 And I should see "add-member-success" alert
136 When I search for "webui.ipa.test" in the members table
137 Then I should see "webui.ipa.test" entry in the data table
138
139 @cleanup
140 Scenario: Cleanup: delete netgroup
141 Given I delete netgroup "mynetgroup"
142
143 @seed
144 Scenario: Seed data
145 Given netgroup "mynetgroup" exists
146 And "webui.ipa.test" exists in table "mynetgroup/member_host"
147
148 @test
149 Scenario: Remove Host member
150 Given I am logged in as admin
151 And I am on "netgroups/mynetgroup/member_host" page
152 And I should be on "netgroups/mynetgroup/member_host" page
153
154 When I search for "webui.ipa.test" in the members table
155 Then I should see "webui.ipa.test" entry in the data table
156
157 When I select entry "webui.ipa.test" in the members table
158 Then I should see "webui.ipa.test" entry selected in the data table
159 When I click on the "member-of-button-delete" button
160 Then I should see "member-of-delete-modal" modal
161
162 When I click on the "modal-button-delete" button
163 Then I should not see "member-of-delete-modal" modal
164 And I should see "remove-host-success" alert
165 When I search for "webui.ipa.test" in the members table
166 Then I should not see "webui.ipa.test" entry in the data table
167
168 @cleanup
169 Scenario: Cleanup: delete netgroup
170 Given I delete netgroup "mynetgroup"
171
172 @seed
173 Scenario: Seed data
174 Given netgroup "mynetgroup" exists
175
176 @test
177 Scenario: Add a Host group member
178 Given I am logged in as admin
179 And I am on "netgroups/mynetgroup/member_hostgroup" page
180 And I should be on "netgroups/mynetgroup/member_hostgroup" page
181
182 When I click on the "member-of-button-add" button
183 Then I should see "member-of-add-modal" modal
184
185 When I click on "item-ipaservers" dual list item
186 Then I should see "item-ipaservers" dual list item selected
187
188 When I click on the "dual-list-add-selected" button
189 Then I should see "member-of-add-modal" modal
190
191 When I click on the "modal-button-add" button
192 Then I should not see "member-of-add-modal" modal
193 And I should see "add-member-success" alert
194 When I search for "ipaservers" in the members table
195 Then I should see "ipaservers" entry in the data table
196
197 @cleanup
198 Scenario: Cleanup: delete netgroup
199 Given I delete netgroup "mynetgroup"
200
201 @seed
202 Scenario: Seed data
203 Given netgroup "mynetgroup" exists
204 And "ipaservers" exists in table "mynetgroup/member_hostgroup"
205
206 @test
207 Scenario: Remove Host group member
208 Given I am logged in as admin
209 And I am on "netgroups/mynetgroup/member_hostgroup" page
210 And I should be on "netgroups/mynetgroup/member_hostgroup" page
211
212 When I select entry "ipaservers" in the members table
213 Then I should see "ipaservers" entry selected in the data table
214 When I click on the "member-of-button-delete" button
215 Then I should see "member-of-delete-modal" modal
216
217 When I click on the "modal-button-delete" button
218 Then I should not see "member-of-delete-modal" modal
219 And I should see "remove-hostgroups-success" alert
220 When I search for "ipaservers" in the members table
221 Then I should not see "ipaservers" entry in the data table
222
223 @cleanup
224 Scenario: Cleanup: delete netgroup
225 Given I delete netgroup "mynetgroup"
226
227 @seed
228 Scenario: Seed data
229 Given netgroup "mynetgroup" exists
230 And netgroup "mynetgroup2" exists
231
232 @test
233 Scenario: Add a Netgroup member
234 Given I am logged in as admin
235 And I am on "netgroups/mynetgroup/member_netgroup" page
236 And I should be on "netgroups/mynetgroup/member_netgroup" page
237
238 When I click on the "member-of-button-add" button
239 Then I should see "member-of-add-modal" modal
240
241 When I click on "item-mynetgroup2" dual list item
242 Then I should see "item-mynetgroup2" dual list item selected
243
244 When I click on the "dual-list-add-selected" button
245 Then I should see "member-of-add-modal" modal
246
247 When I click on the "modal-button-add" button
248 Then I should not see "member-of-add-modal" modal
249 And I should see "add-member-success" alert
250 When I search for "mynetgroup2" in the members table
251 Then I should see "mynetgroup2" entry in the data table
252
253 @cleanup
254 Scenario: Cleanup: delete netgroup
255 Given I delete netgroup "mynetgroup"
256 And I delete netgroup "mynetgroup2"
257
258 @seed
259 Scenario: Seed data
260 Given netgroup "mynetgroup" exists
261 And netgroup "mynetgroup2" exists
262 And "mynetgroup2" exists in table "mynetgroup/member_netgroup"
263
264 @test
265 Scenario: Remove Netgroup member
266 Given I am logged in as admin
267 When I am on "netgroups/mynetgroup/member_netgroup" page
268 Then I should be on "netgroups/mynetgroup/member_netgroup" page
269
270 When I select entry "mynetgroup2" in the members table
271 Then I should see "mynetgroup2" entry selected in the data table
272 When I click on the "member-of-button-delete" button
273 Then I should see "member-of-delete-modal" modal
274
275 When I click on the "modal-button-delete" button
276 Then I should not see "member-of-delete-modal" modal
277 And I should see "remove-netgroups-success" alert
278 When I search for "mynetgroup2" in the members table
279 Then I should not see "mynetgroup2" entry in the data table
280
281 @cleanup
282 Scenario: Cleanup: delete netgroup
283 Given I delete netgroup "mynetgroup"
284 And I delete netgroup "mynetgroup2"