← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1792799] [NEW] Host environment bleeds into test for mirror access testing

 

Public bug reported:

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

** Affects: cloud-init
     Importance: Undecided
     Assignee: Robert Schweikert (rjschwei)
         Status: New

** Changed in: cloud-init
     Assignee: (unassigned) => Robert Schweikert (rjschwei)

-- 
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:
  New

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


Follow ups