From 977dc276422dd983a77a80194ab9ffec6d5c090b Mon Sep 17 00:00:00 2001 From: Illia Khudoshyn Date: Wed, 11 Nov 2015 13:39:20 +0000 Subject: [PATCH] Rename BenchmarkEngine to TaskEngine The reame is performed as a part of transition to the new task format. Change-Id: Ieaef03138298ef04f52a8f0da2a87b3664130ec8 --- tests/unit/doc/test_task_samples.py | 6 +++--- tests/unit/rally_jobs/test_jobs.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/doc/test_task_samples.py b/tests/unit/doc/test_task_samples.py index 67f2b921..24cebbd6 100644 --- a/tests/unit/doc/test_task_samples.py +++ b/tests/unit/doc/test_task_samples.py @@ -33,10 +33,10 @@ class TaskSampleTestCase(test.TestCase): os.pardir, os.pardir, os.pardir, "samples", "tasks") - @mock.patch("rally.task.engine.BenchmarkEngine" + @mock.patch("rally.task.engine.TaskEngine" "._validate_config_semantic") def test_schema_is_valid(self, - mock_benchmark_engine__validate_config_semantic): + mock_task_engine__validate_config_semantic): scenarios = set() for dirname, dirnames, filenames in os.walk(self.samples_path): @@ -52,7 +52,7 @@ class TaskSampleTestCase(test.TestCase): try: task_config = yaml.safe_load(api.Task.render_template (task_file.read())) - eng = engine.BenchmarkEngine(task_config, + eng = engine.TaskEngine(task_config, mock.MagicMock()) eng.validate() except Exception: diff --git a/tests/unit/rally_jobs/test_jobs.py b/tests/unit/rally_jobs/test_jobs.py index 94f9b5e3..ea7b7b47 100644 --- a/tests/unit/rally_jobs/test_jobs.py +++ b/tests/unit/rally_jobs/test_jobs.py @@ -28,10 +28,10 @@ class RallyJobsTestCase(test.TestCase): rally_jobs_path = os.path.join( os.path.dirname(__file__), "..", "..", "..", "rally-jobs") - @mock.patch("rally.task.engine.BenchmarkEngine" + @mock.patch("rally.task.engine.TaskEngine" "._validate_config_semantic") def test_schema_is_valid( - self, mock_benchmark_engine__validate_config_semantic): + self, mock_task_engine__validate_config_semantic): discover.load_plugins(os.path.join(self.rally_jobs_path, "plugins")) for filename in ["rally.yaml", "rally-neutron.yaml", @@ -55,7 +55,7 @@ class RallyJobsTestCase(test.TestCase): task = api.Task.render_template(task_file.read(), **args) task = yaml.safe_load(task) - eng = engine.BenchmarkEngine(task, mock.MagicMock()) + eng = engine.TaskEngine(task, mock.MagicMock()) eng.validate() except Exception: print(traceback.format_exc())