[Scenario] Split scenarios - P1

Move dummy under plugins/common

Implements: blueprint split-plugins

Change-Id: I7fdc27ca48adc2678e76e96cccdc15e5f4274287
This commit is contained in:
Yair Fried 2015-05-17 15:17:56 +03:00
parent d5161001d4
commit 55c3fcebd4
8 changed files with 5 additions and 5 deletions

View File

@ -20,10 +20,10 @@ import six
from rally.benchmark.context import base as base_ctx from rally.benchmark.context import base as base_ctx
from rally.benchmark.scenarios import base from rally.benchmark.scenarios import base
from rally.benchmark.scenarios.dummy import dummy
from rally.benchmark import validation from rally.benchmark import validation
from rally import consts from rally import consts
from rally import exceptions from rally import exceptions
from rally.plugins.common.scenarios.dummy import dummy
from tests.unit import fakes from tests.unit import fakes
from tests.unit import test from tests.unit import test

View File

@ -16,7 +16,6 @@
import mock import mock
from rally.benchmark.scenarios import base as scenario_base 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.benchmark.sla import base as sla_base
from rally.cmd.commands import info from rally.cmd.commands import info
from rally import deploy 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 import serverprovider
from rally.deploy.serverprovider.providers import existing as existing_servers from rally.deploy.serverprovider.providers import existing as existing_servers
from rally import exceptions from rally import exceptions
from rally.plugins.common.scenarios.dummy import dummy
from rally.plugins.common.sla import failure_rate from rally.plugins.common.sla import failure_rate
from tests.unit import test from tests.unit import test

View File

@ -13,13 +13,13 @@
import mock import mock
from rally.benchmark.scenarios.dummy import dummy from rally.plugins.common.scenarios.dummy import dummy
from tests.unit import test from tests.unit import test
class DummyTestCase(test.TestCase): 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): def test_dummy(self, mock_sleep):
scenario = dummy.Dummy() scenario = dummy.Dummy()
scenario.sleep_between = mock.MagicMock() scenario.sleep_between = mock.MagicMock()
@ -29,7 +29,7 @@ class DummyTestCase(test.TestCase):
scenario.dummy(sleep=10) scenario.dummy(sleep=10)
mock_sleep.sleep.assert_called_once_with(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): def test_dummy_exception(self, mock_sleep):
scenario = dummy.Dummy() scenario = dummy.Dummy()