-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: unittest: basic alice-bob init-join test
This is just the first step to anchor the PR#1009. There will follow other more advanced tests.
- Loading branch information
Aleksei Burlakov
committed
Dec 20, 2022
1 parent
755834a
commit 4d74918
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@bootstrap | ||
Feature: crmsh bootstrap process - init, join and remove | ||
|
||
Test crmsh bootstrap init/join/remove process | ||
Need nodes: hanode1 hanode2 | ||
|
||
Scenario: Setup a two nodes cluster as alice and bob | ||
Given Nodes ["hanode1", "hanode2"] are cleaned up | ||
And Cluster service is "stopped" on "hanode1" | ||
And Cluster service is "stopped" on "hanode2" | ||
When Run "su alice -c 'crm cluster init -y'" on "hanode1" | ||
Then Cluster service is "started" on "hanode1" | ||
And Show cluster status on "hanode1" | ||
When Run "su bob -c 'crm cluster join -c alice@hanode1 -y'" on "hanode2" | ||
Then Cluster service is "started" on "hanode2" | ||
And Online nodes are "hanode1 hanode2" | ||
And Show cluster status on "hanode1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters