Skip to content
Snippets Groups Projects
Commit aca55e15 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix QA test for “gnt-node evacuate”


Before the arguments weren't valid.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 22d3e184
No related branches found
No related tags found
No related merge requests found
......@@ -128,12 +128,14 @@ def TestNodeEvacuate(node, node2):
" it to have no secondary instances.")
# Evacuate all secondary instances
cmd = ['gnt-node', 'evacuate', '-f', node2['primary'], node3['primary']]
cmd = ['gnt-node', 'evacuate', '-f',
"--new-secondary=%s" % node3['primary'], node2['primary']]
AssertEqual(StartSSH(master['primary'],
utils.ShellQuoteArgs(cmd)).wait(), 0)
# ... and back again.
cmd = ['gnt-node', 'evacuate', '-f', node3['primary'], node2['primary']]
cmd = ['gnt-node', 'evacuate', '-f',
"--new-secondary=%s" % node2['primary'], node3['primary']]
AssertEqual(StartSSH(master['primary'],
utils.ShellQuoteArgs(cmd)).wait(), 0)
finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment