diff options
author | Jon Grimm <jon.grimm@canonical.com> | 2017-03-31 13:16:25 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-04-12 16:02:01 -0400 |
commit | 291d2976bd7b95e492a004ed7ce80e47ad85905d (patch) | |
tree | 2d95df7f915645cd1f32f8155f7a1a34eecb00ec /tests/cloud_tests/testcases | |
parent | d690216b67ab6f4cf0aaaba78abd1aa3da4e38df (diff) | |
download | vyos-cloud-init-291d2976bd7b95e492a004ed7ce80e47ad85905d.tar.gz vyos-cloud-init-291d2976bd7b95e492a004ed7ce80e47ad85905d.zip |
Fix examples that reference upstream chef repository.
Also add integration test. Note: this new test is not comprehensive; it
simply ensures that the example chef configuration does not blow up and
that chef seems to be installed after its completion.
This new test is disabled by default as it depends on a 3rd party
repository.
LP: #1678145
Diffstat (limited to 'tests/cloud_tests/testcases')
-rw-r--r-- | tests/cloud_tests/testcases/examples/install_run_chef_recipes.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases/examples/install_run_chef_recipes.py b/tests/cloud_tests/testcases/examples/install_run_chef_recipes.py new file mode 100644 index 00000000..b36486f0 --- /dev/null +++ b/tests/cloud_tests/testcases/examples/install_run_chef_recipes.py @@ -0,0 +1,17 @@ +# 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 TestChefExample(base.CloudTestCase): + """Test chef module""" + + def test_chef_basic(self): + """Test chef installed""" + out = self.get_data_file('chef_installed') + self.assertIn('install ok', out) + + # FIXME: Add more tests, and/or replace with comprehensive module tests + +# vi: ts=4 expandtab |