]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fixup handle_create backup restore.
authorPatrick Woods <woodspa@us.ibm.com>
Thu, 27 Jun 2013 19:44:54 +0000 (14:44 -0500)
committerPatrick Woods <woodspa@us.ibm.com>
Fri, 28 Jun 2013 16:24:07 +0000 (11:24 -0500)
commit40c07c160a857a6800de0d2fade777a322c82612
tree90459b88c1c67d920056d62fff210ec2748a762c
parentda3b5ecfdd0c64805b40ecb535c077f9f0044988
Fixup handle_create backup restore.

The handle_create did not retrieve the volume_id
correctly and the check_create_complete
needs to handle the restoring-backup status.

Also modify and add support for restoring-backup
status test cases for success and error.
The additional FakeVolumeFromBackup will force
the inital status to be checked by the method
check_create_complete in volume.py.

Fix bug 1195403.

Change-Id: I60bf4f9f90be1058d0fb400aa3778d0448b1a898
heat/engine/resources/volume.py
heat/tests/test_volume.py