Skip to content

Commit 6b50086

Browse files
committed
Dev: behave: Add new case for adding diskless sbd via stage
1 parent 661c5d5 commit 6b50086

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/features/bootstrap_sbd_normal.feature

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,21 @@ Feature: crmsh bootstrap sbd management
128128
And Service "sbd" is "started" on "hanode2"
129129
And Resource "stonith-sbd" type "fence_sbd" is "Started"
130130

131+
@clean
132+
Scenario: Configure diskless sbd on running cluster via stage
133+
Given Cluster service is "stopped" on "hanode1"
134+
Given Cluster service is "stopped" on "hanode2"
135+
When Run "crm cluster init -y" on "hanode1"
136+
Then Cluster service is "started" on "hanode1"
137+
When Run "crm cluster join -c hanode1 -y" on "hanode2"
138+
Then Cluster service is "started" on "hanode2"
139+
And Online nodes are "hanode1 hanode2"
140+
When Run "crm cluster init sbd -S -y" on "hanode1"
141+
Then Expected "Diskless SBD requires cluster with three or more nodes." in stderr
142+
Then Service "sbd" is "started" on "hanode1"
143+
And Service "sbd" is "started" on "hanode2"
144+
And Resource "stonith:fence_sbd" not configured
145+
131146
@clean
132147
Scenario: Configure sbd on running cluster via stage with ra running(bsc#1181906)
133148
Given Cluster service is "stopped" on "hanode1"

0 commit comments

Comments
 (0)