Unit tests broken when using oslo.context from master
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.context |
Fix Released
|
Undecided
|
Unassigned | ||
oslo.log |
Fix Released
|
High
|
Joshua Harlow |
Bug Description
Unit tests fail when the master oslo.context is used instead of the tagged version (2.12.0). The following errors are shown:
=======
FAIL: oslo_log.
tags: worker-4
-------
Empty attachments:
stderr
stdout: {{{HAS CONTEXT [99 - - - - -]: test}}}
Traceback (most recent call last):
File "/tmp/oslo.
self.
File "/tmp/kk/
self.
File "/tmp/kk/
raise mismatch_error
testtools.
reference = u'''\
HAS CONTEXT [99 myuser mytenant mydomain myuserdomain myprojectdomain]: test
'''
actual = u'''\
HAS CONTEXT [99 - - - - -]: test
'''
=======
FAIL: oslo_log.
tags: worker-4
-------
Empty attachments:
stderr
stdout: {{{HAS CONTEXT [99 - -]: test}}}
Traceback (most recent call last):
File "/tmp/oslo.
self.
File "/tmp/kk/
self.
File "/tmp/kk/
raise mismatch_error
testtools.
reference = u'''\
HAS CONTEXT [99 myuser mytenant]: test
'''
actual = u'''\
HAS CONTEXT [99 - -]: test
'''
=======
FAIL: oslo_log.
tags: worker-4
-------
Empty attachments:
stderr
stdout: {{{[req-
Traceback (most recent call last):
File "/tmp/oslo.
(ctxt.
File "/tmp/oslo.
self.
File "/tmp/kk/
self.
File "/tmp/kk/
raise mismatch_error
testtools.
reference = u'''\
[req-1a0253f5-
'''
actual = u'''\
[req-1a0253f5-
'''
Ran 155 tests in 6.051s (-0.010s)
FAILED (id=10, failures=3)
Changed in oslo.context: | |
status: | New → Confirmed |
Changed in oslo.context: | |
status: | Confirmed → Fix Committed |
Changed in oslo.log: | |
status: | Confirmed → Fix Committed |
Changed in oslo.log: | |
status: | Fix Committed → Fix Released |
Changed in oslo.context: | |
status: | Fix Committed → Fix Released |
Checking the oslo.context history, this commit is the one that breaks unit tests: https:/ /github. com/openstack/ oslo.context/ commit/ 1c421837db4ad40 26d89afb6f7f49e 8e259ee7ca