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 carbon modal
16 And "add" option "<labels>"
17 And I click on "Add Host" button
18 And I should see a row with "<hostname>"
19 And I should see row "<hostname>" have "<labels>"
23 | ceph-node-01 | mon, mgr |
26 Scenario Outline: Remove hosts
27 Given I am on the "Add Hosts" section
28 And I should see a row with "<hostname>"
29 When I select a row "<hostname>"
30 And I click on "Remove" button from the table actions
31 Then I should see the carbon modal
32 And I check the tick box in carbon modal
33 And I click on "Remove Host" button
34 And I should not see a row with "<hostname>"
41 Scenario: Add hosts using pattern 'ceph-node-[01-02]'
42 Given I am on the "Add Hosts" section
43 When I click on "Add" button
44 And enter "hostname" "ceph-node-[01-02]" in the carbon modal
45 And I click on "Add Host" button
46 And I should see rows with following entries
51 Scenario: Add existing host and verify it failed
52 Given I am on the "Add Hosts" section
53 And I should see a row with "ceph-node-00"
54 When I click on "Add" button
55 And enter "hostname" "ceph-node-00" in the carbon modal
56 Then I should see an error in "hostname" field
58 Scenario Outline: Add and remove labels on host
59 Given I am on the "Add Hosts" section
60 When I select a row "<hostname>"
61 And I click on "Edit" button from the table actions
62 And "add" option "<labels>"
63 And I click on "Edit Host" button
64 Then I should see row "<hostname>" have "<labels>"
65 When I select a row "<hostname>"
66 And I click on "Edit" button from the table actions
67 And "remove" option "<labels>"
68 And I click on "Edit Host" button
69 Then I should see row "<hostname>" does not have "<labels>"
73 | ceph-node-01 | foo |