Change file loading mechanism for heat tests

Improve file loading mechanism for heat tests. Previously,
heat tests loaded template files for every tests. "types.set"
allows to exclude redundant file operations from tests.
In addition, the unit tests for heat rally-scenarios were updated
and mocking of CONF.benchmark was excluded from unit-tests.

Change-Id: Ibdace7bf96ff822701ee8505f1dcd232999a6fe8
This commit is contained in:
kairat_kushaev 2015-04-28 17:16:20 +03:00
parent 92cef8ebb8
commit 46b89bbe48
7 changed files with 16 additions and 0 deletions

View File

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

View File

@ -571,6 +571,8 @@
HeatStacks.create_and_list_stack:
-
args:
template_path: "/home/jenkins/.rally/extra/default.yaml.template"
runner:
type: "constant"
times: 6
@ -585,6 +587,8 @@
HeatStacks.create_and_delete_stack:
-
args:
template_path: "/home/jenkins/.rally/extra/default.yaml.template"
runner:
type: "constant"
times: 6

View File

@ -1,6 +1,9 @@
{
"HeatStacks.create_and_delete_stack": [
{
"args": {
"template_path": "templates/default.yaml.template"
},
"runner": {
"type": "constant",
"times": 10,

View File

@ -1,6 +1,8 @@
---
HeatStacks.create_and_delete_stack:
-
args:
template_path: "templates/default.yaml.template"
runner:
type: "constant"
times: 10

View File

@ -1,6 +1,9 @@
{
"HeatStacks.create_and_list_stack": [
{
"args": {
"template_path": "templates/default.yaml.template"
},
"runner": {
"type": "constant",
"times": 10,

View File

@ -1,6 +1,8 @@
---
HeatStacks.create_and_list_stack:
-
args:
template_path: "templates/default.yaml.template"
runner:
type: "constant"
times: 10

View File

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