% lxc exec cent7 -- sh -c 'cd cloud-init; [ -z "$1" ] || git checkout "$1"; nosetests tests/unittests' -- master
Already on 'master'
......................SSSSS..............................................................................................................................................................................................................................................................................................................................................................................................F.F.................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
FAIL: test_apt_v3_source_list_debian - without custom sources or parms
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/cloud-init/tests/unittests/test_handler/test_handler_apt_configure_sources_list_v3.py", line 151, in test_apt_v3_source_list_debian
self._apt_source_list(cfg, EXPECTED_BASE_CONTENT, 'debian')
File "/root/cloud-init/tests/unittests/test_handler/test_handler_apt_configure_sources_list_v3.py", line 141, in _apt_source_list
('/etc/cloud/templates/sources.list.%s.tmpl' % distro))
File "/usr/lib/python2.7/site-packages/mock/mock.py", line 999, in assert_any_call
), cause)
File "/usr/lib/python2.7/site-packages/six.py", line 718, in raise_from
raise value
AssertionError: isfile('/etc/cloud/templates/sources.list.debian.tmpl') call not found
-------------------- >> begin captured logging << --------------------
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: debconf_selections was not set in config
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: Nothing to do: No apt config and no apt commands
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_apt_v3_source_list_ubuntu - without custom sources or parms
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/cloud-init/tests/unittests/test_handler/test_handler_apt_configure_sources_list_v3.py", line 156, in test_apt_v3_source_list_ubuntu
self._apt_source_list(cfg, EXPECTED_BASE_CONTENT, 'ubuntu')
File "/root/cloud-init/tests/unittests/test_handler/test_handler_apt_configure_sources_list_v3.py", line 141, in _apt_source_list
('/etc/cloud/templates/sources.list.%s.tmpl' % distro))
File "/usr/lib/python2.7/site-packages/mock/mock.py", line 999, in assert_any_call
), cause)
File "/usr/lib/python2.7/site-packages/six.py", line 718, in raise_from
raise value
AssertionError: isfile('/etc/cloud/templates/sources.list.ubuntu.tmpl') call not found
-------------------- >> begin captured logging << --------------------
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: debconf_selections was not set in config
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: Nothing to do: No apt config and no apt commands
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 845 tests in 14.067s
FAILED (SKIP=5, failures=2)