inspec/test/unit/resources/ntp_conf_test.rb

14 lines
386 B
Ruby
Raw Normal View History

require "helper"
require "inspec/resource"
require "inspec/resources/ntp_conf"
2015-09-05 17:19:40 +00:00
describe "Inspec::Resources::NtpConf" do
it "verify ntp config parsing" do
resource = load_resource("ntp_conf")
_(resource.driftfile).must_equal "/var/lib/ntp/ntp.drift"
2015-09-22 16:33:05 +00:00
_(resource.server).must_equal %w{
0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org
}
2015-09-05 17:19:40 +00:00
end
end