Commit 90669369 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix test Node_addSec_idempotent



Another test that only works for DRBD8 instances.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent e7b4d0e1
......@@ -1103,8 +1103,9 @@ prop_Node_addSec_idempotent =
forAll (genInstanceSmallerThanNode node) $ \inst ->
let pdx = Node.idx node + 1
inst' = Instance.setPri inst pdx
in case Node.addSec node inst' pdx of
Types.OpGood node' -> Node.removeSec node' inst' ==? node
inst'' = inst' { Instance.diskTemplate = Types.DTDrbd8 }
in case Node.addSec node inst'' pdx of
Types.OpGood node' -> Node.removeSec node' inst'' ==? node
_ -> failTest "Can't add instance"
testSuite "Node"
......
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