@@ -36,6 +36,15 @@ Feature: crmsh bootstrap process - options
36
36
When Try "crm cluster init sbd -N hanode1 -N hanode2 -y" on "hanode1"
37
37
Then Expected "Can't use -N/--nodes option and stage(sbd) together" in stderr
38
38
39
+ @clean
40
+ Scenario : Stage validation
41
+ When Try "crm cluster init fdsf -y" on "hanode1"
42
+ Then Expected "Invalid stage: fdsf(available stages: ssh, csync2, corosync, sbd, cluster, ocfs2, admin, qdevice)" in stderr
43
+ When Try "crm cluster join fdsf -y" on "hanode1"
44
+ Then Expected "Invalid stage: fdsf(available stages: ssh, csync2, ssh_merge, cluster)" in stderr
45
+ When Try "crm cluster join ssh -y" on "hanode1"
46
+ Then Expected "Can't use stage(ssh) without specifying cluster node" in stderr
47
+
39
48
@clean
40
49
Scenario : Init whole cluster service on node "hanode1" using "--node" option
41
50
Given Cluster service is "stopped" on "hanode1"
@@ -46,6 +55,9 @@ Feature: crmsh bootstrap process - options
46
55
And Online nodes are "hanode1 hanode2"
47
56
And Show cluster status on "hanode1"
48
57
58
+ When Try "crm cluster init cluster -y" on "hanode1"
59
+ Then Expected "Cluster is active, can't run 'cluster' stage" in stderr
60
+
49
61
@clean
50
62
Scenario : Bind specific network interface using "-i" option
51
63
Given Cluster service is "stopped" on "hanode1"
@@ -89,6 +101,9 @@ Feature: crmsh bootstrap process - options
89
101
And IP "@hanode2.ip.default" is used by corosync on "hanode2"
90
102
And IP "@hanode2.ip.0" is used by corosync on "hanode2"
91
103
104
+ When Try "crm cluster join cluster -c hanode1 -y" on "hanode2"
105
+ Then Expected "Cluster is active, can't run 'cluster' stage" in stderr
106
+
92
107
@clean
93
108
Scenario : Using "-i" option with IP address
94
109
Given Cluster service is "stopped" on "hanode1"
0 commit comments