From: Tom Hughes Date: Wed, 26 Oct 2016 19:39:50 +0000 (+0100) Subject: Add basic tests for bind cookbook X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/8955dab9362ef74768872c57ec936b27d7a0704e?hp=66505b61bb1871cb3599dbec82bcbb81d990e289 Add basic tests for bind cookbook --- diff --git a/.kitchen.yml b/.kitchen.yml index 177f20da9..e2667127e 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -15,6 +15,9 @@ suites: - name: apt run_list: - recipe[apt::default] + - name: bind + run_list: + - recipe[bind::default] - name: munin run_list: - recipe[munin::default] diff --git a/test/integration/bind/serverspec/bind_spec.rb b/test/integration/bind/serverspec/bind_spec.rb new file mode 100644 index 000000000..96a73406c --- /dev/null +++ b/test/integration/bind/serverspec/bind_spec.rb @@ -0,0 +1,13 @@ +require "serverspec" + +# Required by serverspec +set :backend, :exec + +describe package("bind9") do + it { should be_installed } +end + +describe service("bind9") do + it { should be_enabled } + it { should be_running } +end