ganeti

Safe HaskellNone

Test.Ganeti.Objects

Contents

Description

Unittests for ganeti-htools.

Synopsis

Arbitrary instances

genValidNetwork :: Gen NetworkSource

Generates a network instance with minimum netmasks of /24. Generating bigger networks slows down the tests, because long bit strings are generated for the reservations.

genBitString :: Int -> Gen StringSource

genBitStringMaxLen :: Int -> Gen StringSource

Generate an arbitrary string consisting of '0' and '1' of the maximum given length.

genEmptyCluster :: Int -> Gen ConfigDataSource

Generator for config data with an empty cluster (no instances), with N defined nodes.

Test properties

prop_fillDict :: [(Int, Int)] -> [(Int, Int)] -> PropertySource