Skip to content

Commit

Permalink
spec test new zabbix::startup
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 21, 2016
1 parent 757c2dc commit fea8b1c
Show file tree
Hide file tree
Showing 3 changed files with 444 additions and 279 deletions.
9 changes: 8 additions & 1 deletion spec/classes/agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@

on_supported_os.each do |os, facts|
context "on #{os} " do
systemd_fact = case facts[:osfamily]
when 'Archlinux'
{ systemd: true }
else
{ systemd: false }
end
let :facts do
facts.merge(
mocked_facts
).merge(
systemd_fact
)
end

Expand Down Expand Up @@ -47,7 +55,6 @@
end

it { should contain_file('/etc/zabbix/zabbix_agentd.d').with_ensure('directory') }

it { should contain_zabbix__startup('zabbix-agent').that_requires("Package[#{package}]") }
end

Expand Down
Loading

0 comments on commit fea8b1c

Please sign in to comment.