Provide support for specifying which tempest suites are run
Change-Id: I4ce82538ce52624d0cf9c4062a9c1f6d994036da
This commit is contained in:
parent
0ea7f79559
commit
5b6c0b9575
|
@ -986,6 +986,9 @@ Provisioning tempest config
|
|||
**CONFIG_RUN_TEMPEST**
|
||||
Specify 'y' to run Tempest smoke test as last step of installation.
|
||||
|
||||
**CONFIG_RUN_TEMPEST_TESTS**
|
||||
Test suites to run, example: "smoke dashboard TelemetryAlarming". Optional, defaults to "smoke".
|
||||
|
||||
Provisioning all-in-one ovs bridge config
|
||||
-----------------------------------------
|
||||
|
||||
|
|
|
@ -53,5 +53,6 @@ def initSequences(controller):
|
|||
def run_tempest(config, messages):
|
||||
print("Running Tempest on %s" % config['CONFIG_TEMPEST_HOST'])
|
||||
server = utils.ScriptRunner(config['CONFIG_TEMPEST_HOST'])
|
||||
server.append('/var/lib/tempest/run_tempest.sh -V -s')
|
||||
server.append('/var/lib/tempest/run_tempest.sh -V %s'
|
||||
% config['CONFIG_RUN_TEMPEST_TESTS'])
|
||||
server.execute()
|
||||
|
|
|
@ -220,7 +220,7 @@ def initConfig(controller):
|
|||
"CONDITION": False},
|
||||
|
||||
{"CMD_OPTION": "run-tempest",
|
||||
"PROMPT": ("Do you wish to run "),
|
||||
"PROMPT": ("Do you wish to run tempest?"),
|
||||
"OPTION_LIST": ["y", "n"],
|
||||
"VALIDATORS": [validators.validate_options],
|
||||
"DEFAULT_VALUE": "n",
|
||||
|
@ -230,6 +230,19 @@ def initConfig(controller):
|
|||
"USE_DEFAULT": False,
|
||||
"NEED_CONFIRM": False,
|
||||
"CONDITION": False},
|
||||
|
||||
{"CMD_OPTION": "run-tempest-tests",
|
||||
"PROMPT": ("What tempest tests should run ?"
|
||||
" (If blank, Tempest will run smoke tests)"),
|
||||
"OPTION_LIST": [],
|
||||
"VALIDATORS": False,
|
||||
"DEFAULT_VALUE": "smoke",
|
||||
"MASK_INPUT": False,
|
||||
"LOOSE_VALIDATION": True,
|
||||
"CONF_NAME": "CONFIG_RUN_TEMPEST_TESTS",
|
||||
"USE_DEFAULT": False,
|
||||
"NEED_CONFIRM": False,
|
||||
"CONDITION": False}
|
||||
],
|
||||
|
||||
"PROVISION_OVS_BRIDGE": [
|
||||
|
|
Loading…
Reference in New Issue