summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/cloud_tests/configs/modules/snappy.yaml4
-rw-r--r--tests/cloud_tests/testcases/modules/snappy.py7
2 files changed, 4 insertions, 7 deletions
diff --git a/tests/cloud_tests/configs/modules/snappy.yaml b/tests/cloud_tests/configs/modules/snappy.yaml
index 923bfe12..0e7dc852 100644
--- a/tests/cloud_tests/configs/modules/snappy.yaml
+++ b/tests/cloud_tests/configs/modules/snappy.yaml
@@ -6,8 +6,8 @@ cloud_config: |
snappy:
system_snappy: auto
collect_scripts:
- snap_version: |
+ snapd: |
#!/bin/bash
- snap --version
+ dpkg -s snapd
# vi: ts=4 expandtab
diff --git a/tests/cloud_tests/testcases/modules/snappy.py b/tests/cloud_tests/testcases/modules/snappy.py
index 3e2f5924..b92271c1 100644
--- a/tests/cloud_tests/testcases/modules/snappy.py
+++ b/tests/cloud_tests/testcases/modules/snappy.py
@@ -9,10 +9,7 @@ class TestSnappy(base.CloudTestCase):
def test_snappy_version(self):
"""Test snappy version output"""
- out = self.get_data_file('snap_version')
- self.assertIn('snap ', out)
- self.assertIn('snapd ', out)
- self.assertIn('series ', out)
- self.assertIn('ubuntu ', out)
+ out = self.get_data_file('snapd')
+ self.assertIn('Status: install ok installed', out)
# vi: ts=4 expandtab