This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is branched off the `service-init` branch.
- Loading branch information
Martin Cozzi
committed
Jul 29, 2014
1 parent
8041cac
commit e3f11e6
Showing
5 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,5 @@ Berksfile.lock | |
.*.sw[a-z] | ||
*.un~ | ||
/cookbooks | ||
.kitchen/ | ||
.kitchen.local.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
provisioner: | ||
name: chef_solo | ||
|
||
platforms: | ||
- name: ubuntu-12.04 | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[statsd::default] | ||
attributes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require 'serverspec' | ||
|
||
include Serverspec::Helper::Exec | ||
include Serverspec::Helper::DetectOS | ||
|
||
RSpec.configure do |c| | ||
c.before :all do | ||
c.path = '/sbin:/usr/sbin' | ||
end | ||
end | ||
|
||
describe 'statsd service' do | ||
it 'should be configured for upstart' do | ||
expect(file('/etc/init/statsd.conf')).to be_file | ||
end | ||
|
||
it 'should be enabled' do | ||
expect(service('statsd')).to be_enabled | ||
end | ||
|
||
it 'should be running' do | ||
expect(service('statsd')).to be_running | ||
end | ||
|
||
it 'should be listening' do | ||
expect(port('8125')).to be_listening.with('udp') | ||
end | ||
end |