summaryrefslogtreecommitdiff
path: root/openstackclient/tests/volume
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-11 19:40:14 +0000
committerGerrit Code Review <review@openstack.org>2016-07-11 19:40:14 +0000
commit357d7e75f3835aab4606b88fc28234c23a974353 (patch)
treee202aa89877b5b4d4e3f9600b02dd3eec8ecdc7c /openstackclient/tests/volume
parent5636d99a2b540978f8f5cf2da2a920eee11de5a6 (diff)
parent9f09d8c5d43141b683dd6b5258fa94799571a843 (diff)
downloadpython-openstackclient-357d7e75f3835aab4606b88fc28234c23a974353.tar.gz
Merge "Unskip tests caused by bug 1599333"
Diffstat (limited to 'openstackclient/tests/volume')
-rw-r--r--openstackclient/tests/volume/test_find_resource.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/openstackclient/tests/volume/test_find_resource.py b/openstackclient/tests/volume/test_find_resource.py
index 8f29ec34..982b02f0 100644
--- a/openstackclient/tests/volume/test_find_resource.py
+++ b/openstackclient/tests/volume/test_find_resource.py
@@ -19,7 +19,6 @@ from cinderclient.v1 import volume_snapshots
from cinderclient.v1 import volumes
from osc_lib import exceptions
from osc_lib import utils
-import testtools
from openstackclient.tests import utils as test_utils
from openstackclient.volume import client # noqa
@@ -45,16 +44,16 @@ class TestFindResourceVolumes(test_utils.TestCase):
api.client.get = mock.Mock()
resp = mock.Mock()
body = {"volumes": [{"id": ID, 'display_name': NAME}]}
- api.client.get.side_effect = [Exception("Not found"), (resp, body)]
+ api.client.get.side_effect = [Exception("Not found"),
+ Exception("Not found"),
+ (resp, body)]
self.manager = volumes.VolumeManager(api)
- @testtools.skip("skip until bug 1599333 is fixed")
def test_find(self):
result = utils.find_resource(self.manager, NAME)
self.assertEqual(ID, result.id)
self.assertEqual(NAME, result.display_name)
- @testtools.skip("skip until bug 1599333 is fixed")
def test_not_find(self):
self.assertRaises(exceptions.CommandError, utils.find_resource,
self.manager, 'GeorgeMartin')
@@ -69,16 +68,16 @@ class TestFindResourceVolumeSnapshots(test_utils.TestCase):
api.client.get = mock.Mock()
resp = mock.Mock()
body = {"snapshots": [{"id": ID, 'display_name': NAME}]}
- api.client.get.side_effect = [Exception("Not found"), (resp, body)]
+ api.client.get.side_effect = [Exception("Not found"),
+ Exception("Not found"),
+ (resp, body)]
self.manager = volume_snapshots.SnapshotManager(api)
- @testtools.skip("skip until bug 1599333 is fixed")
def test_find(self):
result = utils.find_resource(self.manager, NAME)
self.assertEqual(ID, result.id)
self.assertEqual(NAME, result.display_name)
- @testtools.skip("skip until bug 1599333 is fixed")
def test_not_find(self):
self.assertRaises(exceptions.CommandError, utils.find_resource,
self.manager, 'GeorgeMartin')