← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1691805] [NEW] functional pecan tests fail with old Routes (< 2.3.0)

 

Public bug reported:

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

** Affects: neutron
     Importance: Low
     Assignee: Ihar Hrachyshka (ihar-hrachyshka)
         Status: In Progress


** Tags: functional-tests

** Changed in: neutron
   Importance: Undecided => Low

** Changed in: neutron
     Assignee: (unassigned) => Ihar Hrachyshka (ihar-hrachyshka)

** Changed in: neutron
       Status: New => In Progress

** Tags added: functional-tests

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1691805

Title:
  functional pecan tests fail with old Routes (< 2.3.0)

Status in neutron:
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1691805/+subscriptions


Follow ups