ganeti
Safe HaskellNone

Test.Ganeti.Network

Contents

Synopsis

Test cases

prop_addressPoolProperties :: Network -> Property Source #

Check that the address pool's properties are calculated correctly.

subsetMaybe :: Maybe BitArray -> Maybe BitArray -> Bool Source #

Checks for the subset relation on Maybe values.

allReservationsSubsumesInternal :: Network -> Bool Source #

Check that all internally reserved ips are included in allReservations.

allReservationsSubsumesExternal :: Network -> Bool Source #

Check that all externally reserved ips are included in allReservations.

checkCounts :: Network -> Property Source #

Check that the counts of free and reserved ips add up.

checkIsFull :: Network -> Property Source #

Check that the detection of a full network works correctly.

checkGetMap :: Network -> Property Source #

Check that the map representation of the network corresponds to the network's reservations.