]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Unit test refactoring (image to vol - 2/2)
authorVipin Balachandran <vbala@vmware.com>
Tue, 24 Nov 2015 12:04:12 +0000 (17:34 +0530)
committerVipin Balachandran <vbala@vmware.com>
Wed, 2 Dec 2015 12:49:21 +0000 (18:19 +0530)
commit03c71fb620f1f504315ddaee2b252887628b85d6
treec1f190901d500174b6fcb35419b8369113397bd3
parentc09770af672ebc482fc488f5922bb1bcc0f81679
VMware: Unit test refactoring (image to vol - 2/2)

There are cases where a single test tests multiple methods. This
patch refactors the unit tests for the following methods in the
vmdk module to fix this issue:
   * _create_virtual_disk_from_preallocated_image
   * _create_virtual_disk_from_sparse_image
   * _fetch_stream_optimized_image

There will be follow-up patches to fix the remaining unit tests.

Change-Id: I6b738f08b89e518c78a26a934fead42cc86e0c24
Depends-On: Icd2c3d506647b7b9405d83612433fea735d13cc9
cinder/tests/unit/test_vmware_vmdk.py