Merge "Add Ceilometer list samples"

This commit is contained in:
Jenkins 2015-04-29 15:22:38 +00:00 committed by Gerrit Code Review
commit 1638e42ded
4 changed files with 45 additions and 0 deletions

View File

@ -296,6 +296,20 @@
failure_rate: failure_rate:
max: 0 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: Dummy.dummy:
- -
args: args:

View File

@ -0,0 +1,17 @@
{
"CeilometerSamples.list_samples": [
{
"runner": {
"type": "constant",
"times": 10,
"concurrency": 2
},
"context": {
"users": {
"tenants": 2,
"users_per_tenant": 2
}
}
}
]
}

View File

@ -0,0 +1,11 @@
---
CeilometerSamples.list_samples:
-
runner:
type: "constant"
times: 10
concurrency: 2
context:
users:
tenants: 2
users_per_tenant: 2

View File

@ -763,6 +763,9 @@ class FakeSampleManager(FakeManager):
sample = FakeSample(self, **kwargs) sample = FakeSample(self, **kwargs)
return [self._cache(sample)] return [self._cache(sample)]
def list(self):
return ["fake-samples"]
class FakeMeterManager(FakeManager): class FakeMeterManager(FakeManager):