Volume backup functional test tweak
Waiting for status in all the wrong places... Change-Id: I531ee6e0c00b623c6fd30d40df1f1f36bf86233f Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
parent
c684fd926a
commit
589026cdd4
@ -39,14 +39,15 @@ class VolumeBackupTests(common.BaseVolumeTests):
|
|||||||
'--size 1 ' +
|
'--size 1 ' +
|
||||||
vol_id
|
vol_id
|
||||||
))
|
))
|
||||||
|
self.wait_for_status("volume", vol_id, "available")
|
||||||
|
|
||||||
# create a backup
|
# create a backup
|
||||||
backup = json.loads(self.openstack(
|
backup = json.loads(self.openstack(
|
||||||
'volume backup create -f json ' +
|
'volume backup create -f json ' +
|
||||||
vol_id
|
vol_id
|
||||||
))
|
))
|
||||||
|
|
||||||
self.wait_for_status("volume", vol_id, "available")
|
|
||||||
self.wait_for_status("backup", backup['id'], "available")
|
self.wait_for_status("backup", backup['id'], "available")
|
||||||
|
|
||||||
# restore the backup
|
# restore the backup
|
||||||
backup_restored = json.loads(self.openstack(
|
backup_restored = json.loads(self.openstack(
|
||||||
'volume backup restore -f json %s %s'
|
'volume backup restore -f json %s %s'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user