Safe Haskell | None |
---|
Unittests for htools' ganeti-mond backend
Synopsis
- case_parseMonDData :: Assertion
- isAlEqual :: [(String, [DCReport])] -> [(String, [DCReport])] -> Bool
- tupleIsAlEqual :: (String, [DCReport]) -> (String, [DCReport]) -> Bool
- dcReportIsAlmostEqual :: DCReport -> DCReport -> Bool
- cpuavgloadDataIsAlmostEq :: JSValue -> JSValue -> Bool
- compareCPUavgload :: CPUavgload -> CPUavgload -> Bool
- testHTools_Backend_MonD :: Test
Documentation
case_parseMonDData :: Assertion Source #
Test a MonD data file.
isAlEqual :: [(String, [DCReport])] -> [(String, [DCReport])] -> Bool Source #
Check for quality two list of tuples.
tupleIsAlEqual :: (String, [DCReport]) -> (String, [DCReport]) -> Bool Source #
Check a tuple for quality.
dcReportIsAlmostEqual :: DCReport -> DCReport -> Bool Source #
Check if two DCReports are equal. Only reports from CPUload Data Collectors are supported.
cpuavgloadDataIsAlmostEq :: JSValue -> JSValue -> Bool Source #
Converts two JSValue objects and compares them.
compareCPUavgload :: CPUavgload -> CPUavgload -> Bool Source #
Compares two CPuavgload objects.
testHTools_Backend_MonD :: Test Source #