Add decoding of Luxi calls and unittests for LuxiOp
authorIustin Pop <iustin@google.com>
Mon, 7 May 2012 10:56:32 +0000 (12:56 +0200)
committerIustin Pop <iustin@google.com>
Tue, 8 May 2012 10:37:59 +0000 (12:37 +0200)
commitcdd495ae22f69fed19dbfe1a573784979002fceb
tree2de84dd7172cec4d90f89c49535dbb5dfe49ee9a
parent5cefb2b2b638a13a288895bee110eca5f3aeee13
Add decoding of Luxi calls and unittests for LuxiOp

This patch adds a hand-coded decoder for LuxiCall arguments, as the
data-structure is not uniform enough for automated generation (even
for the serialisation, we had to add hints for some fields,
de-serialisation is even harder).

It also fixes a tiny issue with WaitForJobChange job ID encoding, and
adds unittests for the encoding/decoding of LuxiOp structures.

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