ganeti
Safe HaskellNone

Test.Ganeti.HTools.Backend.MonD

Description

Unittests for htools' ganeti-mond backend

Synopsis

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.