ganeti

Safe HaskellNone

Test.Ganeti.Types

Contents

Description

Unittests for Types.

Synopsis

Arbitrary instance

allDiskTemplates :: [DiskTemplate] Source #

Valid disk templates (depending on configure options).

genReasonTrail :: Gen ReasonTrail Source #

Generates a reason trail

Properties

Orphan instances

Arbitrary ClockTime # 
Instance details

Methods

arbitrary :: Gen ClockTime

shrink :: ClockTime -> [ClockTime]

Arbitrary DiskTemplate #

Custom Arbitrary instance for DiskTemplate, which needs to handle the case of file storage being disabled at configure time.

Instance details

Arbitrary TagKind # 
Instance details

Methods

arbitrary :: Gen TagKind

shrink :: TagKind -> [TagKind]

Arbitrary AllocPolicy # 
Instance details

Arbitrary InstanceStatus # 
Instance details

Arbitrary MigrationMode # 
Instance details

Arbitrary VerifyOptionalChecks # 
Instance details

Arbitrary CVErrorCode # 
Instance details

Arbitrary DdmSimple # 
Instance details

Arbitrary DdmFull # 
Instance details

Methods

arbitrary :: Gen DdmFull

shrink :: DdmFull -> [DdmFull]

Arbitrary Hypervisor # 
Instance details

Arbitrary OobCommand # 
Instance details

Arbitrary StorageType #

Custom Arbitrary instance for StorageType, which needs to handle the case of file storage being disabled at configure time.

Instance details

Arbitrary EvacMode # 
Instance details

Arbitrary FileDriver # 
Instance details

Arbitrary InstCreateMode # 
Instance details

Arbitrary RebootType # 
Instance details

Arbitrary ExportMode # 
Instance details

Arbitrary IAllocatorTestDir # 
Instance details

Arbitrary IAllocatorMode # 
Instance details

Arbitrary NICMode # 
Instance details

Methods

arbitrary :: Gen NICMode

shrink :: NICMode -> [NICMode]

Arbitrary JobStatus # 
Instance details

Arbitrary FinalizedJobStatus # 
Instance details

Arbitrary JobDependency # 
Instance details

Arbitrary JobIdDep # 
Instance details

Arbitrary JobId # 
Instance details

Methods

arbitrary :: Gen JobId

shrink :: JobId -> [JobId]

Arbitrary OpSubmitPriority # 
Instance details

Arbitrary OpStatus # 
Instance details

Arbitrary ELogType # 
Instance details

Arbitrary a => Arbitrary (NonEmpty a) # 
Instance details

Methods

arbitrary :: Gen (NonEmpty a)

shrink :: NonEmpty a -> [NonEmpty a]

(Arbitrary a, Ord a, Num a, Show a) => Arbitrary (Negative a) # 
Instance details

Methods

arbitrary :: Gen (Negative a)

shrink :: Negative a -> [Negative a]

(Arbitrary a, Ord a, Num a, Show a) => Arbitrary (Positive a) # 
Instance details

Methods

arbitrary :: Gen (Positive a)

shrink :: Positive a -> [Positive a]

(Arbitrary a, Ord a, Num a, Show a) => Arbitrary (NonNegative a) # 
Instance details

Methods

arbitrary :: Gen (NonNegative a)

shrink :: NonNegative a -> [NonNegative a]