summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases
diff options
context:
space:
mode:
authorDominic Schlegel <dominic.schlegel@hostpoint.ch>2018-03-08 12:13:38 +0100
committerChad Smith <chad.smith@canonical.com>2018-03-08 12:13:38 +0100
commit1e2e810f3f7cb6a163a0229ac37037e8c6744d72 (patch)
tree28ce30387ae95f3b947174ed31024e0dc4f8ac6a /tests/cloud_tests/testcases
parentf9f7ffd7156db28391c006d3ac7685fa6c5afbdd (diff)
downloadvyos-cloud-init-1e2e810f3f7cb6a163a0229ac37037e8c6744d72.tar.gz
vyos-cloud-init-1e2e810f3f7cb6a163a0229ac37037e8c6744d72.zip
Make salt minion module work on FreeBSD.
Previously the module was not working under FreeBSD due to a different package name and some different paths. The module now has OS specific default values which can even be customized via corresponding cloud config variables. LP: #1721503
Diffstat (limited to 'tests/cloud_tests/testcases')
-rw-r--r--tests/cloud_tests/testcases/modules/salt_minion.py5
-rw-r--r--tests/cloud_tests/testcases/modules/salt_minion.yaml5
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/cloud_tests/testcases/modules/salt_minion.py b/tests/cloud_tests/testcases/modules/salt_minion.py
index f13b48a0..70917a4c 100644
--- a/tests/cloud_tests/testcases/modules/salt_minion.py
+++ b/tests/cloud_tests/testcases/modules/salt_minion.py
@@ -31,4 +31,9 @@ class Test(base.CloudTestCase):
out = self.get_data_file('grains')
self.assertIn('role: web', out)
+ def test_minion_installed(self):
+ """Test if the salt-minion package is installed"""
+ out = self.get_data_file('minion_installed')
+ self.assertEqual(1, int(out))
+
# vi: ts=4 expandtab
diff --git a/tests/cloud_tests/testcases/modules/salt_minion.yaml b/tests/cloud_tests/testcases/modules/salt_minion.yaml
index ab0e05bb..f20b9765 100644
--- a/tests/cloud_tests/testcases/modules/salt_minion.yaml
+++ b/tests/cloud_tests/testcases/modules/salt_minion.yaml
@@ -3,7 +3,7 @@
#
# 2016-11-17: Currently takes >60 seconds results in test failure
#
-enabled: False
+enabled: True
cloud_config: |
#cloud-config
salt_minion:
@@ -35,5 +35,8 @@ collect_scripts:
grains: |
#!/bin/bash
cat /etc/salt/grains
+ minion_installed: |
+ #!/bin/bash
+ dpkg -l | grep salt-minion | grep ii | wc -l
# vi: ts=4 expandtab