Add entire ConfigData serialisation tests
authorIustin Pop <iustin@google.com>
Fri, 31 Aug 2012 10:54:07 +0000 (12:54 +0200)
committerIustin Pop <iustin@google.com>
Wed, 5 Sep 2012 14:18:25 +0000 (16:18 +0200)
commit9924d61e75b5e4339efc423ef593b4041194d9c5
tree1a90b04886223d2d10d1cca06c8bfe7810d5998f
parent7022db834d7dff3ae2159f0db2e6a353a76e2ee5
Add entire ConfigData serialisation tests

Using the recently-added genArbitrary, we can now implement Arbitrary
instances for even "huge" objects like Cluster, so let's use that to
implement entire ConfigData serialisation tests.

Note that, as we don't have yet proper types for some of the Params
fields, we have to cheat via FlexibleInstances and
TypeSynonymInstances, using either empty items or real arbitrary
values.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
htest/Test/Ganeti/Objects.hs
htest/test.hs
htools/Ganeti/Objects.hs
htools/Ganeti/THH.hs