Commit 93ddfce2 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Add some rudimentary node group ipolicy checks

Signed-off-by: default avatarRené Nussbaumer <>
Reviewed-by: default avatarIustin Pop <>
parent 8b057218
......@@ -90,11 +90,19 @@ def TestGroupModify():
AssertCommand(["gnt-group", "add", group1])
std_defaults = constants.IPOLICY_DEFAULTS[constants.ISPECS_STD]
min_v = std_defaults[constants.ISPEC_MEM_SIZE] * 10
max_v = min_v * 10
AssertCommand(["gnt-group", "modify", "--alloc-policy", "unallocable",
"--node-parameters", "oob_program=/bin/false", group1])
AssertCommand(["gnt-group", "modify",
"--alloc-policy", "notvalid", group1], fail=True)
AssertCommand(["gnt-group", "modify", "--specs-mem-size",
"min=%s,max=%s,std=0" % (min_v, max_v), group1], fail=True)
AssertCommand(["gnt-group", "modify", "--specs-mem-size",
"min=%s,max=%s" % (min_v, max_v), group1])
AssertCommand(["gnt-group", "remove", group1])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment