diff options
| author | Akihiro Motoki <amotoki@gmail.com> | 2017-05-21 03:36:23 +0000 |
|---|---|---|
| committer | Akihiro Motoki <amotoki@gmail.com> | 2017-06-06 01:14:20 +0000 |
| commit | eeb614c47759fa9a01e6d886ed07acceb8d9ff61 (patch) | |
| tree | 962d227b3d2844f8af7a77312bfea5122a1bc8e1 /openstackclient/tests/functional/volume/v3 | |
| parent | c5524c80be4cd3e2443dc9539d1bf21eb3b8e297 (diff) | |
| download | python-openstackclient-eeb614c47759fa9a01e6d886ed07acceb8d9ff61.tar.gz | |
volume functest: ensure snapshots deleted when volume delete
Deleting snapshot may take time. The current volume API does not allow
to delete volumes with snapshots, so if deleting snapshot may take time,
a delete request for a parent volume will fail.
This sometimes causes functional test failures in slow environments.
wait_for_status() checks whether volume status is in error statuses
but previously the expected error status was wrong. Cinder API uses
lower case as volume status, so it did not work expectedly.
Change-Id: I095894ba39f23bf81d71351818d24dbb5ca459fb
Diffstat (limited to 'openstackclient/tests/functional/volume/v3')
| -rw-r--r-- | openstackclient/tests/functional/volume/v3/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/tests/functional/volume/v3/common.py b/openstackclient/tests/functional/volume/v3/common.py index 57a62df6..bc8befa6 100644 --- a/openstackclient/tests/functional/volume/v3/common.py +++ b/openstackclient/tests/functional/volume/v3/common.py @@ -12,10 +12,10 @@ import os -from openstackclient.tests.functional import base +from openstackclient.tests.functional.volume import base -class BaseVolumeTests(base.TestCase): +class BaseVolumeTests(base.BaseVolumeTests): """Base class for Volume functional tests. """ @classmethod |
