Merge "Fix the sample of scenario plugin"
This commit is contained in:
commit
cd24c7e3b1
7
samples/plugins/scenario/scenario_plugin.py
Normal file → Executable file
7
samples/plugins/scenario/scenario_plugin.py
Normal file → Executable file
@ -17,8 +17,8 @@ from rally.plugins.openstack import scenario
|
|||||||
from rally.task import atomic
|
from rally.task import atomic
|
||||||
|
|
||||||
|
|
||||||
class ScenarioPlugin(scenario.OpenStackScenario):
|
@scenario.configure(name="ScenarioPlugin.list_flavors")
|
||||||
"""Sample plugin which lists flavors."""
|
class ListFlavors(scenario.OpenStackScenario):
|
||||||
|
|
||||||
@atomic.action_timer("list_flavors")
|
@atomic.action_timer("list_flavors")
|
||||||
def _list_flavors(self):
|
def _list_flavors(self):
|
||||||
@ -34,8 +34,7 @@ class ScenarioPlugin(scenario.OpenStackScenario):
|
|||||||
"""The same with admin clients."""
|
"""The same with admin clients."""
|
||||||
self.admin_clients("nova").flavors.list()
|
self.admin_clients("nova").flavors.list()
|
||||||
|
|
||||||
@scenario.configure()
|
def run(self):
|
||||||
def list_flavors(self):
|
|
||||||
"""List flavors."""
|
"""List flavors."""
|
||||||
self._list_flavors()
|
self._list_flavors()
|
||||||
self._list_flavors_as_admin()
|
self._list_flavors_as_admin()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user