Skip to content

Commit

Permalink
Dev: behave: Add functional test for previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Dec 12, 2023
1 parent 947ca88 commit 1be9dd0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/features/bootstrap_bugs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,25 @@ Feature: Regression test for bootstrap bugs
Then Service "corosync" is "started" on "hanode1"
When Run "crm cluster stop" on "hanode1"
Then Service "corosync" is "stopped" on "hanode1"

@clean
Scenario: Can't stop all nodes' cluster service when local node's service is down(bsc#1213889)
Given Cluster service is "stopped" on "hanode1"
And Cluster service is "stopped" on "hanode2"
When Run "crm cluster init -y" on "hanode1"
Then Cluster service is "started" on "hanode1"
When Run "crm cluster join -c hanode1 -y" on "hanode2"
Then Cluster service is "started" on "hanode2"
When Wait for DC
When Wait "10" seconds
Then Online nodes are "hanode1 hanode2"
# Add more operations
When Run "crm node standby hanode1" on "hanode1"
When Run "crm node online hanode1" on "hanode1"
When Run "crm node standby hanode2" on "hanode1"
When Run "crm node online hanode2" on "hanode1"
When Wait "10" seconds
When Run "crm cluster stop" on "hanode1"
And Run "crm cluster stop --all" on "hanode1"
Then Cluster service is "stopped" on "hanode1"
And Cluster service is "stopped" on "hanode2"

0 comments on commit 1be9dd0

Please sign in to comment.