Revision 65d356d2

b/Makefile.am
1270 1270
	test/data/htools/hroller-nodegroups.data \
1271 1271
	test/data/htools/hroller-nonredundant.data \
1272 1272
	test/data/htools/hroller-online.data \
1273
	test/data/htools/hsqueeze-overutilized.data \
1273 1274
	test/data/htools/hsqueeze-underutilized.data \
1274 1275
	test/data/htools/unique-reboot-order.data \
1275 1276
	test/hs/shelltests/htools-balancing.test \
b/test/data/htools/hsqueeze-overutilized.data
1
group-01|fake-uuid-01|preferred||
2

  
3
node-01-000|512|0|4|1052|1052|9|M|fake-uuid-01|1||N|0|1
4
node-01-001|512|0|4|1052|1052|9|N|fake-uuid-01|1||N|0|1
5
node-01-002|512|0|512|1052|1052|9|Y|fake-uuid-01|1|htools:standby:manual|N|0|1
6
node-01-003|512|0|512|1052|1052|9|Y|fake-uuid-01|1||N|0|1
7
node-01-004|512|0|512|1052|1052|9|Y|fake-uuid-01|1|htools:standby:manual|N|0|1
8
node-01-005|512|0|512|1052|1052|9|Y|fake-uuid-01|1|htools:standby:manual|N|0|1
9
node-01-006|512|0|512|1052|1052|9|Y|fake-uuid-01|1|htools:standby:manual|N|0|1
10
node-01-007|512|0|512|1052|1052|9|Y|fake-uuid-01|1|pink:bunny|N|0|1
11

  
12
inst-00|127|0|1|running|Y|node-01-000||ext||1|-
13
inst-01|127|0|1|running|Y|node-01-000||ext||1|-
14
inst-02|127|0|1|running|Y|node-01-000||ext||1|-
15
inst-03|127|0|1|running|Y|node-01-000||ext||1|-
16
inst-10|127|0|1|running|Y|node-01-001||ext||1|-
17
inst-11|127|0|1|running|Y|node-01-001||ext||1|-
18
inst-12|127|0|1|running|Y|node-01-001||ext||1|-
19
inst-13|127|0|1|running|Y|node-01-001||ext||1|-
20

  
21
|127,1,0,0,1,1|127,1,0,1,1,1;256,1,0,0,2,2|ext|1.0|32.0
22

  
23
|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
24
group-01|128,1,1024,1,1,1|128,1,1024,1,1,1;32768,8,1048576,16,8,12|diskless,file,sharedfile,plain,blockdev,drbd,rbd,ext|4.0|32.0
b/test/hs/shelltests/htools-hsqueeze.test
19 19
node-01-00[2345]
20 20
node-01-00[2345]$/
21 21
>>>= 0
22

  
23
./test/hs/hsqueeze -v -t $TESTDATA_DIR/hsqueeze-overutilized.data
24
>>>/Online candidates: node-01-00[2456],node-01-00[2456],node-01-00[2456],node-01-00[2456]/
25
>>>= 0
26

  
27
./test/hs/hsqueeze --no-headers -t $TESTDATA_DIR/hsqueeze-overutilized.data
28
>>>/^node-01-00[2456]
29
node-01-00[2456]$/
30
>>>= 0
31

  
32
./test/hs/hsqueeze -t $TESTDATA_DIR/hsqueeze-overutilized.data --minimal-resources=0
33
>>>/No action/
34
>>>= 0
35

  
36
./test/hs/hsqueeze --no-headers -t $TESTDATA_DIR/hsqueeze-overutilized.data --minimal-resources=4.0 --target-resources=5.0
37
>>>/^node-01-00[2456]
38
node-01-00[2456]
39
node-01-00[2456]
40
node-01-00[2456]$/
41
>>>= 0
42

  
43
./test/hs/hsqueeze -v -t $TESTDATA_DIR/hsqueeze-overutilized.data --minimal-resources=4.0 --target-resources=5.0
44
>>>/will not yield enough capacity/
45
>>>= 0

Also available in: Unified diff