From c651cb599c74a907a2231e0eb9956c92b197f038 Mon Sep 17 00:00:00 2001 From: Pradeep K Surisetty Date: Mon, 27 Apr 2015 22:55:22 +0530 Subject: [PATCH] Add Ceilometer list samples This scenario covers ceilometer "sample-list" Change-Id: I50c5f957e67a176130d13ac39d23c9eaabee8ee6 --- rally-jobs/rally.yaml | 14 ++++++++++++++ .../scenarios/ceilometer/list-samples.json | 17 +++++++++++++++++ .../scenarios/ceilometer/list-samples.yaml | 11 +++++++++++ tests/unit/fakes.py | 3 +++ 4 files changed, 45 insertions(+) create mode 100644 samples/tasks/scenarios/ceilometer/list-samples.json create mode 100644 samples/tasks/scenarios/ceilometer/list-samples.yaml diff --git a/rally-jobs/rally.yaml b/rally-jobs/rally.yaml index 3a5c1855..9fd5901c 100755 --- a/rally-jobs/rally.yaml +++ b/rally-jobs/rally.yaml @@ -296,6 +296,20 @@ failure_rate: max: 0 + CeilometerSamples.list_samples: + - + runner: + type: "constant" + times: 10 + concurrency: 10 + context: + users: + tenants: 1 + users_per_tenant: 1 + sla: + failure_rate: + max: 0 + Dummy.dummy: - args: diff --git a/samples/tasks/scenarios/ceilometer/list-samples.json b/samples/tasks/scenarios/ceilometer/list-samples.json new file mode 100644 index 00000000..393c8d36 --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/list-samples.json @@ -0,0 +1,17 @@ +{ + "CeilometerSamples.list_samples": [ + { + "runner": { + "type": "constant", + "times": 10, + "concurrency": 2 + }, + "context": { + "users": { + "tenants": 2, + "users_per_tenant": 2 + } + } + } + ] +} diff --git a/samples/tasks/scenarios/ceilometer/list-samples.yaml b/samples/tasks/scenarios/ceilometer/list-samples.yaml new file mode 100644 index 00000000..7c8e053c --- /dev/null +++ b/samples/tasks/scenarios/ceilometer/list-samples.yaml @@ -0,0 +1,11 @@ +--- + CeilometerSamples.list_samples: + - + runner: + type: "constant" + times: 10 + concurrency: 2 + context: + users: + tenants: 2 + users_per_tenant: 2 diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index 8ca214f8..fbd8016a 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -763,6 +763,9 @@ class FakeSampleManager(FakeManager): sample = FakeSample(self, **kwargs) return [self._cache(sample)] + def list(self): + return ["fake-samples"] + class FakeMeterManager(FakeManager):