"test_check_can_live_migrate_dest_fills_listen_addrs" failed due to incorrect mock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Mikhail Feoktistov |
Bug Description
=======
Failed 1 tests - output below:
=======
nova.tests.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/usr/lib/
return func(*args, **keywargs)
File "nova/tests/
File "nova/virt/
File "nova/virt/
raise exception.
nova.
<MagicMock name='compareCPU()' id='274274000'>
Refer to http://
Captured pythonlogging:
~~~~~~~
2016-10-19 10:19:06,319 INFO [os_brick.
2016-10-19 10:19:06,320 WARNING [os_brick.
2016-10-19 10:19:06,322 INFO [nova.virt.
2016-10-19 10:19:06,328 ERROR [nova.virt.
<MagicMock name='compareCPU()' id='274274000'>
Refer to http://
======
Totals
======
Ran: 14517 tests in 1850.0000 sec.
- Passed: 14458
- Skipped: 58
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 1
Sum of execute time for each test: 3527.7612 sec.
*******
It should be mocking as the following
@mock.patch.
instead of
@mock.patch.
Changed in nova: | |
assignee: | nobody → Mikhail Feoktistov (mfeoktistov) |
This should be fixed with this patch https:/ /review. openstack. org/#/c/ 388643/ 2