2015-09-05 19:19:40 +02:00
|
|
|
# encoding: utf-8
|
2015-10-06 18:55:44 +02:00
|
|
|
# author: Christoph Hartmann
|
|
|
|
# author: Dominik Richter
|
2015-09-05 19:19:40 +02:00
|
|
|
|
|
|
|
require 'helper'
|
2015-10-26 04:04:18 +01:00
|
|
|
require 'inspec/resource'
|
2015-09-05 19:19:40 +02:00
|
|
|
|
2015-10-26 04:04:18 +01:00
|
|
|
describe 'Inspec::Resources::NtpConf' do
|
2015-09-22 18:33:05 +02:00
|
|
|
it 'verify ntp config parsing' do
|
2015-10-12 13:21:50 +02:00
|
|
|
resource = load_resource('ntp_conf')
|
2015-09-22 18:33:05 +02:00
|
|
|
_(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
|
|
|
|
}
|
2015-09-05 19:19:40 +02:00
|
|
|
end
|
|
|
|
end
|