]> git.openstreetmap.org Git - chef.git/commitdiff
Add basic tests for bind cookbook
authorTom Hughes <tom@compton.nu>
Wed, 26 Oct 2016 19:39:50 +0000 (20:39 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 26 Oct 2016 19:48:00 +0000 (20:48 +0100)
.kitchen.yml
test/integration/bind/serverspec/bind_spec.rb [new file with mode: 0644]

index 177f20da9a049864ce2fcde1bf510f18ac099142..e2667127efe58f8169b1a3ee2d56c14b9ed301c4 100644 (file)
@@ -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 (file)
index 0000000..96a7340
--- /dev/null
@@ -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