ganeti
Safe HaskellNone

Test.Ganeti.Query.Network

Description

Unittests for Network Queries.

Synopsis

Documentation

prop_getGroupConnection :: NodeGroup -> Property Source #

Check if looking up a valid network ID of a nodegroup yields a non-Nothing result.

prop_getGroupConnection_notFound :: NodeGroup -> String -> Property Source #

Checks if looking up an ID of a non-existing network in a node group yields Nothing.

prop_instIsConnected :: ConfigData -> Property Source #

Checks whether actually connected instances are identified as such.

prop_instIsConnected_notFound :: ConfigData -> String -> Property Source #

Tests whether instances that are not connected to a network are correctly classified as such.