ganeti

Safe HaskellNone

Test.Ganeti.TestHTools

Contents

Description

Common functionality for htools-related unittests.

Synopsis

Helpers

nullISpec :: ISpec Source #

An ISpec with 0 resources.

nullIPolicy :: IPolicy Source #

Null iPolicy, and by null we mean very liberal.

defGroup :: Group Source #

Default group definition.

defGroupList :: List Source #

Default group, as a (singleton) List.

defGroupAssoc :: Map String Gdx Source #

Default group, as a string map.

createInstance :: Int -> Int -> Int -> Instance Source #

Create an instance given its spec.

makeSmallCluster :: Node -> Int -> List Source #

Create a small cluster by repeating a node spec.

setInstanceSmallerThanNode :: Node -> Instance -> Instance Source #

Update an instance to be smaller than a node.