diff options
author | Georg Kunz <georg.kunz@ericsson.com> | 2018-04-01 11:35:09 +0200 |
---|---|---|
committer | Georg Kunz <georg.kunz@ericsson.com> | 2018-04-09 23:13:37 +0200 |
commit | b33fc07ea2cfd7c4bad0dd404ad0cb45dbb476df (patch) | |
tree | 7b4373c840cb96179be3046b49b981b7b92ce740 /dovetail/testcase.py | |
parent | 5749c7888be91216e79c840029fc89eb192c338b (diff) |
API validaton exemption for Danube-based releaseovp.1.1.0
This patch adds the ability to Dovetail to disable strict API
response validation in Tempest-based test cases run by Functest. This is
a backport of the changes from master, targeting OVP 1.0.1
Corresponding updates of the web portal will follow.
JIRA: DOVETAIL-633
Change-Id: Iace99ea1b6224ea907a2c3af8676e9285e6ad3ee
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'dovetail/testcase.py')
-rw-r--r-- | dovetail/testcase.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dovetail/testcase.py b/dovetail/testcase.py index 99845484..05c63eb7 100644 --- a/dovetail/testcase.py +++ b/dovetail/testcase.py @@ -290,6 +290,25 @@ class FunctestTestcase(Testcase): super(FunctestTestcase, self).__init__(testcase_yaml) self.type = 'functest' + def prepare_cmd(self, test_type): + if not super(FunctestTestcase, self).prepare_cmd(test_type): + return False + + # if API validation is disabled, append a command for applying a + # patch inside the functest container + if dt_cfg.dovetail_config['no_api_validation']: + patch_cmd = os.path.join( + dt_cfg.dovetail_config['functest']['config']['dir'], + 'patch', + 'functest', + 'disable-api-validation', + 'apply.sh') + self.cmds = [patch_cmd] + self.cmds + self.logger.debug('Updated list of commands for test run with ' + 'disabled API response validation: {}' + .format(self.cmds)) + return True + class YardstickTestcase(Testcase): |