Add more unit tests for allocation/balance
authorIustin Pop <iustin@google.com>
Thu, 20 May 2010 16:36:26 +0000 (18:36 +0200)
committerIustin Pop <iustin@google.com>
Thu, 20 May 2010 16:45:20 +0000 (18:45 +0200)
commit3fea6959e954e6f035fd002bc4ff883bd3ab26cd
treed89c6d250b49107db619341e673af8087a335621
parent3ce8009a119595489338f4e92e5a2d633c487204
Add more unit tests for allocation/balance

The patch adds some simple unit-tests for both the allocation function
(we can allocate small instances on an empty cluster, we can allocate in
tiered more starting from any size) and the balancing functions (one
single instance is placed optimally, a full cluster plus an empty node
can be rebalanced). The coverage has increased greatly, since this is
the bulk of the algorithm/code.

Also, the cluster tests are now being run with different options, since
they are much slower.
Ganeti/HTools/Cluster.hs
Ganeti/HTools/QC.hs
test.hs