|
|
|
|
|
Description |
Unittests for ganeti-htools.
|
|
Synopsis |
|
|
|
Documentation |
|
run :: Testable prop => prop -> Args -> IO Result | Source |
|
|
Constants
|
|
|
Maximum memory (1TiB, somewhat random value).
|
|
|
Maximum disk (8TiB, somewhat random value).
|
|
|
Max CPUs (1024, somewhat random value).
|
|
|
|
|
|
|
|
Helper functions
|
|
|
Simple checker for whether OpResult is fail or pass.
|
|
|
Update an instance to be smaller than a node.
Create an instance given its spec.
Create a small cluster by repeating a node spec.
|
|
|
Checks if a node is big enough.
|
|
canBalance :: Table -> Bool -> Bool -> Bool -> Bool | Source |
|
|
|
Assigns a new fresh instance to a cluster; this is not
allocation, so no resource checks are done.
|
|
Arbitrary instances
|
|
|
Defines a DNS name.
| Constructors | |
|
|
|
|
|
|
|
:: Maybe Int | Minimum node size in terms of units
| -> Maybe Int | Maximum node size (when Nothing, bounded
just by the max... constants)
| -> Gen Node | | Generas an arbitrary node based on sizing information.
|
|
|
|
|
|
Actual tests
|
|
Utils tests
|
|
prop_Utils_if'if :: Bool -> Int -> Int -> Bool | Source |
|
If the list is not just an empty element, and if the elements do
not contain commas, then join+split should be idempotent.
Split and join should always be idempotent.
fromObjWithDefault, we test using the Maybe monad and an integer
value.
Test that functional if' behaves like the syntactic sugar if.
|
|
|
:: Int | Default result
| -> [Int] | List of False values
| -> [Int] | List of True values
| -> Bool | Test result
| Test basic select functionality
|
|
|
prop_Utils_select_undefd | Source |
|
:: [Int] | List of False values
| -> NonEmptyList Int | List of True values
| -> Bool | Test result
| Test basic select functionality with undefined default
|
|
|
prop_Utils_select_undefv | Source |
|
:: [Int] | List of False values
| -> NonEmptyList Int | List of True values
| -> Bool | Test result
| Test basic select functionality with undefined list values
|
|
|
PeerMap tests
|
|
Container tests
|
|
Instance tests
|
|
Text backend tests
|
|
Node tests
|
|
Cluster tests
|
|
OpCodes tests
|
|
Jobs tests
|
|
Loader tests
|
|
prop_Loader_compareNameComponent_equal :: String -> Bool | Source |
|
Checks that the number of primary instances recorded on the nodes
is zero.
Check that compareNameComponent on equal strings works.
|
|
prop_Loader_compareNameComponent_prefix :: NonEmptyList Char -> String -> Bool | Source |
|
Check that compareNameComponent on prefix strings works.
|
|
Types tests
|
|
Produced by Haddock version 2.6.0 |