Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 1 | # Copyright 2018 Mirantis, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 15 | import json |
Oleksii Butenko | 71d76f3 | 2018-06-05 17:46:34 +0300 | [diff] [blame] | 16 | import os |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 17 | |
Oleksii Butenko | b0ca4cc | 2018-10-22 16:29:54 +0300 | [diff] [blame] | 18 | from devops.helpers import helpers |
| 19 | |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 20 | from tcp_tests import logger |
| 21 | from tcp_tests import settings |
| 22 | |
Oleksii Butenko | b0ca4cc | 2018-10-22 16:29:54 +0300 | [diff] [blame] | 23 | |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 24 | LOG = logger.logger |
| 25 | |
| 26 | TEMPEST_CFG_DIR = '/tmp/test' |
| 27 | |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 28 | |
| 29 | class RuntestManager(object): |
| 30 | """Helper manager for execution tempest via runtest-formula""" |
| 31 | |
| 32 | image_name = settings.TEMPEST_IMAGE |
| 33 | image_version = settings.TEMPEST_IMAGE_VERSION |
| 34 | container_name = 'run-tempest-ci' |
| 35 | master_host = "cfg01" |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 36 | class_name = "runtest" |
| 37 | run_cmd = '/bin/bash -c "run-tempest"' |
| 38 | |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 39 | def __init__(self, config, underlay, salt_api, cluster_name, |
Oleksii Butenko | 7456610 | 2018-09-11 11:55:13 +0300 | [diff] [blame] | 40 | domain_name, tempest_threads, |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 41 | tempest_pattern=settings.TEMPEST_PATTERN, |
Oleksii Butenko | 25a8f37 | 2019-03-22 17:25:47 +0200 | [diff] [blame] | 42 | tempest_extra_args=settings.TEMPEST_EXTRA_ARGS, |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 43 | run_cmd=None): |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 44 | self.__config = config |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 45 | self.underlay = underlay |
| 46 | self.__salt_api = salt_api |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 47 | self.cluster_name = cluster_name |
| 48 | self.domain_name = domain_name |
| 49 | self.tempest_threads = tempest_threads |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 50 | self.tempest_pattern = tempest_pattern |
Oleksii Butenko | 25a8f37 | 2019-03-22 17:25:47 +0200 | [diff] [blame] | 51 | self.tempest_extra_args = tempest_extra_args |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 52 | self.run_cmd = run_cmd or self.run_cmd |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 53 | self.master_name = self.underlay.get_target_node_names( |
| 54 | self.master_host)[0] |
Dennis Dmitriev | 1566e3f | 2019-01-11 17:35:43 +0200 | [diff] [blame] | 55 | self.master_minion = self.underlay.get_target_minion_ids( |
| 56 | self.master_host)[0] |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 57 | self.__target_name = None |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 58 | self.__target_minion = None |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 59 | |
| 60 | @property |
| 61 | def salt_api(self): |
| 62 | return self.__salt_api |
| 63 | |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 64 | @property |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 65 | def target_name(self): |
| 66 | if not self.__target_name: |
obutenko | a1e3cea | 2019-01-12 21:11:55 +0200 | [diff] [blame] | 67 | target_host = self.__salt_api.get_single_pillar( |
Dennis Dmitriev | 1566e3f | 2019-01-11 17:35:43 +0200 | [diff] [blame] | 68 | tgt=self.master_minion, |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 69 | pillar="runtest:tempest:test_target") |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 70 | if target_host[-1] == "*": |
| 71 | target_host = target_host[:-1] |
| 72 | self.__target_name = self.underlay.get_target_node_names( |
| 73 | target_host)[0] |
| 74 | return self.__target_name |
obutenko | 3e44b60 | 2018-11-13 12:50:22 +0200 | [diff] [blame] | 75 | |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 76 | @property |
| 77 | def target_minion(self): |
| 78 | if not self.__target_minion: |
| 79 | target_host = self.__salt_api.get_single_pillar( |
| 80 | tgt=self.master_minion, |
| 81 | pillar="runtest:tempest:test_target") |
| 82 | if target_host[-1] == "*": |
| 83 | target_host = target_host[:-1] |
| 84 | self.__target_minion = self.underlay.get_target_minion_ids( |
| 85 | target_host)[0] |
| 86 | return self.__target_minion |
| 87 | |
Oleksii Butenko | 71d76f3 | 2018-06-05 17:46:34 +0300 | [diff] [blame] | 88 | def fetch_arficats(self, username=None, file_format='xml'): |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 89 | with self.underlay.remote(node_name=self.target_name, |
| 90 | username=None) as tgt: |
Oleksii Butenko | 71d76f3 | 2018-06-05 17:46:34 +0300 | [diff] [blame] | 91 | result = tgt.execute('find {} -name "report_*.{}"'.format( |
| 92 | TEMPEST_CFG_DIR, file_format)) |
| 93 | LOG.debug("Find result {0}".format(result)) |
| 94 | assert len(result['stdout']) > 0, ('No report found, please check' |
| 95 | ' if test run was successful.') |
| 96 | report = result['stdout'][0].rstrip() |
| 97 | LOG.debug("Found files {0}".format(report)) |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 98 | tgt.download( |
Oleksii Butenko | 71d76f3 | 2018-06-05 17:46:34 +0300 | [diff] [blame] | 99 | destination=report, # noqa |
| 100 | target=os.getcwd()) |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 101 | |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 102 | def save_runtime_logs(self, logs=None, inspect=None): |
| 103 | if logs: |
| 104 | with open("{path}/{target}_tempest_run.log".format( |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 105 | path=settings.LOGS_DIR, |
| 106 | target=self.target_name), 'w') as f: |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 107 | LOG.info("Save tempest console log") |
| 108 | container_log = logs |
Oleksii Butenko | 71d76f3 | 2018-06-05 17:46:34 +0300 | [diff] [blame] | 109 | f.write(container_log.encode('ascii', 'ignore')) |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 110 | |
| 111 | if inspect: |
Oleksii Butenko | 71d76f3 | 2018-06-05 17:46:34 +0300 | [diff] [blame] | 112 | with open("{path}/{target}_tempest_container_info.json.log".format( |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 113 | path=settings.LOGS_DIR, |
| 114 | target=self.target_name), 'w') as f: |
Oleksii Butenko | 71d76f3 | 2018-06-05 17:46:34 +0300 | [diff] [blame] | 115 | LOG.info("Save tempest container inspect data") |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 116 | |
| 117 | container_inspect = json.dumps(inspect, |
| 118 | indent=4, sort_keys=True) |
| 119 | f.write(container_inspect) |
| 120 | |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 121 | def prepare(self): |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 122 | salt_call_cmd = "salt-call -l info --hard-crash --state-output=mixed " |
obutenko | a1e3cea | 2019-01-12 21:11:55 +0200 | [diff] [blame] | 123 | barbican_integration = self.__salt_api.get_single_pillar( |
Tatyana Leontovich | 8b1fda0 | 2019-01-23 13:14:33 +0200 | [diff] [blame] | 124 | tgt="ctl01*", |
obutenko | a1e3cea | 2019-01-12 21:11:55 +0200 | [diff] [blame] | 125 | pillar="_param:barbican_integration_enabled") |
Tatyana Leontovich | 8b1fda0 | 2019-01-23 13:14:33 +0200 | [diff] [blame] | 126 | |
obutenko | c48f435 | 2019-01-24 17:03:06 +0200 | [diff] [blame] | 127 | LOG.info("Barbican integration {0}".format(barbican_integration)) |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 128 | commands = [ |
| 129 | { |
Tatyana Leontovich | eea03e9 | 2018-11-20 12:51:50 +0200 | [diff] [blame] | 130 | 'description': ("Install docker-ce package and " |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 131 | "enable packets forwarding"), |
| 132 | 'node_name': self.target_name, |
| 133 | 'cmd': ("set -ex;" + |
Tatyana Leontovich | eea03e9 | 2018-11-20 12:51:50 +0200 | [diff] [blame] | 134 | salt_call_cmd + " pkg.install docker-ce && " + |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 135 | " iptables --policy FORWARD ACCEPT")}, |
| 136 | { |
| 137 | 'description': "Install PyPI docker package", |
| 138 | 'node_name': self.target_name, |
| 139 | 'cmd': ("set -ex;" + |
| 140 | salt_call_cmd + " pip.install setuptools && " + |
| 141 | salt_call_cmd + " pip.install docker")}, |
| 142 | { |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 143 | 'description': "Generate config for Tempest", |
| 144 | 'node_name': self.master_name, |
| 145 | 'cmd': ("set -ex;" + |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 146 | "salt-run state.orchestrate " + |
| 147 | "runtest.orchestrate.tempest")}, |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 148 | ] |
obutenko | a1e3cea | 2019-01-12 21:11:55 +0200 | [diff] [blame] | 149 | |
obutenko | c48f435 | 2019-01-24 17:03:06 +0200 | [diff] [blame] | 150 | if barbican_integration: |
obutenko | a1e3cea | 2019-01-12 21:11:55 +0200 | [diff] [blame] | 151 | commands.append({ |
| 152 | 'description': "Configure barbican", |
| 153 | 'node_name': self.master_name, |
| 154 | 'cmd': ("set -ex;" + |
| 155 | salt_call_cmd + |
| 156 | " state.sls barbican.client && " + |
| 157 | salt_call_cmd + |
obutenko | c48f435 | 2019-01-24 17:03:06 +0200 | [diff] [blame] | 158 | " state.sls runtest.test_accounts" + |
obutenko | a1e3cea | 2019-01-12 21:11:55 +0200 | [diff] [blame] | 159 | salt_call_cmd + |
| 160 | " state.sls runtest.barbican_sign_image")}, |
| 161 | ) |
| 162 | |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 163 | self.__salt_api.execute_commands(commands=commands, |
| 164 | label="Prepare for Tempest") |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 165 | |
| 166 | def run_tempest(self, timeout=600): |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 167 | tgt = self.target_minion |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 168 | image_nameversion = "{}:{}".format(self.image_name, self.image_version) |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 169 | |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 170 | docker_args = ( |
Oleksii Butenko | 25a8f37 | 2019-03-22 17:25:47 +0200 | [diff] [blame] | 171 | " -t" |
| 172 | " --net host" |
| 173 | " --name {container_name}" |
| 174 | " -e ARGS=\"-r {tempest_pattern}" |
| 175 | " -w {tempest_threads} {tempest_extra_args}\"" |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 176 | " -v {cfg_dir}/tempest.conf:/etc/tempest/tempest.conf" |
| 177 | " -v /tmp/:/tmp/" |
| 178 | " -v {cfg_dir}:/root/tempest" |
| 179 | " -v /etc/ssl/certs/:/etc/ssl/certs/" |
Oleksii Butenko | 25a8f37 | 2019-03-22 17:25:47 +0200 | [diff] [blame] | 180 | " -d" |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 181 | " {image_nameversion} {run_cmd}" |
| 182 | .format( |
| 183 | container_name=self.container_name, |
| 184 | image_nameversion=image_nameversion, |
| 185 | tempest_pattern=self.tempest_pattern, |
| 186 | tempest_threads=self.tempest_threads, |
Oleksii Butenko | 25a8f37 | 2019-03-22 17:25:47 +0200 | [diff] [blame] | 187 | tempest_extra_args=self.tempest_extra_args, |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 188 | cfg_dir=TEMPEST_CFG_DIR, |
| 189 | run_cmd=self.run_cmd, |
| 190 | )) |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 191 | |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 192 | commands = [ |
| 193 | { |
| 194 | 'description': "Run Tempest tests {0}".format( |
| 195 | image_nameversion), |
| 196 | 'node_name': self.target_name, |
| 197 | 'cmd': ("set -ex;" + |
| 198 | " docker rm --force {container_name} || true;" |
| 199 | " docker run {docker_args}" |
| 200 | .format(container_name=self.container_name, |
| 201 | docker_args=docker_args)), |
| 202 | 'timeout': timeout}, |
| 203 | ] |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 204 | |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 205 | self.__salt_api.execute_commands(commands=commands, |
| 206 | label="Run Tempest tests") |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 207 | |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 208 | def simplify_salt_api_return(api_return, only_first_match=True): |
| 209 | """ |
| 210 | Salt API always returns a dict with one key as 'return' |
| 211 | and value as a list with dict. For example: |
| 212 | For single node: |
| 213 | api.local('cfg01*', 'test.ping', expr_form='compound') |
| 214 | {u'return':[{u'cfg01.cookied-cicd-queens-dvr-sl.local':True}]} |
| 215 | For multinode: |
| 216 | api.local('ctl*', 'test.ping', expr_form='compound') |
| 217 | {u'return': [{u'ctl01.cookied-cicd-queens-dvr-sl.local': True, |
| 218 | u'ctl02.cookied-cicd-queens-dvr-sl.local': True, |
| 219 | u'ctl03.cookied-cicd-queens-dvr-sl.local': True}]} |
| 220 | When wrong function is given: |
| 221 | api.local('ctl01*', 'wrong_func', expr_form='compound') |
| 222 | {u'return': [{u'ctl01.cookied-cicd-queens-dvr-sl.local': |
| 223 | u"'wrong_func' is not available."}]} |
| 224 | Empty return: |
| 225 | api.local('wrong_target', 'test.ping', expr_form='compound') |
| 226 | {u'return': [{}]} |
| 227 | """ |
| 228 | if api_return.get('return', [{}]) != [{}]: |
| 229 | api_return = api_return['return'][0] |
| 230 | if only_first_match: |
| 231 | api_return = next(api_return.iteritems())[1] |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 232 | return api_return |
| 233 | else: |
| 234 | LOG.info('''Salt api returns empty result: [{}]''') |
| 235 | return False |
| 236 | |
Oleksii Butenko | b0ca4cc | 2018-10-22 16:29:54 +0300 | [diff] [blame] | 237 | def wait_status(s): |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 238 | inspect_res = self.salt_api.local(tgt, 'dockerng.inspect', |
Oleksii Butenko | b0ca4cc | 2018-10-22 16:29:54 +0300 | [diff] [blame] | 239 | self.container_name) |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 240 | inspect = simplify_salt_api_return(inspect_res) |
| 241 | if inspect: |
Oleksii Butenko | b0ca4cc | 2018-10-22 16:29:54 +0300 | [diff] [blame] | 242 | status = inspect['State']['Status'] |
Oleksii Butenko | b0ca4cc | 2018-10-22 16:29:54 +0300 | [diff] [blame] | 243 | return status.lower() == s.lower() |
Oleksii Butenko | b0ca4cc | 2018-10-22 16:29:54 +0300 | [diff] [blame] | 244 | return False |
| 245 | |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 246 | if wait_status('running'): |
| 247 | helpers.wait(lambda: wait_status('exited'), |
| 248 | timeout=timeout, |
| 249 | timeout_msg=('Tempest run didnt finished ' |
| 250 | 'in {}'.format(timeout))) |
Oleksii Butenko | b0ca4cc | 2018-10-22 16:29:54 +0300 | [diff] [blame] | 251 | |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 252 | inspect_res = self.salt_api.local(tgt, 'dockerng.inspect', |
| 253 | self.container_name) |
| 254 | inspect = simplify_salt_api_return(inspect_res) |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 255 | |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 256 | logs_res = self.salt_api.local(tgt, 'dockerng.logs', |
| 257 | self.container_name) |
| 258 | logs = simplify_salt_api_return(logs_res) |
sgudz | 2457db8 | 2019-03-01 16:06:36 +0200 | [diff] [blame] | 259 | rm_res = self.salt_api.local(tgt, 'dockerng.rm', |
| 260 | self.container_name) |
| 261 | LOG.info("Tempest container was removed: {}".format( |
| 262 | json.dumps(rm_res, indent=4))) |
sgudz | 6571a5e | 2019-02-26 15:49:22 +0200 | [diff] [blame] | 263 | else: |
| 264 | inspect_res = self.salt_api.local(tgt, 'dockerng.inspect', |
| 265 | self.container_name) |
| 266 | inspect = simplify_salt_api_return(inspect_res) |
| 267 | if inspect: |
| 268 | status = inspect['State']['Status'] |
| 269 | LOG.info("Container is not in RUNNING state. " |
| 270 | "Current container status is {}".format(status)) |
| 271 | logs_res = self.salt_api.local(tgt, |
| 272 | 'dockerng.logs', |
| 273 | self.container_name) |
| 274 | logs = simplify_salt_api_return(logs_res) |
| 275 | else: |
| 276 | LOG.info("dockerng returns unexpected" |
| 277 | " result: {}".format(inspect_res)) |
| 278 | logs = None |
| 279 | inspect = None |
Dmitry Tyzhnenko | c56b77e | 2018-05-21 11:01:43 +0300 | [diff] [blame] | 280 | |
| 281 | return {'inspect': inspect, |
| 282 | 'logs': logs} |
Oleksii Butenko | e82441d | 2018-06-12 16:01:33 +0300 | [diff] [blame] | 283 | |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 284 | def prepare_and_run_tempest(self, username='root'): |
Oleksii Butenko | e82441d | 2018-06-12 16:01:33 +0300 | [diff] [blame] | 285 | """ |
| 286 | Run tempest tests |
| 287 | """ |
| 288 | tempest_timeout = settings.TEMPEST_TIMEOUT |
obutenko | c431435 | 2018-12-26 16:14:24 +0200 | [diff] [blame] | 289 | self.prepare() |
Oleksii Butenko | e82441d | 2018-06-12 16:01:33 +0300 | [diff] [blame] | 290 | test_res = self.run_tempest(tempest_timeout) |
| 291 | self.fetch_arficats(username=username) |
| 292 | self.save_runtime_logs(**test_res) |