History | View | Annotate | Download (2.6 kB)
Remove an obsolete function and add Utils tests
Remove JOB_STATUS_GONE and add unittests
… for the serialization/deserialization of the job and opcode status.
Job status 'gone' was not actually used. It can be reintroduced ifneeded.
Add a few Loader tests
These are not comprehensive, but at least we have a start.
Modify the test runner to show test exceptions
QuickCheck's batch driver (at least v1) doesn't show the test aborts,but simply discards the specific exception and increases the abortcount. This makes it hard to debug the tests, so we modify our own test...
Improve the test driver
The tests are moved to a separate data structure, and we can select asubset of tests to run.
Introduce OpCode unittests
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 intiered more starting from any size) and the balancing functions (one...
Change some test constants
First, we reduce the max size of the disks, since Int on 32bits willoverflow for big simulated clusters. This is a real issue, that willneed fixing in real life, but for now we just "silence" this test.
Second, we increase the amount of time a test is allowed to run,...
More hlint fixes
This makes (for now) the code hlint-clean. This is per se not a hugegain, but it allows easier tracking of regressions in style later(one-two new violations are easier to diagnose when not hidden among 20“known” ones).
Style change: camel-casing of unittests
Make the test suite return an reasonable exit code
Test.QuickCheck.Batch.runTests doesn't return any error statistics,which makes the test suite just display errorrs and always exit withexit code 0. This is not good, since one cannot then actually batch run...
Test some cases for the cluster score computation
Add some more instance tests
This include instance text load tests.
Ensure consistent naming of the tools
This patch makes sure that all references to the name of the software isganeti-htools, not simply htools.
Add copyright/license information
This doc-patch adds copyright and license information to (hopefully) allneeded files.
tests: move the test declaration in QC.hs
This patch moves the test declaration into QC.hs, so that test.hs has tobe modified only when we add a new test category.
A simple test for Container.addTwo
Add some very trivial Instance tests
This is more of an exercise in QuickCheck than strong testing.
Add test infrastructure and initial tests
This patch adds a QuickCheck-based test infrastructure and initial testsbased on it. The PeerMap module has a 100% coverage ☺
Side-note: one has to read the source of QuickCheck to see how to use it(especially the Batch submodule), the docs are not enough…