summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-02-23 09:14:53 +0000
committerGerrit Code Review <review@openstack.org>2023-02-23 09:14:53 +0000
commit34d65305b62f8915f4558ee3f0fca3598ed954d6 (patch)
tree3bea5b75ec82b8569fa2924a1b1baf71bbe1beeb
parentf72a8ae998fb1cdf472ac08a6231978e4e1df4e2 (diff)
parentd2d34f5017042c7bfa5a5f60776481501bef4101 (diff)
downloadtempest-34d65305b62f8915f4558ee3f0fca3598ed954d6.tar.gz
Merge "Change order of server/volume in snapshot test"
-rw-r--r--tempest/api/volume/test_volumes_snapshots.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tempest/api/volume/test_volumes_snapshots.py b/tempest/api/volume/test_volumes_snapshots.py
index b3a04f8e1..c6cef69f2 100644
--- a/tempest/api/volume/test_volumes_snapshots.py
+++ b/tempest/api/volume/test_volumes_snapshots.py
@@ -44,11 +44,13 @@ class VolumesSnapshotTestJSON(base.BaseVolumeTest):
@utils.services('compute')
def test_snapshot_create_delete_with_volume_in_use(self):
"""Test create/delete snapshot from volume attached to server"""
- # Create a test instance
- server = self.create_server(wait_until='SSHABLE')
# NOTE(zhufl) Here we create volume from self.image_ref for adding
# coverage for "creating snapshot from non-blank volume".
volume = self.create_volume(imageRef=self.image_ref)
+
+ # Create a test instance
+ server = self.create_server(wait_until='SSHABLE')
+
self.attach_volume(server['id'], volume['id'])
# Snapshot a volume which attached to an instance with force=False