We again take the example where one node cannot be evacuated,
but otherwise everything is fine. The test verifies that the
overall status of the initial cluster is fine if capacity checks
are disabled and not otherwise.

Signed-off-by: Klaus Aehlig <[email protected]>
---
 test/hs/shelltests/htools-hcheck.test | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/test/hs/shelltests/htools-hcheck.test 
b/test/hs/shelltests/htools-hcheck.test
index 51d6a08..d5bd0dd 100644
--- a/test/hs/shelltests/htools-hcheck.test
+++ b/test/hs/shelltests/htools-hcheck.test
@@ -5,3 +5,20 @@
 ./test/hs/hcheck -t $TESTDATA_DIR/shared-n1-failure.data --machine-readable
 >>>/HCHECK_INIT_CLUSTER_GN1_FAIL=1/
 >>>= 1
+
+./test/hs/hcheck -t $TESTDATA_DIR/shared-n1-failure.data --machine-readable
+>>>/HCHECK_INIT_CLUSTER_NEED_REBALANCE=1/
+>>>= 1
+
+./test/hs/hcheck -t $TESTDATA_DIR/shared-n1-failure.data --machine-readable 
--no-capacity-checks
+>>>/HCHECK_INIT_CLUSTER_NEED_REBALANCE=0/
+>>>= 0
+
+./test/hs/hcheck -t $TESTDATA_DIR/shared-n1-failure.data
+>>>/Cluster is not healthy: True/
+>>>= 1
+
+./test/hs/hcheck -t $TESTDATA_DIR/shared-n1-failure.data --no-capacity-checks
+>>>/Cluster is not healthy: False/
+>>>= 0
+
-- 
2.2.0.rc0.207.ga3a616c

Reply via email to