ganeti

Safe HaskellSafe-Infered

Test.Ganeti.HTools.ExtLoader

Description

Unittests for the MonD data parse function

Synopsis

Documentation

case_parseMonDData :: AssertionSource

Test a MonD data file.

isAlEqual :: [(String, [DCReport])] -> [(String, [DCReport])] -> BoolSource

Check for quality two list of tuples.

tupleIsAlEqual :: (String, [DCReport]) -> (String, [DCReport]) -> BoolSource

Check a tuple for quality.

dcReportIsAlmostEqual :: DCReport -> DCReport -> BoolSource

Check if two DCReports are equal. Only reports from CPUload Data Collectors are supported.

cpuavgloadDataIsAlmostEq :: JSValue -> JSValue -> BoolSource

Converts two JSValue objects and compares them.

compareCPUavgload :: CPUavgload -> CPUavgload -> BoolSource

Compares two CPuavgload objects.