Commit 1010ec70 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

QA: Enable all tests by default

This patch enables all tests by default, unless when they're
explicitely disabled in the config file. This will make sure
newly added tests are run even when an old configuration file
is used.

A comment is also added qa-sample.json.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent a705dc05
......@@ -66,8 +66,6 @@
"instance-add-drbd-disk": true,
"instance-convert-disk": true,
"instance-automatic-restart": false,
"instance-consecutive-failures": false,
"instance-export": true,
"instance-failover": true,
"instance-import": true,
......@@ -80,6 +78,10 @@
"instance-rename": true,
"instance-shutdown": true,
"# cron/ganeti-watcher should be disabled for these tests": null,
"instance-automatic-restart": false,
"instance-consecutive-failures": false,
"# This test might fail with certain hypervisor types, depending": null,
"# on whether they support the `gnt-instance console' command.": null,
"instance-console": false,
......@@ -60,8 +60,10 @@ def get(name, default=None):
def TestEnabled(test):
"""Returns True if the given test is enabled."""
return cfg.get('tests', {}).get(test, False)
"""Returns True if the given test is enabled.
return cfg.get("tests", {}).get(test, True)
def GetMasterNode():
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