From f533dca520127446f2769b88f239799336954833 Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Mon, 10 Jan 2022 19:43:04 +0100 Subject: [PATCH] Fix volume set functional test Sometimes it can happen that when extending a volume it is shown as status "extending" with the original size for a while. Wait for the volume to enter state "available" again before checking the result. Signed-off-by: Dr. Jens Harbott Change-Id: Ib70cfa1c241ce94426214c7a05c550213f427caa --- openstackclient/tests/functional/volume/v3/test_volume.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstackclient/tests/functional/volume/v3/test_volume.py b/openstackclient/tests/functional/volume/v3/test_volume.py index 6635167dbd..c1b45e2ff7 100644 --- a/openstackclient/tests/functional/volume/v3/test_volume.py +++ b/openstackclient/tests/functional/volume/v3/test_volume.py @@ -152,6 +152,7 @@ class VolumeTests(common.BaseVolumeTests): name, ) self.assertOutput('', raw_output) + self.wait_for_status("volume", new_name, "available") cmd_output = json.loads(self.openstack( 'volume show -f json ' +