summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/examples/run_apt_upgrade.py
blob: 4c04d3154673e3e9729ab21b765291b58cf3092a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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 TestUpgrade(base.CloudTestCase):
    """Example cloud-config test"""

    def test_upgrade(self):
        """Test upgrade exists in apt history"""
        out = self.get_data_file('cloud-init.log')
        self.assertIn(
            '[CLOUDINIT] util.py[DEBUG]: apt-upgrade '
            '[eatmydata apt-get --option=Dpkg::Options::=--force-confold '
            '--option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet '
            'dist-upgrade] took', out)

# vi: ts=4 expandtab