blob: 225b005b18412dbe11e84dffce4f70bc99f146dc [file] [log] [blame]
Oleksii Butenkoe82441d2018-06-12 16:01:33 +03001# 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
15import pytest
16from tcp_tests import settings
17from tcp_tests.managers.runtestmanager import RuntestManager
18
19
20@pytest.fixture(scope='function')
Dennis Dmitrievb6bcc5c2018-09-26 11:07:53 +000021def tempest_actions(config, underlay_actions, salt_actions):
Oleksii Butenkoe82441d2018-06-12 16:01:33 +030022 """
23 Run tempest tests
24 """
25 tempest_threads = settings.TEMPEST_THREADS
Oleksii Butenkoe82441d2018-06-12 16:01:33 +030026 tempest_pattern = settings.TEMPEST_PATTERN
Oleksii Butenko25a8f372019-03-22 17:25:47 +020027 tempest_extra_args = settings.TEMPEST_EXTRA_ARGS
Oleksii Butenkoe82441d2018-06-12 16:01:33 +030028 cluster_name = settings.LAB_CONFIG_NAME
Oleksii Butenko5cd0a162018-06-14 18:18:10 +030029 domain_name = settings.DOMAIN_NAME
Oleksii Butenkoe82441d2018-06-12 16:01:33 +030030 runtest = RuntestManager(
Dennis Dmitrievb6bcc5c2018-09-26 11:07:53 +000031 config,
Dennis Dmitrievee5ef232018-08-31 13:53:18 +030032 underlay_actions, salt_actions,
Oleksii Butenkoe82441d2018-06-12 16:01:33 +030033 cluster_name=cluster_name,
34 domain_name=domain_name,
Oleksii Butenko25a8f372019-03-22 17:25:47 +020035 tempest_extra_args=tempest_extra_args,
Oleksii Butenkoe82441d2018-06-12 16:01:33 +030036 tempest_threads=tempest_threads,
obutenkoc4314352018-12-26 16:14:24 +020037 tempest_pattern=tempest_pattern)
Oleksii Butenkoe82441d2018-06-12 16:01:33 +030038 return runtest