diff --git a/rally-jobs/rally.yaml b/rally-jobs/rally.yaml index 2d95065b..6efcb798 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):