summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-12 13:45:15 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-05-12 13:45:15 +0200
commit18864f8e7331da359399decb1b080e36fa343f5a (patch)
tree067e66d3520c184b6fb1e0297e03fac3995101db
parentd2af10ab5d3fef34934c04d4590ea611204f44c5 (diff)
downloadvyos-cloud-init-18864f8e7331da359399decb1b080e36fa343f5a.tar.gz
vyos-cloud-init-18864f8e7331da359399decb1b080e36fa343f5a.zip
remove missed test print
-rw-r--r--cloudinit/config/cc_apt_configure.py1
-rw-r--r--tests/unittests/test_handler/test_handler_apt_configure_sources_list.py9
2 files changed, 9 insertions, 1 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py
index ccbdcbc1..1d3eddff 100644
--- a/cloudinit/config/cc_apt_configure.py
+++ b/cloudinit/config/cc_apt_configure.py
@@ -57,7 +57,6 @@ def handle(name, cfg, cloud, log, _args):
release = get_release()
mirrors = find_apt_mirror_info(cloud, cfg)
- print(mirrors)
if not mirrors or "primary" not in mirrors:
log.debug(("Skipping module named %s,"
" no package 'mirror' located"), name)
diff --git a/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py b/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py
index d48167c9..b8fe03ae 100644
--- a/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py
+++ b/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py
@@ -106,6 +106,15 @@ class TestAptSourceConfigSourceList(t_help.FilesystemMockingTestCase):
self.apt_source_list('ubuntu', 'http://archive.ubuntu.com/ubuntu/')
+ def test_apt_srcl_debian_mirrorfail(self):
+ """ test_apt_source_list_debian_mirrorfail
+ Test rendering of a source.list from template for debian
+ """
+ self.apt_source_list('debian', ['http://does.not.exist',
+ 'ftp.us.debian.org'],
+ 'ftp.us.debian.org')
+
+
def test_apt_srcl_ubuntu_mirrorfail(self):
""" test_apt_source_list_ubuntu_mirrorfail
Test rendering of a source.list from template for ubuntu