From: Tom Hughes Date: Sat, 15 Feb 2020 12:28:21 +0000 (+0000) Subject: Add test for incron cookbook X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/6620632b4abc48652c8374cfccbb9c14a8cb1968?ds=sidebyside Add test for incron cookbook --- diff --git a/.kitchen.yml b/.kitchen.yml index 0eebce5fe..d77de74ad 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -89,6 +89,9 @@ suites: run_list: - recipe[accounts::default] - role[forum] + - name: incron + run_list: + - recipe[incron::default] - name: letsencrypt run_list: - recipe[accounts::default] diff --git a/.travis.yml b/.travis.yml index e280da19c..68dac833f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,6 +47,9 @@ jobs: - name: "Test Kitchen (forum)" script: - bundle exec kitchen test forum-ubuntu-1804 + - name: "Test Kitchen (incron)" + script: + - bundle exec kitchen test incron-ubuntu-1804 - name: "Test Kitchen (letsencrypt)" script: - bundle exec kitchen test letsencrypt-ubuntu-1804 diff --git a/test/integration/incron/serverspec/incron_spec.rb b/test/integration/incron/serverspec/incron_spec.rb new file mode 100644 index 000000000..8f514be37 --- /dev/null +++ b/test/integration/incron/serverspec/incron_spec.rb @@ -0,0 +1,13 @@ +require "serverspec" + +# Required by serverspec +set :backend, :exec + +describe package("incron") do + it { should be_installed } +end + +describe service("incron") do + it { should be_enabled } + it { should be_running } +end