yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #75040
[Bug 1792799] Re: Host environment bleeds into test for mirror access testing
This bug is believed to be fixed in cloud-init in version 18.4. If this
is still a problem for you, please make a comment and set the state back
to New
Thank you.
** Changed in: cloud-init
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1792799
Title:
Host environment bleeds into test for mirror access testing
Status in cloud-init:
Fix Released
Bug description:
FAIL: tests.unittests.test_handler.test_handler_apt_source_v3.TestAptSourceConfig.test_apt_v3_mirror_search_dns
----------------------------------------------------------------------
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/tmpsdcw1kdi/etc/hosts (quiet=False)
cloudinit.util: DEBUG: Reading from /tmp/tmpsdcw1kdi/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/tmpsdcw1kdi/etc/hosts (quiet=False)
cloudinit.util: DEBUG: Reading from /tmp/tmpsdcw1kdi/etc/hosts (quiet=False)
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got security mirror: shit
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1792799/+subscriptions
References