functional pecan tests fail with old Routes (< 2.3.0)

Bug #1691805 reported by Ihar Hrachyshka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Ihar Hrachyshka

Bug Description

Several neutron functional tests are failing when Routes is <2.3.0. Specifically the pecan_wsgi.test_controllers.

Tests:
neutron.tests.functional.pecan_wsgi.test_controllers.TestRouterController.test_methods
neutron.tests.functional.pecan_wsgi.test_controllers.TestV2Controller.test_get_no_trailing_slash
neutron.tests.functional.pecan_wsgi.test_controllers.TestResourceController.test_methods

Failure:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/oslo_middleware/catch_errors.py", line 40, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1316, in send
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/site-packages/webob/request.py", line 1280, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/site-packages/webob/dec.py", line 145, in __call__
    return resp(environ, start_response)
  File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 80, in __call__
    config.environ = environ
  File "/usr/lib/python2.7/site-packages/routes/__init__.py", line 22, in __setattr__
    self.load_wsgi_environ(value)
  File "/usr/lib/python2.7/site-packages/routes/__init__.py", line 51, in load_wsgi_environ
    result = mapper.routematch(path)
  File "/usr/lib/python2.7/site-packages/routes/mapper.py", line 688, in routematch
    raise RoutesException('URL or environ must be provided')
RoutesException: URL or environ must be provided
}}}

Traceback (most recent call last):
  File "neutron/tests/base.py", line 115, in func
    return f(self, *args, **kwargs)
  File "neutron/tests/functional/pecan_wsgi/test_controllers.py", line 110, in test_get_no_trailing_slash
    self.assertEqual(response.status_int, 404)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 500 != 404

Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

global-requirements bump: https://review.openstack.org/466055

Changed in neutron:
importance: Undecided → Low
assignee: nobody → Ihar Hrachyshka (ihar-hrachyshka)
status: New → In Progress
tags: added: functional-tests
Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/requirements 1.1.0

This issue was fixed in the openstack/requirements 1.1.0 release.

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.