Created
June 30, 2015 07:25
-
-
Save aibou/cf78acdbcbfb6ec7dae8 to your computer and use it in GitHub Desktop.
なにか(for amazon linux)
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' | |
describe package('ntp') do | |
it { should be_installed.with_version('4.2.6p5-30.24.amzn1') } | |
end | |
# describe service('ntpd') do | |
# it { should be_enabled } | |
# it { should be_running } | |
# end | |
describe process('ntpd') do | |
it { should be_running } | |
its(:args) { should match(/-x -g/) } | |
end | |
describe command('/usr/sbin/ntptime') do | |
its(:stdout) { should match(/ntp_gettime\(\) returns code 0 \(OK\)/) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment