summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/modules/byobu.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-05-09 09:36:56 -0600
committerChad Smith <chad.smith@canonical.com>2018-05-09 09:36:56 -0600
commit323eb30940cae2069daf74517089220fccc4afb9 (patch)
treed1ffd321afe20278c7bc4422a9715e55f5c20e0a /tests/cloud_tests/testcases/modules/byobu.py
parent4c1af5c7eb8db67f51f35130e13157a735256d2b (diff)
downloadvyos-cloud-init-323eb30940cae2069daf74517089220fccc4afb9.tar.gz
vyos-cloud-init-323eb30940cae2069daf74517089220fccc4afb9.zip
tests: fix package and ca_cert cloud_tests on bionic
package_update_upgrade_install was failing as htop is now included in Bionic images. Switch this test to install 'sl' instead. ca_certs integration test fails on cert_count test because bionic update-ca-certificates on bionic generates less symlinks for a given cert. Integration tests now collect dpkg-query --show output on every instance. Add a new assertPackageInstalled helper method which finds the package or package version installed on the instance. Adapt existing byobu, package_update_upgrade_install, ntp and salt_minion tests to use assertPackageInstalled method. LP: #1769985
Diffstat (limited to 'tests/cloud_tests/testcases/modules/byobu.py')
-rw-r--r--tests/cloud_tests/testcases/modules/byobu.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/cloud_tests/testcases/modules/byobu.py b/tests/cloud_tests/testcases/modules/byobu.py
index 005ca014..74d0529a 100644
--- a/tests/cloud_tests/testcases/modules/byobu.py
+++ b/tests/cloud_tests/testcases/modules/byobu.py
@@ -9,8 +9,7 @@ class TestByobu(base.CloudTestCase):
def test_byobu_installed(self):
"""Test byobu installed."""
- out = self.get_data_file('byobu_installed')
- self.assertIn('/usr/bin/byobu', out)
+ self.assertPackageInstalled('byobu')
def test_byobu_profile_enabled(self):
"""Test byobu profile.d file exists."""