ganeti
Safe HaskellNone

Test.Ganeti.Query.Aliases

Description

Unittests for query aliases.

Synopsis

Documentation

toFieldNameList :: FieldList a b -> [FieldName] Source #

Converts field list to field name list

toAliasNameList :: [(FieldName, FieldName)] -> [FieldName] Source #

Converts alias list to alias name list

toAliasTargetList :: [(FieldName, FieldName)] -> [FieldName] Source #

Converts alias list to alias target list

checkShadowing :: String -> FieldList a b -> [(FieldName, FieldName)] -> Assertion Source #

Checks for shadowing

checkTargets :: String -> FieldList a b -> [(FieldName, FieldName)] -> Assertion Source #

Checks for target existence

case_instanceAliasesNoShadowing :: Assertion Source #

Check that instance aliases do not shadow existing fields

case_instanceAliasesTargetsExist :: Assertion Source #

Check that instance alias targets exist