From 8af0804819a897943c083dc8891e609c2f5553d7 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Fri, 12 Jun 2015 20:38:55 +0300 Subject: [PATCH] Add rally.common.plugin.discover module Move all related to plugins from utils to discover module and fix the code and tests to make it work Change-Id: Ifaed1fadfa0760f121cb1584cb4d8ae3fee8768d --- tests/unit/rally_jobs/test_jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/rally_jobs/test_jobs.py b/tests/unit/rally_jobs/test_jobs.py index 67b59af0..aeb1fc53 100644 --- a/tests/unit/rally_jobs/test_jobs.py +++ b/tests/unit/rally_jobs/test_jobs.py @@ -20,7 +20,7 @@ import yaml from rally import api from rally.benchmark import engine -import rally.common.utils as rutils +from rally.common.plugin import discover from tests.unit import test @@ -31,7 +31,7 @@ class RallyJobsTestCase(test.TestCase): @mock.patch("rally.benchmark.engine.BenchmarkEngine" "._validate_config_semantic") def test_schema_is_valid(self, mock_validate): - rutils.load_plugins(os.path.join(self.rally_jobs_path, "plugins")) + discover.load_plugins(os.path.join(self.rally_jobs_path, "plugins")) for filename in ["rally.yaml", "rally-neutron.yaml", "rally-zaqar.yaml", "rally-designate.yaml"]: