|
|
|
|
|
| Description |
| Unittests for ganeti-htools
|
|
| Synopsis |
|
|
|
|
| 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
|
|
|
|
|
| Assigns a new fresh instance to a cluster; this is not
allocation, so no resource checks are done
|
|
| Arbitrary instances
|
|
|
|
|
|
|
|
|
| Actual tests
|
|
|
Make sure add is idempotent
Make sure remove is idempotent
Make sure a missing item returns 0
Make sure an added item is found
Manual check that maxElem returns the maximum indeed, or 0 for null
Check that an instance add with too high memory or disk will be rejected
Check that an instance add with too high memory or disk will be rejected
| | Constructors | |
|
|
| Produced by Haddock version 2.6.0 |