From 9fa2ae0afe39b9b1b4753de674bffb31f69e5530 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 27 Oct 2016 10:20:06 +0100 Subject: [PATCH] Add a few tests --- test/integration/bind/serverspec/bind_spec.rb | 4 ++++ .../munin/serverspec/munin_node_spec.rb | 15 +++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) 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 -- 2.43.2