Overlap volume and server creation in backup
This overlaps the creation of the volume and the server in the test
for backup-with-attached.
Change-Id: I65508cf1d99e9d42a045ef01a45fdb1cc313df3f
diff --git a/tempest/api/volume/test_volumes_backup.py b/tempest/api/volume/test_volumes_backup.py
index 85e4bb2..89ff497 100644
--- a/tempest/api/volume/test_volumes_backup.py
+++ b/tempest/api/volume/test_volumes_backup.py
@@ -116,7 +116,7 @@
is "available" or "in-use".
"""
# Create a server
- volume = self.create_volume()
+ volume = self.create_volume(wait_until=False)
self.addCleanup(self.delete_volume, self.volumes_client, volume['id'])
validation_resources = self.get_test_validation_resources(
self.os_primary)
@@ -124,6 +124,8 @@
validation_resources=validation_resources,
validatable=True)
# Attach volume to instance
+ waiters.wait_for_volume_resource_status(self.volumes_client,
+ volume['id'], 'available')
self.attach_volume(server['id'], volume['id'])
# Create backup using force flag
backup_name = data_utils.rand_name(