Skip to content

Commit 4f60a82

Browse files
committed
Dev: behave: Fix cross-network isolation issue
After the GitHub Actions environment was updated, the network isolation between the two interfaces no longer functions as it did previously. As a result, the test case "Setup cluster with crossed network" does not fail as expected. To address this, an iptables rule was added to simulate the isolated network environment required for the test case.
1 parent 7020da1 commit 4f60a82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/features/bootstrap_bugs.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ Feature: Regression test for bootstrap bugs
4141
Given Cluster service is "stopped" on "hanode2"
4242
When Run "crm cluster init -u -i eth0 -y" on "hanode1"
4343
Then Cluster service is "started" on "hanode1"
44+
When Run "iptables -A INPUT -i eth1 -s @hanode1.ip.default -j DROP" on "hanode2"
4445
When Try "crm cluster join -c hanode1 -i eth1 -y" on "hanode2"
4546
Then Cluster service is "stopped" on "hanode2"
4647
And Except "Cannot see peer node "hanode1", please check the communication IP" in stderr
4748
When Run "crm cluster join -c hanode1 -i eth0 -y" on "hanode2"
4849
Then Cluster service is "started" on "hanode2"
50+
When Run "iptables -D INPUT -i eth1 -s @hanode1.ip.default -j DROP" on "hanode2"
4951

5052
@clean
5153
Scenario: Remove correspond nodelist in corosync.conf while remove(bsc#1165644)

0 commit comments

Comments
 (0)