summaryrefslogtreecommitdiffstats
path: root/dovetail/run.py
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@ericsson.com>2018-04-01 11:35:09 +0200
committerGeorg Kunz <georg.kunz@ericsson.com>2018-04-17 19:14:14 +0000
commit749946dcc5b17cfca43c6e8692359f4972e48b21 (patch)
treebbfb42c881e4e2cb5947b6fb15e0b0fa095651c7 /dovetail/run.py
parent71ba21ff906d4104a81442d4712aac13cf4906d4 (diff)
Implementation of API validaton exemption in dovetail
This patch adds the ability to Dovetail to disable strict API response validation in Tempest-based test cases run by Functest. Corresponding updates of the web portal and backporting of this patch to OVP 1.0.0 (Danube) will follow. JIRA: DOVETAIL-633 Change-Id: Iace99ea1b6224ea907a2c3af8676e9285e6ad3ee Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'dovetail/run.py')
-rwxr-xr-xdovetail/run.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/dovetail/run.py b/dovetail/run.py
index 13e365c9..731d84d2 100755
--- a/dovetail/run.py
+++ b/dovetail/run.py
@@ -220,7 +220,7 @@ def get_result_path():
dt_cfg.dovetail_config['images_dir'] = os.path.join(dovetail_home,
'images')
pre_config_path = os.path.join(dovetail_home, 'pre_config')
- patch_set_path = os.path.join(dovetail_home, 'patch')
+ patch_set_path = os.path.join(dovetail_home, 'patches')
dt_cfg.dovetail_config['config_dir'] = pre_config_path
dt_cfg.dovetail_config['patch_dir'] = patch_set_path
return dovetail_home
@@ -238,7 +238,7 @@ def copy_patch_files(logger):
patch_set_path = dt_cfg.dovetail_config['patch_dir']
if not os.path.isdir(patch_set_path):
os.makedirs(patch_set_path)
- cmd = 'sudo cp -r %s/* %s' % (constants.PATCH_PATH, patch_set_path)
+ cmd = 'sudo cp -a -r %s/* %s' % (constants.PATCH_PATH, patch_set_path)
dt_utils.exec_cmd(cmd, logger, exit_on_error=False)
@@ -303,6 +303,12 @@ def main(*args, **kwargs):
else:
dt_cfg.dovetail_config['offline'] = False
+ if kwargs['no_api_validation']:
+ dt_cfg.dovetail_config['no_api_validation'] = True
+ logger.warning('Strict API response validation DISABLED.')
+ else:
+ dt_cfg.dovetail_config['no_api_validation'] = False
+
dt_utils.get_hardware_info(logger)
origin_testarea = kwargs['testarea']