Created
May 4, 2014 01:37
-
-
Save inokappa/f6cbab790a26d0269908 to your computer and use it in GitHub Desktop.
Sensu がちゃんとインストールして起動しているかを確認する spec
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
require 'spec_helper' | |
PACKAGES = [ | |
'sensu' , | |
'redis' , | |
'rabbitmq-server' | |
] | |
PACKAGES.each do |pkg| | |
describe package pkg do | |
it { should be_installed } | |
end | |
end | |
SERVICES = [ | |
'sensu-server' , | |
'sensu-api' , | |
'sensu-client' , | |
'sensu-dashboard' , | |
'rabbitmq-server' , | |
'redis' | |
] | |
SERVICES.each do |sv| | |
describe service sv do | |
it { should be_enabled } | |
it { should be_running } | |
end | |
end | |
describe port(8080) do | |
it { should be_listening } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment