Commit 46747143 authored by Guido Trotter's avatar Guido Trotter
Browse files

qa: test same-name instance rename

Use the simplified command and rapi version to perform an instance
rename to the same name. This is performed anytime the rename test is
enabled, while the "other-name" rename is performed when also an
alternative name is provided.
Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarIustin Pop <>
parent e5c2accd
......@@ -201,16 +201,17 @@ def RunCommonInstanceTests(instance):
if qa_config.TestEnabled('instance-rename'):
rename_source = instance["name"]
rename_target = qa_config.get("rename", None)
if rename_target is None:
print qa_utils.FormatError("Can rename instance, 'rename' entry is"
" missing from configuration")
RunTest(qa_instance.TestInstanceShutdown, instance)
RunTest(qa_instance.TestInstanceShutdown, instance)
# perform instance rename to the same name
RunTest(qa_instance.TestInstanceRename, rename_source, rename_source)
RunTestIf("rapi", qa_rapi.TestRapiInstanceRename, rename_source, rename_source)
if rename_target is not None:
# perform instance rename to a different name, if we have one configured
RunTest(qa_instance.TestInstanceRename, rename_source, rename_target)
RunTest(qa_instance.TestInstanceRename, rename_target, rename_source)
RunTestIf("rapi", qa_rapi.TestRapiInstanceRename, rename_source, rename_target)
RunTestIf("rapi", qa_rapi.TestRapiInstanceRename, rename_target, rename_source)
RunTest(qa_instance.TestInstanceStartup, instance)
RunTest(qa_instance.TestInstanceStartup, instance)
RunTestIf("tags", qa_tags.TestInstanceTags, instance)
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