From dc50c0775e44593f7506e66c482942fd1ecc40d9 Mon Sep 17 00:00:00 2001 From: Spyros Trigazis Date: Mon, 11 Apr 2016 16:45:06 +0200 Subject: [PATCH] [Magnum] Add Magnum client to Rally Change-Id: I9553590ae7d35c0a9a4da2af4ddda3647215d1e4 Partially-Implements: bp benchmark-scenarios-for-magnum --- rally/consts.py | 3 +++ tests/unit/fakes.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/rally/consts.py b/rally/consts.py index dd27240d..24b1784f 100644 --- a/rally/consts.py +++ b/rally/consts.py @@ -112,6 +112,7 @@ class _Service(utils.ImmutableMixin, utils.EnumMixin): MURANO = "murano" IRONIC = "ironic" GNOCCHI = "gnocchi" + MAGNUM = "magnum" class _ServiceType(utils.ImmutableMixin, utils.EnumMixin): @@ -139,6 +140,7 @@ class _ServiceType(utils.ImmutableMixin, utils.EnumMixin): APPLICATION_CATALOG = "application-catalog" BARE_METAL = "baremetal" METRIC = "metric" + CONTAINER = "container" def __init__(self): self.__names = { @@ -164,6 +166,7 @@ class _ServiceType(utils.ImmutableMixin, utils.EnumMixin): self.APPLICATION_CATALOG: _Service.MURANO, self.BARE_METAL: _Service.IRONIC, self.METRIC: _Service.GNOCCHI, + self.CONTAINER: _Service.MAGNUM, } def __getitem__(self, service_type): diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index 494451c2..9ef3c2c6 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -1487,6 +1487,12 @@ class FakeSenlinClient(object): pass +class FakeMagnumClient(object): + + def __init__(self): + pass + + class FakeClients(object): def __init__(self, credential_=None):