blob: 5a5c09e614f0662ad88aab2e08465c0128368301 [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 Dmitrievee5ef232018-08-31 13:53:18 +030021def tempest_actions(underlay_actions, salt_actions):
Oleksii Butenkoe82441d2018-06-12 16:01:33 +030022 """
23 Run tempest tests
24 """
25 tempest_threads = settings.TEMPEST_THREADS
26 tempest_exclude_test_args = settings.TEMPEST_EXCLUDE_TEST_ARGS
27 tempest_pattern = settings.TEMPEST_PATTERN
28 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 target = settings.TEMPEST_TARGET
31 runtest = RuntestManager(
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,
35 tempest_threads=tempest_threads,
36 tempest_exclude_test_args=tempest_exclude_test_args,
37 tempest_pattern=tempest_pattern,
38 target=target)
39 return runtest