[Scenario] Split scenarios - P1
Move dummy under plugins/common Implements: blueprint split-plugins Change-Id: I7fdc27ca48adc2678e76e96cccdc15e5f4274287
This commit is contained in:
parent
d5161001d4
commit
55c3fcebd4
@ -20,10 +20,10 @@ import six
|
||||
|
||||
from rally.benchmark.context import base as base_ctx
|
||||
from rally.benchmark.scenarios import base
|
||||
from rally.benchmark.scenarios.dummy import dummy
|
||||
from rally.benchmark import validation
|
||||
from rally import consts
|
||||
from rally import exceptions
|
||||
from rally.plugins.common.scenarios.dummy import dummy
|
||||
from tests.unit import fakes
|
||||
from tests.unit import test
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
import mock
|
||||
|
||||
from rally.benchmark.scenarios import base as scenario_base
|
||||
from rally.benchmark.scenarios.dummy import dummy
|
||||
from rally.benchmark.sla import base as sla_base
|
||||
from rally.cmd.commands import info
|
||||
from rally import deploy
|
||||
@ -24,6 +23,7 @@ from rally.deploy.engines import existing as existing_cloud
|
||||
from rally.deploy import serverprovider
|
||||
from rally.deploy.serverprovider.providers import existing as existing_servers
|
||||
from rally import exceptions
|
||||
from rally.plugins.common.scenarios.dummy import dummy
|
||||
from rally.plugins.common.sla import failure_rate
|
||||
from tests.unit import test
|
||||
|
||||
|
0
tests/unit/plugins/common/scenarios/__init__.py
Normal file
0
tests/unit/plugins/common/scenarios/__init__.py
Normal file
@ -13,13 +13,13 @@
|
||||
|
||||
import mock
|
||||
|
||||
from rally.benchmark.scenarios.dummy import dummy
|
||||
from rally.plugins.common.scenarios.dummy import dummy
|
||||
from tests.unit import test
|
||||
|
||||
|
||||
class DummyTestCase(test.TestCase):
|
||||
|
||||
@mock.patch("rally.benchmark.scenarios.dummy.dummy.time")
|
||||
@mock.patch("rally.plugins.common.scenarios.dummy.dummy.time")
|
||||
def test_dummy(self, mock_sleep):
|
||||
scenario = dummy.Dummy()
|
||||
scenario.sleep_between = mock.MagicMock()
|
||||
@ -29,7 +29,7 @@ class DummyTestCase(test.TestCase):
|
||||
scenario.dummy(sleep=10)
|
||||
mock_sleep.sleep.assert_called_once_with(10)
|
||||
|
||||
@mock.patch("rally.benchmark.scenarios.dummy.dummy.time")
|
||||
@mock.patch("rally.plugins.common.scenarios.dummy.dummy.time")
|
||||
def test_dummy_exception(self, mock_sleep):
|
||||
scenario = dummy.Dummy()
|
||||
|
Loading…
Reference in New Issue
Block a user