Add Ceilometer list samples

This scenario covers ceilometer "sample-list"

Change-Id: I50c5f957e67a176130d13ac39d23c9eaabee8ee6
This commit is contained in:
Pradeep K Surisetty 2015-04-27 22:55:22 +05:30
parent 2e0f7ac084
commit c651cb599c
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):