From 84fbfccc54e3dbdfa299bf81c8c6b9ed55840d9f Mon Sep 17 00:00:00 2001 From: kairat_kushaev Date: Fri, 6 Feb 2015 18:57:42 +0300 Subject: [PATCH] Add list-stack-with-resources scenario Added scenario that allows to test list_resources(stack) command in Heat. In addition, added samples and unittest for the scenario. Change-Id: I05c8dd12807756d35191a79820f3ff9ec0ab35ac --- rally-jobs/rally.yaml | 17 +++++++++++++++ .../heat/list-stack-and-resources.json | 21 +++++++++++++++++++ .../heat/list-stack-and-resources.yaml | 14 +++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 samples/tasks/scenarios/heat/list-stack-and-resources.json create mode 100644 samples/tasks/scenarios/heat/list-stack-and-resources.yaml diff --git a/rally-jobs/rally.yaml b/rally-jobs/rally.yaml index 135cb2de..906b722a 100755 --- a/rally-jobs/rally.yaml +++ b/rally-jobs/rally.yaml @@ -585,6 +585,23 @@ failure_rate: max: 0 + HeatStacks.list_stacks_and_resources: + - + runner: + type: "constant" + times: 6 + concurrency: 3 + context: + users: + tenants: 2 + users_per_tenant: 3 + stacks: + stacks_per_tenant: 2 + resources_per_stack: 10 + sla: + failure_rate: + max: 0 + Authenticate.keystone: - runner: diff --git a/samples/tasks/scenarios/heat/list-stack-and-resources.json b/samples/tasks/scenarios/heat/list-stack-and-resources.json new file mode 100644 index 00000000..a1d1485a --- /dev/null +++ b/samples/tasks/scenarios/heat/list-stack-and-resources.json @@ -0,0 +1,21 @@ +{ + "HeatStacks.list_stacks_and_resources": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 1 + }, + "context": { + "users": { + "tenants": 1, + "users_per_tenant": 1 + }, + "stacks": { + "stacks_per_tenant": 2, + "resources_per_stack": 10 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/heat/list-stack-and-resources.yaml b/samples/tasks/scenarios/heat/list-stack-and-resources.yaml new file mode 100644 index 00000000..1ff45c7d --- /dev/null +++ b/samples/tasks/scenarios/heat/list-stack-and-resources.yaml @@ -0,0 +1,14 @@ +--- + HeatStacks.list_stacks_and_resources: + - + runner: + type: "constant" + times: 10 + concurrency: 1 + context: + users: + tenants: 1 + users_per_tenant: 1 + stacks: + stacks_per_tenant: 2 + resources_per_stack: 10 \ No newline at end of file