Commit 5702c12b authored by Helga Velroyen's avatar Helga Velroyen

QA: Add more verification checks for SSH

This adds a few 'gnt-cluster verify' to QA tests that are
prone to mess up the SSH key files.
Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent bd619974
......@@ -41,7 +41,8 @@ import qa_config
import qa_error
import qa_utils
from qa_utils import AssertCommand, AssertEqual, AssertIn, GetCommandOutput
from qa_utils import AssertCommand, AssertRedirectedCommand, AssertEqual, \
AssertIn, GetCommandOutput
def NodeAdd(node, readd=False, group=None):
......@@ -65,6 +66,9 @@ def NodeAdd(node, readd=False, group=None):
AssertCommand(cmd)
if readd:
AssertRedirectedCommand(["gnt-cluster", "verify"])
if readd:
assert node.added
else:
......@@ -265,6 +269,8 @@ def TestNodeModify(node):
AssertCommand(["gnt-node", "modify", "--secondary-ip=%s" % node.secondary,
node.primary])
AssertRedirectedCommand(["gnt-cluster", "verify"])
def _CreateOobScriptStructure():
"""Create a simple OOB handling script and its structure."""
......
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