Safe Haskell | None |
---|
Unittests for ganeti-htools.
Synopsis
- prop_CallEncoding :: LuxiOp -> Property
- luxiServerPong :: Client -> IO ()
- luxiClientPong :: Client -> [String] -> IO [String]
- prop_ClientServer :: [[DNSChar]] -> Property
- case_AllDefined :: Assertion
- testLuxi :: Test
Luxi tests
prop_CallEncoding :: LuxiOp -> Property Source #
Simple check that encoding/decoding of LuxiOp works.
luxiServerPong :: Client -> IO () Source #
Server ping-pong helper.
luxiClientPong :: Client -> [String] -> IO [String] Source #
Client ping-pong helper.
prop_ClientServer :: [[DNSChar]] -> Property Source #
Monadic check that, given a server socket, we can connect via a client to it, and that we can send a list of arbitrary messages and get back what we sent.
case_AllDefined :: Assertion Source #
Check that Python and Haskell define the same Luxi requests list.