]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Adds create_from_volume test cases
authorxiaoxi_chen <xiaoxi.chen@intel.com>
Thu, 20 Jun 2013 16:56:38 +0000 (00:56 +0800)
committerxiaoxi_chen <xiaoxi.chen@intel.com>
Fri, 21 Jun 2013 22:10:26 +0000 (06:10 +0800)
commitc6ffb35fc435dc625d7afe931a32f859d82821ae
treee83b3578ceef472cdc476cf566c054ff4a0ee8b1
parent66c158fb086a546e1e3a339d416ade3ecf3ae669
Adds create_from_volume test cases

  For tests.test_volumes,
  added 3 test cases:
     create_from_volume
     create_from_volume_with_glance_metadata
     create_from_volume_failed_on_cloning
  refactored an internal api:
     _create_volume_from_image

  The reason not to test a non-exist volume as source_vol is
  the uplayer(volume api) has already checked and ensured the
  source_vol exists

Change-Id: I9c345bc29cae31f1a22236a4849f13d7289ea49e
cinder/tests/test_volume.py