1 Feature: Cluster expansion host addition
3 Add some hosts and perform some host related actions like editing the labels
4 and removing the hosts from the cluster and verify all of the actions are performed
7 Background: Cluster expansion wizard
9 And I am on the "welcome" page
10 And I click on "Expand Cluster" button
12 Scenario Outline: Add hosts
13 Given I am on the "Add Hosts" section
14 When I click on "Add" button
15 And enter "hostname" "<hostname>" in the modal
16 And select options "<labels>"
17 And I click on "Add Host" button
18 Then I should not see the modal
19 And I should see a row with "<hostname>"
20 And I should see row "<hostname>" have "<labels>"
24 | ceph-node-01 | mon, mgr |
27 Scenario Outline: Remove hosts
28 Given I am on the "Add Hosts" section
29 And I should see a row with "<hostname>"
30 When I select a row "<hostname>"
31 And I click on "Remove" button from the table actions
32 Then I should see the modal
33 And I check the tick box in modal
34 And I click on "Remove Host" button
35 Then I should not see the modal
36 And I should not see a row with "<hostname>"
43 Scenario: Add hosts using pattern 'ceph-node-[01-02]'
44 Given I am on the "Add Hosts" section
45 When I click on "Add" button
46 And enter "hostname" "ceph-node-[01-02]" in the modal
47 And I click on "Add Host" button
48 Then I should not see the modal
49 And I should see rows with following entries
54 Scenario: Add existing host and verify it failed
55 Given I am on the "Add Hosts" section
56 And I should see a row with "ceph-node-00"
57 When I click on "Add" button
58 And enter "hostname" "ceph-node-00" in the modal
59 Then I should see an error in "hostname" field
61 Scenario Outline: Add and remove labels on host
62 Given I am on the "Add Hosts" section
63 When I select a row "<hostname>"
64 And I click on "Edit" button from the table actions
65 And "add" option "<labels>"
66 And I click on "Edit Host" button
67 Then I should see row "<hostname>" have "<labels>"
68 When I select a row "<hostname>"
69 And I click on "Edit" button from the table actions
70 And "remove" option "<labels>"
71 And I click on "Edit Host" button
72 Then I should see row "<hostname>" does not have "<labels>"
76 | ceph-node-01 | foo |