diff options
author | Dr. Jens Harbott <harbott@osism.tech> | 2022-01-10 19:43:04 +0100 |
---|---|---|
committer | Dr. Jens Harbott <harbott@osism.tech> | 2022-01-11 07:24:48 +0100 |
commit | f533dca520127446f2769b88f239799336954833 (patch) | |
tree | 0fd1361eeaad148ac951a59e1adcd97cf3a5a1e2 | |
parent | b79c0b6cfbd1b32490722171b38771121561cff4 (diff) | |
download | python-openstackclient-f533dca520127446f2769b88f239799336954833.tar.gz |
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 <harbott@osism.tech>
Change-Id: Ib70cfa1c241ce94426214c7a05c550213f427caa
-rw-r--r-- | openstackclient/tests/functional/volume/v3/test_volume.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/tests/functional/volume/v3/test_volume.py b/openstackclient/tests/functional/volume/v3/test_volume.py index 6635167d..c1b45e2f 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 ' + |