Safe Haskell | None |
---|
Unittests for ganeti-htools.
- makeSmallEmptyCluster :: Node -> Int -> Instance -> (List, List, Instance)
- isNodeBig :: Int -> Node -> Bool
- canBalance :: Table -> Bool -> Bool -> Bool -> Bool
- assignInstance :: List -> List -> Instance -> Idx -> Idx -> (List, List)
- isMirrored :: Instance -> Bool
- evacModeOptions :: MirrorType -> [EvacMode]
- prop_Score_Zero :: Node -> Property
- prop_CStats_sane :: Property
- prop_Alloc_sane :: Instance -> Property
- prop_CanTieredAlloc :: Property
- genClusterAlloc :: Int -> Node -> Instance -> Result (List, List, Instance)
- prop_AllocRelocate :: Property
- check_EvacMode :: Group -> Instance -> Result (List, List, EvacSolution) -> Property
- prop_AllocEvacuate :: Property
- prop_AllocChangeGroup :: Property
- prop_AllocBalance :: Property
- prop_CheckConsistency :: Node -> Instance -> Bool
- prop_SplitCluster :: Node -> Instance -> Property
- canAllocOn :: List -> Int -> Instance -> Maybe String
- prop_AllocPolicy :: Property
- testHTools_Cluster :: Test
Helpers
canBalance :: Table -> Bool -> Bool -> Bool -> BoolSource
isMirrored :: Instance -> BoolSource
evacModeOptions :: MirrorType -> [EvacMode]Source
Test cases
prop_Score_Zero :: Node -> PropertySource
prop_CStats_sane :: PropertySource
prop_Alloc_sane :: Instance -> PropertySource
prop_CanTieredAlloc :: PropertySource
prop_AllocRelocate :: PropertySource
check_EvacMode :: Group -> Instance -> Result (List, List, EvacSolution) -> PropertySource
prop_AllocEvacuate :: PropertySource
prop_AllocChangeGroup :: PropertySource
prop_AllocBalance :: PropertySource
prop_CheckConsistency :: Node -> Instance -> BoolSource
prop_SplitCluster :: Node -> Instance -> PropertySource
canAllocOn :: List -> Int -> Instance -> Maybe StringSource
prop_AllocPolicy :: PropertySource
testHTools_Cluster :: TestSource