Public bug reported:
Hi; oslo.serialization 2.21.1 is current in queens upper-constraints.txt
so this is not impacted more generally in the OpenStack ecosystem; in
Ubuntu we revved to 2.21.2 at which point we see the following error
during unit testing:
======================================================================
FAIL:
taskflow.tests.unit.worker_based.test_protocol.TestProtocol.test_to_dict_with_invalid_json_failures
tags: worker-0
----------------------------------------------------------------------
Traceback (most recent call last):
File "taskflow/tests/unit/worker_based/test_protocol.py", line 174, in
test_to_dict_with_invalid_json_failures
self.assertEqual(expected, request.to_dict())
File
"/home/jamespage/src/openstack/taskflow/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 411, in assertEqual
self.assertThat(observed, matcher, message)
File
"/home/jamespage/src/openstack/taskflow/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py",
line 498, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = {'action': 'execute',
'arguments': {'a': 'a'},
'failures': {'taskflow.tests.utils.DummyTask': {'causes': [],
'exc_args': (),
'exc_type_names':
['RuntimeError',
'StandardError',
'Exception'],
'exception_str': u'I am not
valid JSON',
'traceback_str': '',
'version': 1}},
'task_cls': 'taskflow.tests.utils.DummyTask',
'task_name': 'taskflow.tests.utils.DummyTask',
'task_version': (1, 0)}
actual = {'action': 'execute',
'arguments': {'a': 'a'},
'failures': {'taskflow.tests.utils.DummyTask': {'causes': [],
'exc_args': (Exception('I am
not valid JSON',),),
'exc_type_names':
['RuntimeError',
'StandardError',
'Exception'],
'exception_str': u'I am not
valid JSON',
'traceback_str': '',
'version': 1}},
'task_cls': 'taskflow.tests.utils.DummyTask',
'task_name': 'taskflow.tests.utils.DummyTask',
'task_version': (1, 0)}
Ran 1 (-1663) tests in 0.010s (-88.254s)
FAILED (id=1, failures=1 (+1))
** Affects: taskflow
Importance: Undecided
Status: New
** Affects: python-taskflow (Ubuntu)
Importance: Undecided
Status: New
** Also affects: python-taskflow (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1736394
Title:
unit test failure with oslo.serialization 2.21.2
To manage notifications about this bug go to:
https://bugs.launchpad.net/taskflow/+bug/1736394/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs