Skip to content

Commit 589026c

Browse files
author
Dean Troyer
committed
Volume backup functional test tweak
Waiting for status in all the wrong places... Change-Id: I531ee6e0c00b623c6fd30d40df1f1f36bf86233f Signed-off-by: Dean Troyer <dtroyer@gmail.com>
1 parent c684fd9 commit 589026c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

openstackclient/tests/functional/volume/v2/test_backup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ def test_volume_backup_restore(self):
3939
'--size 1 ' +
4040
vol_id
4141
))
42+
self.wait_for_status("volume", vol_id, "available")
43+
4244
# create a backup
4345
backup = json.loads(self.openstack(
4446
'volume backup create -f json ' +
4547
vol_id
4648
))
47-
48-
self.wait_for_status("volume", vol_id, "available")
4949
self.wait_for_status("backup", backup['id'], "available")
50+
5051
# restore the backup
5152
backup_restored = json.loads(self.openstack(
5253
'volume backup restore -f json %s %s'

0 commit comments

Comments
 (0)