blob: 45e828a31aa7814ed0a0d1c64ce4827b7d137660 [file] [log] [blame]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03001# Copyright 2016 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
16
17from tcp_tests.managers import rallymanager
18
19
20@pytest.fixture(scope='function')
21def rally(underlay):
22 """Fixture that provides various actions for TCP
23
24 :param config: fixture provides oslo.config
25 :param underlay: fixture provides underlay manager
26 :rtype: RallyManager
27
28 For use in tests or fixtures to deploy a custom TCP
29 """
30 return rallymanager.RallyManager(underlay, 'cfg01')