cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00155
Unit tests fails locally
Hi,
Anyone have any idea what might be going on here?
======================================================================
FAIL: test_apt_v3_mirror_search_dns - Test searching dns patterns
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/work/rjschwei/devel/cloud-init/tests/unittests/test_handler/test_handler_apt_source_v3.py",
line 988, in test_apt_v3_mirror_search_dns
mockse.assert_has_calls(calls)
File "/usr/lib64/python3.6/unittest/mock.py", line 846, in
assert_has_calls
) from cause
AssertionError: Calls not found.
Expected: [call(None),
call(['http://ubuntu-mirror.localdomain/ubuntu',
'http://ubuntu-mirror/ubuntu']),
call(None),
call(['http://ubuntu-security-mirror.localdomain/ubuntu',
'http://ubuntu-security-mirror/ubuntu'])]
Actual: [call(None),
call(['http://ubuntu-mirror.suse.de/ubuntu',
'http://ubuntu-mirror.localdomain/ubuntu', 'http://ubuntu-mirror/ubuntu']),
call(None),
call(['http://ubuntu-security-mirror.suse.de/ubuntu',
'http://ubuntu-security-mirror.localdomain/ubuntu',
'http://ubuntu-security-mirror/ubuntu'])]
-------------------- >> begin captured logging << --------------------
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3:
DEBUG: got primary mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3:
DEBUG: got security mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3:
DEBUG: got primary mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3:
DEBUG: got security mirror: http://mocked/foo
cloudinit.util: DEBUG: Reading from /tmp/tmp0nnzll06/etc/hosts (quiet=False)
cloudinit.util: DEBUG: Reading from /tmp/tmp0nnzll06/etc/hosts (quiet=False)
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3:
DEBUG: got primary mirror: phit
cloudinit.util: DEBUG: Reading from /tmp/tmp0nnzll06/etc/hosts (quiet=False)
cloudinit.util: DEBUG: Reading from /tmp/tmp0nnzll06/etc/hosts (quiet=False)
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3:
DEBUG: got security mirror: shit
--------------------- >> end captured logging << ---------------------
Thanks,
Robert
--
Robert Schweikert MAY THE SOURCE BE WITH YOU
Distinguished Architect LINUX
Team Lead Public Cloud
rjschwei@xxxxxxxx
IRC: robjo
Attachment:
signature.asc
Description: OpenPGP digital signature