From e3694c4eafe9b9a660ea9c03fa43dfa35a381d68 Mon Sep 17 00:00:00 2001 From: nayna-patel Date: Fri, 20 Feb 2015 07:58:59 +0000 Subject: [PATCH] Adds Designate server-list scenario This submission adds method to rally/benchmark/scenarios/designate/basic.py 1)def list_servers Added configuration files for server operations under samples/tasks/scenarios/designate 1) list-servers.json 2) list-servers.yaml Also, added unittests to test_basic.py under tests/unit/benchmark/scenarios/designate Change-Id: I948f5e0c8beca963a9d6f1d388ea0410f2d107e3 --- rally-jobs/rally-designate.yaml | 15 +++++++++++++++ .../tasks/scenarios/designate/list-servers.json | 17 +++++++++++++++++ .../tasks/scenarios/designate/list-servers.yaml | 11 +++++++++++ 3 files changed, 43 insertions(+) create mode 100644 samples/tasks/scenarios/designate/list-servers.json create mode 100644 samples/tasks/scenarios/designate/list-servers.yaml diff --git a/rally-jobs/rally-designate.yaml b/rally-jobs/rally-designate.yaml index b25a48cc..bdbe2360 100644 --- a/rally-jobs/rally-designate.yaml +++ b/rally-jobs/rally-designate.yaml @@ -100,3 +100,18 @@ sla: failure_rate: max: 0 + + DesignateBasic.list_servers: + - + runner: + type: "constant" + times: 4 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 + sla: + failure_rate: + max: 0 + diff --git a/samples/tasks/scenarios/designate/list-servers.json b/samples/tasks/scenarios/designate/list-servers.json new file mode 100644 index 00000000..2298de77 --- /dev/null +++ b/samples/tasks/scenarios/designate/list-servers.json @@ -0,0 +1,17 @@ +{ + "DesignateBasic.list_servers": [ + { + "runner": { + "type": "constant", + "times": 3, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/designate/list-servers.yaml b/samples/tasks/scenarios/designate/list-servers.yaml new file mode 100644 index 00000000..2d7780fa --- /dev/null +++ b/samples/tasks/scenarios/designate/list-servers.yaml @@ -0,0 +1,11 @@ +--- + DesignateBasic.list_servers: + - + runner: + type: "constant" + times: 3 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2