Add Ceilometer list samples
This scenario covers ceilometer "sample-list" Change-Id: I50c5f957e67a176130d13ac39d23c9eaabee8ee6
This commit is contained in:
parent
2e0f7ac084
commit
c651cb599c
@ -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:
|
||||||
|
17
samples/tasks/scenarios/ceilometer/list-samples.json
Normal file
17
samples/tasks/scenarios/ceilometer/list-samples.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"CeilometerSamples.list_samples": [
|
||||||
|
{
|
||||||
|
"runner": {
|
||||||
|
"type": "constant",
|
||||||
|
"times": 10,
|
||||||
|
"concurrency": 2
|
||||||
|
},
|
||||||
|
"context": {
|
||||||
|
"users": {
|
||||||
|
"tenants": 2,
|
||||||
|
"users_per_tenant": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
11
samples/tasks/scenarios/ceilometer/list-samples.yaml
Normal file
11
samples/tasks/scenarios/ceilometer/list-samples.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
CeilometerSamples.list_samples:
|
||||||
|
-
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: 10
|
||||||
|
concurrency: 2
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 2
|
||||||
|
users_per_tenant: 2
|
@ -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):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user