Revision 017160ed test/hs/shelltests/htools-hail.test

b/test/hs/shelltests/htools-hail.test
47 47
>>> /"success":false,.*FailDisk: 1/
48 48
>>>= 0
49 49

  
50
# check that hail honors network requirements
51
./test/hs/hail $TESTDATA_DIR/hail-alloc-restricted-network.json
52
>>> /"success":true,"info":"Request successful: Selected group: Group 1.*/
53
>>>= 0
54

  
55
# check that hail fails if no nodegroup can meet network and disk template requirements
56
./test/hs/hail $TESTDATA_DIR/hail-alloc-invalid-network.json
57
>>> /"success":false,/
58
>>>= 0
59

  
60
# check that hail succeeds with the same test data, but with the network restrictions removed
61
cat $TESTDATA_DIR/hail-alloc-invalid-network.json | grep -v -e '"network":"uuid-net-1-."' | ./test/hs/hail -
62
>>> /"success":true,"info":"Request successful: Selected group: Group 2.*/
63
>>>= 0
64

  
50 65
# check that hail can use the simu backend
51 66
./test/hs/hail --simu p,8,8T,16g,16 $TESTDATA_DIR/hail-alloc-drbd.json
52 67
>>> /"success":true,/

Also available in: Unified diff