From 291d2976bd7b95e492a004ed7ce80e47ad85905d Mon Sep 17 00:00:00 2001 From: Jon Grimm Date: Fri, 31 Mar 2017 13:16:25 -0500 Subject: 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 --- .../testcases/examples/install_run_chef_recipes.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/cloud_tests/testcases/examples/install_run_chef_recipes.py (limited to 'tests/cloud_tests/testcases/examples') 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 -- cgit v1.2.3