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:
Dean Troyer 2019-04-02 08:36:33 -05:00
parent c684fd926a
commit 589026cdd4
1 changed files with 3 additions and 2 deletions

View File

@ -39,14 +39,15 @@ class VolumeBackupTests(common.BaseVolumeTests):
'--size 1 ' +
vol_id
))
self.wait_for_status("volume", vol_id, "available")
# create a backup
backup = json.loads(self.openstack(
'volume backup create -f json ' +
vol_id
))
self.wait_for_status("volume", vol_id, "available")
self.wait_for_status("backup", backup['id'], "available")
# restore the backup
backup_restored = json.loads(self.openstack(
'volume backup restore -f json %s %s'