yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72777
[Bug 1769952] [NEW] test_net.TestGenerateFallbackConfig.test_unstable_names is sensitive to host environment
Public bug reported:
The test_unstable_names test expects cloudinit.util.udevadm_settle to be
called once:
self.assertEqual(1, mock_settle.call_count)
But cloudinit.net.find_fallback_nic inspects /proc/cmdline for the
net.ifnames=0 parameter, and if found will not call udevadm_settle,
which causes the test to fail.
The unit tests should not rely on information from the host environment.
** Affects: cloud-init
Importance: Undecided
Status: New
--
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/1769952
Title:
test_net.TestGenerateFallbackConfig.test_unstable_names is sensitive
to host environment
Status in cloud-init:
New
Bug description:
The test_unstable_names test expects cloudinit.util.udevadm_settle to
be called once:
self.assertEqual(1, mock_settle.call_count)
But cloudinit.net.find_fallback_nic inspects /proc/cmdline for the
net.ifnames=0 parameter, and if found will not call udevadm_settle,
which causes the test to fail.
The unit tests should not rely on information from the host
environment.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1769952/+subscriptions
Follow ups