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
This commit is contained in:
parent
c52f111a98
commit
8af0804819
@ -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"]:
|
||||
|
Loading…
Reference in New Issue
Block a user