Some unit tests improvements
authorIustin Pop <iustin@google.com>
Mon, 7 May 2012 10:07:10 +0000 (12:07 +0200)
committerIustin Pop <iustin@google.com>
Tue, 8 May 2012 10:37:57 +0000 (12:37 +0200)
commit5cefb2b2b638a13a288895bee110eca5f3aeee13
treeca7554b41d365822f1db194415420a2e0195131d
parent95d0d50277217b48c5e7bca7b2c349aa7b19f280
Some unit tests improvements

In preparation for unit-testing the Luxi definitions, this improves
the auto-generation of OpCodes: currently this uses unbounded plain
Strings for names and fields, and this creates too big test sizes
(e.g. when automatically generating job sets).

Furthermore, there are some more cleanups: switching from liftM to
applicative style for easier definition, and some improvements in
generators.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
htools/Ganeti/HTools/QC.hs