Merge "Add Ceilometer list samples"
This commit is contained in:
commit
1638e42ded
@ -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:
|
||||
|
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)
|
||||
return [self._cache(sample)]
|
||||
|
||||
def list(self):
|
||||
return ["fake-samples"]
|
||||
|
||||
|
||||
class FakeMeterManager(FakeManager):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user