]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
0c62d576aa569309a200e15038265e05caf53c8b
[ceph-ci.git] /
1 Feature: Cluster expansion host addition
2
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
5     as expected
6
7     Background: Cluster expansion wizard
8         Given I am logged in
9         And I am on the "welcome" page
10         And I click on "Expand Cluster" button
11
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>"
20
21         Examples:
22             | hostname | labels |
23             | ceph-node-01 | mon, mgr |
24             | ceph-node-02 ||
25
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>"
35
36         Examples:
37             | hostname |
38             | ceph-node-01 |
39             | ceph-node-02 |
40
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
47             | hostname |
48             | ceph-node-01 |
49             | ceph-node-02 |
50
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
57
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>"
70
71         Examples:
72             | hostname | labels |
73             | ceph-node-01 | foo |