Add list_volumes scenario for Cinder test

Current Rally provides "create_and_list_volume" scenario, but doesn't
provide "list_volumes". User can specify number of volumes which will
be created in context.

Change-Id: I700282388b839d735448850e0629a0a37ab781f1
This commit is contained in:
Wataru Takase 2014-12-17 17:50:49 +01:00
parent a5a6dc28bc
commit 11623b10c9
2 changed files with 22 additions and 1 deletions

View File

@ -600,6 +600,25 @@
failure_rate: failure_rate:
max: 0 max: 0
CinderVolumes.list_volumes:
-
args:
detailed: True
runner:
type: "constant"
times: 3
concurrency: 3
context:
users:
tenants: 2
users_per_tenant: 1
volumes:
size: 1
volumes_per_tenant: 2
sla:
failure_rate:
max: 0
CinderVolumes.create_volume: CinderVolumes.create_volume:
- -
args: args:

View File

@ -221,7 +221,9 @@ class FakeSample(FakeResource):
class FakeVolume(FakeResource): class FakeVolume(FakeResource):
pass @property
def _info(self):
return {"id": "uuid"}
class FakeVolumeType(FakeResource): class FakeVolumeType(FakeResource):