← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1437519] Re: test_new_websocket_client test case fail on Ubuntu 12.04 host

 

*** This bug is a duplicate of bug 1376078 ***
    https://bugs.launchpad.net/bugs/1376078

** This bug has been marked a duplicate of bug 1376078
   NovaProxyRequestHandlerBaseTestCase fails on python < 2.7.4 due to urlparse bug

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1437519

Title:
  test_new_websocket_client test case fail on Ubuntu 12.04 host

Status in OpenStack Compute (Nova):
  New

Bug description:
  `test_new_websocket_client` and
  `test_new_websocket_client_token_invalid` cases always fail on Ubuntu
  12.04 host.

  ======================================================================
  FAIL: nova.tests.console.test_websocketproxy.NovaProxyRequestHandlerBaseTestCase.test_new_websocket_client
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  testtools.testresult.real._StringException: Empty attachments:
    stderr
    stdout

  <snippet>

  Traceback (most recent call last):
    File "/home/work/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
      return func(*args, **keywargs)
    File "/home/work/nova/nova/tests/console/test_websocketproxy.py", line 46, in test_new_websocket_client
      check_token.assert_called_with(mock.ANY, token="123-456-789")
    File "/home/work/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 835, in assert_called_with
      raise AssertionError(msg)
  AssertionError: Expected call: check_token(<ANY>, token='123-456-789')
  Actual call: check_token(<nova.context.RequestContext object at 0x8b2e090>, token='')

  ======================================================================
  FAIL: nova.tests.console.test_websocketproxy.NovaProxyRequestHandlerBaseTestCase.test_new_websocket_client_token_invalid
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  testtools.testresult.real._StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/home/work/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
      return func(*args, **keywargs)
    File "/home/work/nova/nova/tests/console/test_websocketproxy.py", line 57, in test_new_websocket_client_token_invalid
      check_token.assert_called_with(mock.ANY, token="XXX")
    File "/home/work/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 835, in assert_called_with
      raise AssertionError(msg)
  AssertionError: Expected call: check_token(<ANY>, token='XXX')
  Actual call: check_token(<nova.context.RequestContext object at 0x64dcc50>, token='')

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


References