inspec/test/unit/resources/ntp_conf_test.rb
Miah Johnson 659b4b373a Remove # encoding: utf8 magic comments
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-07 16:06:23 -07:00

15 lines
406 B
Ruby

# author: Christoph Hartmann
# author: Dominik Richter
require 'helper'
require 'inspec/resource'
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'
_(resource.server).must_equal %w{
0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org
}
end
end