[Pkg-ganeti-devel] [ganeti] 111/165: Add test for hcheck --no-capacity-checks

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Tue Aug 11 13:53:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

apoikos pushed a commit to branch master
in repository ganeti.

commit 17a92b42e903b055d1d095c772f24acf3af10b4b
Author: Klaus Aehlig <aehlig at google.com>
Date:   Wed Apr 15 16:02:00 2015 +0200

    Add test for hcheck --no-capacity-checks
    
    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 <aehlig at google.com>
    Reviewed-by: Petr Pudlak <pudlak at google.com>
---
 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
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git



More information about the Pkg-ganeti-devel mailing list