glanceclient tests for invalid endpoints are failing

Bug #1504360 reported by Wayne
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance Client
Invalid
Undecided
Wayne

Bug Description

The glanceclient.test.unit.v1.test_shell.ShellInvalidEndpointandParameterTest.test_xxx_invalid_endpoint tests fail with
the following type of message:
  File "glanceclient/tests/unit/v1/test_shell.py", line xxx, in test_blah_invalid_endpoint
    self.run_command, "blah"')
  File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
<exerpt>
  File "glanceclient/common/http.py", line 257, in _request
    raise exc.InvalidEndpoint(message=message)
glanceclient.exc.InvalidEndpoint: Error communicating with http://is.invalid/v1/images: HTTPConnectionPool(host='is.invalid', port=80): Max retries exceeded with url: /v1/images (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f8b823ae9d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

The test asserts that exc.CommunicationError will be raised, but, instead an InvalidEndpoint is raised.

Wayne (wayne-okuma)
Changed in python-glanceclient:
assignee: nobody → Wayne (wayne-okuma)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/232831

Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-glanceclient (master)

Change abandoned by Glance Bot (<email address hidden>) on branch: master
Review: https://review.openstack.org/232831

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I'm also seeing a number of TypeError failures in the invalid endpoint tests: http://paste.ubuntu.com/14536917/

Revision history for this message
Ian Cordasco (icordasc) wrote :

These tests are no longer failing. This appears to now be invalid.

Changed in python-glanceclient:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.