Add a test helper for simple JSON serialisation testing
authorIustin Pop <iustin@google.com>
Thu, 30 Aug 2012 17:40:41 +0000 (19:40 +0200)
committerIustin Pop <iustin@google.com>
Wed, 5 Sep 2012 13:58:42 +0000 (15:58 +0200)
commit63b068c1a05e0f011b6f4108148394a4822ec7fc
tree5217075031ef869ff47cda96aa6461191e3f7dd2
parent8d2b6a120c7099c857b730729eb1453e14b3698e
Add a test helper for simple JSON serialisation testing

While adding yet another JSON serialisation test, I realised that this
can be trivially abstracted; hence this patch, replacing both simple
versions (readJSON . showJSON == id) and the standard version (with
different error messages) across the tests with a single function
call.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
htest/Test/Ganeti/HTools/Types.hs
htest/Test/Ganeti/Jobs.hs
htest/Test/Ganeti/Objects.hs
htest/Test/Ganeti/OpCodes.hs
htest/Test/Ganeti/Query/Language.hs
htest/Test/Ganeti/TestCommon.hs