From 9f719a8c427f639e1f0ea6725073be3081dd008e Mon Sep 17 00:00:00 2001 From: Mike Milner Date: Fri, 24 Feb 2012 15:16:56 -0400 Subject: If we don't trust the default certs, don't add new certs from ca-certificates package upgrades. --- tests/unittests/test_handler_ca_certs.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/unittests/test_handler_ca_certs.py b/tests/unittests/test_handler_ca_certs.py index d6513b5b..37bd7a08 100644 --- a/tests/unittests/test_handler_ca_certs.py +++ b/tests/unittests/test_handler_ca_certs.py @@ -169,10 +169,15 @@ class TestRemoveDefaultCaCerts(MockerTestCase): mock_delete_dir_contents = self.mocker.replace(delete_dir_contents, passthrough=False) mock_write = self.mocker.replace(write_file, passthrough=False) + mock_check_call = self.mocker.replace("subprocess.check_call", + passthrough=False) mock_delete_dir_contents("/usr/share/ca-certificates/") mock_delete_dir_contents("/etc/ssl/certs/") mock_write("/etc/ca-certificates.conf", "", mode=0644) + mock_check_call([ + "echo 'ca-certificates ca-certificates/trust_new_crts select no'" + " | debconf-set-selections"], shell=True) self.mocker.replay() remove_default_ca_certs() -- cgit v1.2.3