bash_completion: Enable extglob while parsing file
[ganeti-local] / test / htools-multi-group.test
1 # standard multi-group tests
2 ./test/hinfo -v -v -p --print-instances -t$T/simu-twogroups.standard
3 >>>= 0
4 ./test/hbal -t$T/simu-twogroups.standard
5 >>>= !0
6
7 # hbal should not be able to balance
8 ./test/hbal -t$T/simu-twogroups.standard
9 >>>2 /Found multiple node groups/
10 >>>= !0
11
12 # but hbal should be able to balance one node group
13 ./test/hbal -t$T/simu-twogroups.standard -G group-01
14 >>>= 0
15 # and it should not find an invalid group
16 ./test/hbal -t$T/simu-twogroups.standard -G no-such-group
17 >>>= !0
18
19 # tiered allocs multi-group tests
20 ./test/hinfo -v -v -p --print-instances -t$T/simu-twogroups.tiered
21 >>>= 0
22 ./test/hbal -t$T/simu-twogroups.tiered
23 >>>= !0
24
25 # hbal should not be able to balance
26 ./test/hbal -t$T/simu-twogroups.tiered
27 >>>2 /Found multiple node groups/
28 >>>= !0
29
30 # but hbal should be able to balance one node group
31 ./test/hbal -t$T/simu-twogroups.tiered -G group-01
32 >>>= 0
33 # and it should not find an invalid group
34 ./test/hbal -t$T/simu-twogroups.tiered -G no-such-group
35 >>>= !0
36
37 # hcheck should be able to run with multiple groups
38 ./test/hcheck -t$T/simu-twogroups.tiered --machine-readable
39 >>> /HCHECK_OK=1/
40 >>>= 0
41
42 # hcheck should be able to improve a group with split instances
43 ./test/hbal -t $TESTDATA_DIR/hbal-split-insts.data -G group-01 -O node-01-001
44 >>> /Cluster score improved from .* to .*/
45 >>>= 0