Revision ce003543
b/htest/Test/Ganeti/Rpc.hs | ||
---|---|---|
32 | 32 |
import Test.QuickCheck.Monadic (monadicIO, run, stop) |
33 | 33 |
|
34 | 34 |
import Control.Applicative |
35 |
import qualified Data.Map as Map |
|
35 | 36 |
|
36 | 37 |
import Test.Ganeti.TestHelper |
37 | 38 |
import Test.Ganeti.TestCommon |
... | ... | |
47 | 48 |
arbitrary = Rpc.RpcCallInstanceList <$> arbitrary |
48 | 49 |
|
49 | 50 |
instance Arbitrary Rpc.RpcCallNodeInfo where |
50 |
arbitrary = Rpc.RpcCallNodeInfo <$> arbitrary <*> arbitrary |
|
51 |
arbitrary = Rpc.RpcCallNodeInfo <$> arbitrary <*> arbitrary <*> |
|
52 |
pure Map.empty |
|
51 | 53 |
|
52 | 54 |
-- | Monadic check that, for an offline node and a call that does not |
53 | 55 |
-- offline nodes, we get a OfflineNodeError response. |
b/lib/constants.py | ||
---|---|---|
424 | 424 |
DTS_EXCL_STORAGE = frozenset([DT_PLAIN]) |
425 | 425 |
|
426 | 426 |
# templates for which we don't perform checks on free space |
427 |
DTS_NO_FREE_SPACE_CHECK = frozenset([
|
|
428 |
DT_FILE,
|
|
429 |
DT_SHARED_FILE,
|
|
430 |
DT_RBD,
|
|
431 |
DT_EXT,
|
|
432 |
])
|
|
427 |
DTS_NO_FREE_SPACE_CHECK = compat.UniqueFrozenset([
|
|
428 |
DT_FILE, |
|
429 |
DT_SHARED_FILE, |
|
430 |
DT_RBD, |
|
431 |
DT_EXT, |
|
432 |
]) |
|
433 | 433 |
|
434 | 434 |
# logical disk types |
435 | 435 |
LD_LV = "lvm" |
Also available in: Unified diff