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
This commit is contained in:
parent
b79c0b6cfb
commit
f533dca520
@ -152,6 +152,7 @@ class VolumeTests(common.BaseVolumeTests):
|
|||||||
name,
|
name,
|
||||||
)
|
)
|
||||||
self.assertOutput('', raw_output)
|
self.assertOutput('', raw_output)
|
||||||
|
self.wait_for_status("volume", new_name, "available")
|
||||||
|
|
||||||
cmd_output = json.loads(self.openstack(
|
cmd_output = json.loads(self.openstack(
|
||||||
'volume show -f json ' +
|
'volume show -f json ' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user