ganeti

Safe HaskellSafe-Infered

Test.Ganeti.TestHTools

Contents

Description

Common functionality for htools-related unittests.

Synopsis

Helpers

nullIPolicy :: IPolicySource

Null iPolicy, and by null we mean very liberal.

defGroup :: GroupSource

Default group definition.

defGroupList :: ListSource

Default group, as a (singleton) List.

defGroupAssoc :: Map String GdxSource

Default group, as a string map.

createInstance :: Int -> Int -> Int -> InstanceSource

Create an instance given its spec.

makeSmallCluster :: Node -> Int -> ListSource

Create a small cluster by repeating a node spec.

setInstanceSmallerThanNode :: Node -> Instance -> InstanceSource

Update an instance to be smaller than a node.