summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/volume
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2017-04-28 14:25:00 -0500
committerDean Troyer <dtroyer@gmail.com>2017-04-28 16:06:00 -0500
commit2c5405ed5e69eb5b000d47d92e1019b8bb9b54f9 (patch)
tree5cbb527098cf1c74539874b6e65cdf5fe3426384 /openstackclient/tests/functional/volume
parentdd7da49325e3b4bc430b8a3d46ae19e43491c3b5 (diff)
downloadpython-openstackclient-2c5405ed5e69eb5b000d47d92e1019b8bb9b54f9.tar.gz
Fix volume qos spec list
This has been sporadically failing in functional tests due to the way the volume qos spec list command calls get_associations() for each spec. When tests run in parallel occasionally a spec from another test is present in the list returned and is deleted before the get_associations() call is made, causing a NotFound exception. We should just keep going when this occurs. * make v1 match v2 * add tests to ensure the exception is being caught and handled Closes-Bug: #1687083 Change-Id: If2d17c1deb53d293fc2c7f0c527a4e4ef6f69976
Diffstat (limited to 'openstackclient/tests/functional/volume')
-rw-r--r--openstackclient/tests/functional/volume/v3/test_qos.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/tests/functional/volume/v3/test_qos.py b/openstackclient/tests/functional/volume/v3/test_qos.py
index 46965ced..a7af3c5b 100644
--- a/openstackclient/tests/functional/volume/v3/test_qos.py
+++ b/openstackclient/tests/functional/volume/v3/test_qos.py
@@ -10,9 +10,10 @@
# License for the specific language governing permissions and limitations
# under the License.
-from openstackclient.tests.functional.volume.v2 import test_qos as v2
import os
+from openstackclient.tests.functional.volume.v2 import test_qos as v2
+
class QosTests(v2.QosTests):
"""Functional tests for volume qos. """