Extend hroller test to also verify tag-based node selection
[ganeti-local] / test / hs / shelltests / htools-single-group.test
1 # standard single-group tests
2 ./test/hs/hinfo -v -v -p --print-instances -t$T/simu-onegroup.standard
3 >>>= 0
4
5 ./test/hs/hbal  -v -v -p --print-instances -t$T/simu-onegroup.standard
6 >>>= 0
7
8 # hbal should not be able to balance
9 ./test/hs/hbal -t$T/simu-onegroup.standard
10 >>> /(Nothing to do, exiting|No solution found)/
11 >>>= 0
12
13
14 # tiered single-group tests
15 ./test/hs/hinfo -v -v -p --print-instances -t$T/simu-onegroup.tiered
16 >>>= 0
17
18 ./test/hs/hbal  -v -v -p --print-instances -t$T/simu-onegroup.tiered
19 >>>= 0
20
21 # hbal should not be able to balance
22 ./test/hs/hbal -t$T/simu-onegroup.tiered
23 >>> /(Nothing to do, exiting|No solution found)/
24 >>>= 0
25
26 # hcheck should not find reason to rebalance
27 ./test/hs/hcheck -t$T/simu-onegroup.tiered --machine-readable
28 >>> /HCHECK_INIT_CLUSTER_NEED_REBALANCE=0/
29 >>>= 0
30
31 # hroller should be able to print the solution
32 ./test/hs/hroller -t$T/simu-onegroup.tiered
33 >>>= 0
34
35 # hroller should be able to print the solution, in verbose mode as well
36 ./test/hs/hroller -t$T/simu-onegroup.tiered -v -v
37 >>>= 0