From 8955dab9362ef74768872c57ec936b27d7a0704e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 26 Oct 2016 20:39:50 +0100 Subject: [PATCH 1/1] Add basic tests for bind cookbook --- .kitchen.yml | 3 +++ test/integration/bind/serverspec/bind_spec.rb | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/integration/bind/serverspec/bind_spec.rb 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 -- 2.43.2