From: Tom Hughes Date: Thu, 27 Oct 2016 09:20:06 +0000 (+0100) Subject: Add a few tests X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/9fa2ae0afe39b9b1b4753de674bffb31f69e5530 Add a few tests --- diff --git a/test/integration/bind/serverspec/bind_spec.rb b/test/integration/bind/serverspec/bind_spec.rb index 96a73406c..bdf529cf3 100644 --- a/test/integration/bind/serverspec/bind_spec.rb +++ b/test/integration/bind/serverspec/bind_spec.rb @@ -11,3 +11,7 @@ describe service("bind9") do it { should be_enabled } it { should be_running } end + +describe port(53) do + it { should be_listening } +end diff --git a/test/integration/munin/serverspec/munin_node_spec.rb b/test/integration/munin/serverspec/munin_node_spec.rb index d949d5c92..5fbe38339 100644 --- a/test/integration/munin/serverspec/munin_node_spec.rb +++ b/test/integration/munin/serverspec/munin_node_spec.rb @@ -3,8 +3,15 @@ require "serverspec" # Required by serverspec set :backend, :exec -describe "munin-node daemon" do - it "has a running service of munin-node" do - expect(service("munin-node")).to be_running - end +describe package("munin-node") do + it { should be_installed } +end + +describe service("munin-node") do + it { should be_enabled } + it { should be_running } +end + +describe port(4949) do + it { should be_listening } end