Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Added some more basic tests for Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
tbartelmess committed Sep 7, 2013
1 parent d382265 commit 4120bd3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions spec/classes/logstash_init_spec.rb
Expand Up @@ -30,6 +30,30 @@

end

context "On Darwin OS" do
let :facts do {
:operatingsystem => "Darwin",
:osfamily => "Darwin"
} end

let :params do {
:provider => 'custom',
:jarfile => 'http://example.com/jarfile'
} end

# init.pp
it { should contain_class('logstash::package') }
it { should contain_class('logstash::config') }
it { should contain_class('logstash::service') }


# Service
it { should contain_service('org.logstash.agent') }
it { should contain_file('/Library/LaunchDaemons/org.logstash.agent.plist') }
it { should contain_file('/etc/logstash/agent/config') }

end

context "On an unknown OS" do
let :facts do {
:operatingsystem => 'Windows'
Expand Down

0 comments on commit 4120bd3

Please sign in to comment.