Safe Haskell | None |
---|
Unittests for ganeti-htools.
- checkQueryResults :: ConfigData -> Query -> String -> [[ResultEntry]] -> Property
- makeNodeQuery :: Filter FilterField -> Query
- expectBadQuery :: ConfigData -> Query -> String -> Property
- namesToResult :: [String] -> [[ResultEntry]]
- genClusterNames :: Int -> Int -> Gen (ConfigData, [String])
- prop_node_single_filter :: Property
- prop_node_many_filter :: Property
- prop_node_name_ordering :: Property
- prop_node_regex_filter :: Property
- prop_node_bad_filter :: String -> Int -> Property
- prop_makeSimpleFilter :: Property
- testQuery_Filter :: Test
Helpers
checkQueryResults :: ConfigData -> Query -> String -> [[ResultEntry]] -> PropertySource
expectBadQuery :: ConfigData -> Query -> String -> PropertySource
namesToResult :: [String] -> [[ResultEntry]]Source
genClusterNames :: Int -> Int -> Gen (ConfigData, [String])Source
Test cases
prop_node_single_filter :: PropertySource
prop_node_many_filter :: PropertySource
prop_node_name_ordering :: PropertySource
prop_node_regex_filter :: PropertySource
prop_node_bad_filter :: String -> Int -> PropertySource
prop_makeSimpleFilter :: PropertySource
testQuery_Filter :: TestSource