Fix rally internal Heat job

Previous scenarious were obsolete.
This patch adds necessary paramater "template_path".
Also default.yaml template was added for using in this list of scenarios.

Additionally fix wrong import in sample_plugin.py

Change-Id: I31cd295d322d907883a22cddef25b5ccc609f2c1
This commit is contained in:
Sergey Kraynev 2016-01-21 02:09:00 -05:00
parent fe2d05164c
commit 396e1c2075
3 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1 @@
heat_template_version: 2014-10-16

View File

@ -1,6 +1,8 @@
---
HeatStacks.create_and_list_stack:
-
args:
template_path: "~/.rally/extra/default.yaml"
runner:
type: "constant"
times: 2000
@ -12,6 +14,8 @@
HeatStacks.create_and_delete_stack:
-
args:
template_path: "~/.rally/extra/default.yaml"
runner:
type: "constant"
times: 200

View File

@ -24,12 +24,12 @@ Rally concepts https://wiki.openstack.org/wiki/Rally/Concepts
"""
from rally.benchmark.scenarios import base
from rally.plugins.openstack import scenario
class HeatPlugin(base.Scenario):
class HeatPlugin(scenario.OpenStackScenario):
@base.scenario(context={"cleanup": ["heat"]})
@scenario.configure(context={"cleanup": ["heat"]})
def list_benchmark(self, container_format,
image_location, disk_format, **kwargs):
"""Get heatclient and do whatever."""