From 4aa186cfdd11259be3ea5b02a95c70f79462a821 Mon Sep 17 00:00:00 2001 From: Renat Akhmerov Date: Wed, 21 Dec 2016 18:38:06 +0700 Subject: [PATCH] Add a test for 'with-items' task: count=100, concurrency=10 Change-Id: I83429edbd59aa00c52ac2e247e7de2c79cb90887 --- .../with_items/count_100_concurrency_10.json | 4 ++++ rally-jobs/extra/scenarios/with_items/wb.yaml | 16 ++++++++++++++++ rally-jobs/task-mistral.yaml | 18 ++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 rally-jobs/extra/scenarios/with_items/count_100_concurrency_10.json create mode 100644 rally-jobs/extra/scenarios/with_items/wb.yaml diff --git a/rally-jobs/extra/scenarios/with_items/count_100_concurrency_10.json b/rally-jobs/extra/scenarios/with_items/count_100_concurrency_10.json new file mode 100644 index 000000000..450d668d4 --- /dev/null +++ b/rally-jobs/extra/scenarios/with_items/count_100_concurrency_10.json @@ -0,0 +1,4 @@ +{ + "count": 100, + "concurrency": 10 +} diff --git a/rally-jobs/extra/scenarios/with_items/wb.yaml b/rally-jobs/extra/scenarios/with_items/wb.yaml new file mode 100644 index 000000000..5d5e916ec --- /dev/null +++ b/rally-jobs/extra/scenarios/with_items/wb.yaml @@ -0,0 +1,16 @@ +--- +version: '2.0' + +name: with_items_wb + +workflows: + wf: + input: + - count: 10 + - concurrency: 0 + + tasks: + task1: + with-items: i in <% range(0, $.count) %> + action: std.echo output=<% $.i %> + concurrency: <% $.concurrency %> diff --git a/rally-jobs/task-mistral.yaml b/rally-jobs/task-mistral.yaml index 254f69806..b149dd2fc 100644 --- a/rally-jobs/task-mistral.yaml +++ b/rally-jobs/task-mistral.yaml @@ -108,6 +108,24 @@ users: tenants: 1 users_per_tenant: 1 + sla: + failure_rate: + max: 0 + + - + args: + definition: "/home/jenkins/.rally/extra/scenarios/with_items/wb.yaml" + params: + "/home/jenkins/.rally/extra/scenarios/with_items/count_100_concurrency_10.json" + do_delete: true + runner: + type: "constant" + times: 20 + concurrency: 5 + context: + users: + tenants: 1 + users_per_tenant: 1 sla: failure_rate: max: 0 \ No newline at end of file