Make invocation of rapi test configurable by QA config
authorHelga Velroyen <helgav@google.com>
Wed, 17 Apr 2013 19:54:11 +0000 (21:54 +0200)
committerHelga Velroyen <helgav@google.com>
Wed, 17 Apr 2013 21:50:32 +0000 (23:50 +0200)
This does not solve the underlying problem of the rapi test not
being runnable locally, but it makes it at least configurable
to avoid having to patch in/out all the time.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

qa/ganeti-qa.py

index 7af9ff8..712424f 100755 (executable)
@@ -640,7 +640,8 @@ def RunQa():
   SetupCluster(rapi_user, rapi_secret)
 
   # Load RAPI certificate
-  qa_rapi.Setup(rapi_user, rapi_secret)
+  if qa_config.get("rapi"):
+    qa_rapi.Setup(rapi_user, rapi_secret)
 
   RunClusterTests()
   RunOsTests()