]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add kwargs to create_volume in tests/utils.py
authorJulia Varlamova <jvarlamova@mirantis.com>
Thu, 29 Aug 2013 07:41:34 +0000 (11:41 +0400)
committerJulia Varlamova <jvarlamova@mirantis.com>
Thu, 29 Aug 2013 08:17:15 +0000 (12:17 +0400)
commit091a35080fe63fc7b83de883e8e07e406007f257
treecbe6751dc1e27334a84316baf3eb6ca5033b84d4
parent034db09b9c7a29ce351896c75a332087fd2e7ec3
Add kwargs to create_volume in tests/utils.py

Add availability_zone parameter and kwargs to make create_volume
function more flexible in order to use this function in
unit tests.
The goal is to remove inner _create_volume function in:
- db/test_transfers.py
- api/contrib/test_backups.py
- test_gpfs.py
- test_volume_transfer.py
- test_volume.py
and to use create_volume from tests/utils instead.

Change-Id: I2d9456ff3ff1cd945042f19c47e40f9f0ec0fe8a
cinder/tests/utils.py