← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1434696] Re: test_new_websocket_client_token_invalid uses improper header

 

** Changed in: nova
       Status: Confirmed => Invalid

-- 
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/1434696

Title:
  test_new_websocket_client_token_invalid uses improper header

Status in OpenStack Compute (nova):
  Invalid
Status in OpenStack Compute (nova) juno series:
  Fix Released

Bug description:
  Line 126:
  self.wh.headers.getheader = self._fake_getheader
  should read:
  self.wh.headers.getheader = self._fake_getheader_bad_token

   Traceback (most recent call last):
        File "/home/jenkins/jobs/nova-juno-os-package/workspace/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
          return func(*args, **keywargs)
        File "/home/jenkins/jobs/nova-juno-os-package/workspace/nova/tests/console/test_websocketproxy.py", line 129, in test_new_websocket_client_token_invalid
          check_token.assert_called_with(mock.ANY, token="XXX")
        File "/home/jenkins/jobs/nova-juno-os-package/workspace/.tox/py27/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 0x7a8dad0>, token='123-456-789')
      Traceback (most recent call last):
      _StringException: Empty attachments:
        pythonlogging:''
        stderr
        stdout

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


References