[Bug 1736394] Re: unit test failure with oslo.serialization >= 2.21.2
Ben Nemec
openstack at nemebean.com
Fri Jun 1 19:46:45 UTC 2018
This was fixed by
https://github.com/openstack/taskflow/commit/50897c0b0a5d389f1571d4079e10643ab537fa53
** Changed in: taskflow
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-taskflow in Ubuntu.
https://bugs.launchpad.net/bugs/1736394
Title:
unit test failure with oslo.serialization >= 2.21.2
Status in taskflow:
Fix Released
Status in python-taskflow package in Ubuntu:
Fix Released
Bug description:
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))
To manage notifications about this bug go to:
https://bugs.launchpad.net/taskflow/+bug/1736394/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list