Skip to content

Commit eb66873

Browse files
committed
Dev: behave: Adjust functional test for previous commits
1 parent 24fab8b commit eb66873

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

test/features/bootstrap_sbd_normal.feature

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,12 @@ Feature: crmsh bootstrap sbd management
8181
Given Cluster service is "stopped" on "hanode1"
8282
Given Cluster service is "stopped" on "hanode2"
8383
When Run "crm cluster init ssh -y" on "hanode1"
84-
And Run "crm cluster init csync2 -y" on "hanode1"
8584
And Run "crm cluster init corosync -y" on "hanode1"
8685
And Run "crm cluster init sbd -s /dev/sda1 -y" on "hanode1"
8786
And Run "crm cluster init cluster -y" on "hanode1"
8887
Then Cluster service is "started" on "hanode1"
8988
And Service "sbd" is "started" on "hanode1"
9089
When Run "crm cluster join ssh -y -c hanode1" on "hanode2"
91-
And Run "crm cluster join csync2 -y -c hanode1" on "hanode2"
9290
And Run "crm cluster join ssh_merge -y -c hanode1" on "hanode2"
9391
And Run "crm cluster join cluster -y -c hanode1" on "hanode2"
9492
Then Cluster service is "started" on "hanode2"
@@ -100,14 +98,12 @@ Feature: crmsh bootstrap sbd management
10098
Given Cluster service is "stopped" on "hanode1"
10199
Given Cluster service is "stopped" on "hanode2"
102100
When Run "crm cluster init ssh -y" on "hanode1"
103-
And Run "crm cluster init csync2 -y" on "hanode1"
104101
And Run "crm cluster init corosync -y" on "hanode1"
105102
And Run "crm cluster init sbd -S -y" on "hanode1"
106103
And Run "crm cluster init cluster -y" on "hanode1"
107104
Then Cluster service is "started" on "hanode1"
108105
And Service "sbd" is "started" on "hanode1"
109106
When Run "crm cluster join ssh -y -c hanode1" on "hanode2"
110-
And Run "crm cluster join csync2 -y -c hanode1" on "hanode2"
111107
And Run "crm cluster join ssh_merge -y -c hanode1" on "hanode2"
112108
And Run "crm cluster join cluster -y -c hanode1" on "hanode2"
113109
Then Cluster service is "started" on "hanode2"

test/features/steps/step_implementation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,10 @@ def step_impl(context, key, value):
479479

480480
@then('SBD option "{key}" value for "{dev}" is "{value}"')
481481
def step_impl(context, key, dev, value):
482-
res = sbd.SBDTimeout.get_sbd_msgwait(dev)
482+
res = sbd.SBDUtils.get_sbd_device_metadata(dev).get(key)
483483
assert_eq(int(value), res)
484484

485+
485486
@then('Start timeout for sbd.service is "{value}" seconds')
486487
def step_impl(context, value):
487488
systemd_start_timeout = sbd.SBDTimeout.get_sbd_systemd_start_timeout()

0 commit comments

Comments
 (0)