X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/26a61f87506324fb008a7168d65704742b8496f1..30dabd03436be299b1daa02f35685d440a69c7ab:/qa/ganeti-qa.py diff --git a/qa/ganeti-qa.py b/qa/ganeti-qa.py index 1bd4d5c..5c399e7 100755 --- a/qa/ganeti-qa.py +++ b/qa/ganeti-qa.py @@ -74,8 +74,12 @@ def SetupCluster(): """Initializes the cluster. """ - RunTest(qa_cluster.TestClusterInit) - RunTest(qa_node.TestNodeAddAll) + if qa_config.TestEnabled('create-cluster'): + RunTest(qa_cluster.TestClusterInit) + RunTest(qa_node.TestNodeAddAll) + else: + # consider the nodes are already there + qa_node.MarkNodeAddedAll() if qa_config.TestEnabled('node-info'): RunTest(qa_node.TestNodeInfo) @@ -159,6 +163,9 @@ def RunCommonInstanceTests(instance): if qa_config.TestEnabled('node-volumes'): RunTest(qa_node.TestNodeVolumes) + if qa_config.TestEnabled("node-storage"): + RunTest(qa_node.TestNodeStorage) + if qa_rapi.Enabled(): RunTest(qa_rapi.TestInstance, instance) @@ -308,7 +315,8 @@ def main(): finally: qa_config.ReleaseNode(pnode) - RunTest(qa_node.TestNodeRemoveAll) + if qa_config.TestEnabled('create-cluster'): + RunTest(qa_node.TestNodeRemoveAll) if qa_config.TestEnabled('cluster-destroy'): RunTest(qa_cluster.TestClusterDestroy)