summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/examples/run_apt_upgrade.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/testcases/examples/run_apt_upgrade.py')
-rw-r--r--tests/cloud_tests/testcases/examples/run_apt_upgrade.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases/examples/run_apt_upgrade.py b/tests/cloud_tests/testcases/examples/run_apt_upgrade.py
new file mode 100644
index 00000000..4c04d315
--- /dev/null
+++ b/tests/cloud_tests/testcases/examples/run_apt_upgrade.py
@@ -0,0 +1,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