]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
ce187cf6947bcf286c909bcbc83c13a9302043a2
[ceph.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 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>"
21
22         Examples:
23             | hostname | labels |
24             | ceph-node-01 | mon, mgr |
25             | ceph-node-02 ||
26
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>"
37
38         Examples:
39             | hostname |
40             | ceph-node-01 |
41             | ceph-node-02 |
42
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
50             | hostname |
51             | ceph-node-01 |
52             | ceph-node-02 |
53
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
60
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>"
73
74         Examples:
75             | hostname | labels |
76             | ceph-node-01 | foo |