yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #30307
[Bug 1434696] [NEW] test_new_websocket_client_token_invalid uses improper header
Public bug reported:
Line 129:
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
** Affects: nova
Importance: Undecided
Status: New
--
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):
New
Bug description:
Line 129:
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
Follow ups
References