ganeti

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.

Check that all internally reserved ips are included in allReservations.

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.