summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/modules/apt_configure_conf.py
blob: 5d96d95c543de1949c2eeb208f984085c71782cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# This file is part of cloud-init. See LICENSE file for license information.

"""cloud-init Integration Test Verify Script"""
from tests.cloud_tests.testcases import base


class TestAptconfigureConf(base.CloudTestCase):
    """Test apt-configure module"""

    def test_apt_conf_assumeyes(self):
        """Test config assumes true"""
        out = self.get_data_file('94cloud-init-config')
        self.assertIn('Assume-Yes "true";', out)

    def test_apt_conf_fixbroken(self):
        """Test config fixes broken"""
        out = self.get_data_file('94cloud-init-config')
        self.assertIn('Fix-Broken "true";', out)

# vi: ts=4 expandtab