Commit 5c4731eb authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

QA for 'gnt-cluster modify --install-image=...'

Extend QA with test for 'gnt-cluster modify --install-image=...'
Signed-off-by: default avatarJose A. Lopes <>
Reviewed-by: default avatarHrvoje Ribicic <>
parent 38bbeb5f
......@@ -244,6 +244,7 @@ def RunClusterTests():
("cluster-modify", qa_cluster.TestClusterModifyDiskTemplates),
("cluster-modify", qa_cluster.TestClusterModifyFileStorageDir),
("cluster-modify", qa_cluster.TestClusterModifySharedFileStorageDir),
("cluster-modify", qa_cluster.TestClusterModifyInstallImage),
("cluster-rename", qa_cluster.TestClusterRename),
("cluster-info", qa_cluster.TestClusterVersion),
("cluster-info", qa_cluster.TestClusterInfo),
......@@ -607,6 +607,17 @@ def TestClusterModifyDiskTemplates():
def TestClusterModifyInstallImage():
"""gnt-cluster modify --install-image=...'"""
master = qa_config.GetMasterNode()
image = \
"mktemp --tmpdir ganeti-install-image.XXXXXX").strip()
AssertCommand(["gnt-cluster", "modify", "--install-image=%s" % image])
AssertCommand(["rm", image])
def _RestoreEnabledDiskTemplates():
"""Sets the list of enabled disk templates back to the list of enabled disk
templates from the QA configuration. This can be used to make sure that
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