inspec/test/unit/resources/windows_feature_test.rb

18 lines
674 B
Ruby
Raw Normal View History

2015-10-06 16:55:44 +00:00
# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter
2015-09-20 15:42:56 +00:00
require 'helper'
2015-10-26 03:04:18 +00:00
require 'inspec/resource'
2015-09-20 15:42:56 +00:00
2015-10-26 03:04:18 +00:00
describe 'Inspec::Resources::Feature' do
2015-09-20 15:42:56 +00:00
describe 'feature' do
it 'verify windows feature parsing' do
2015-10-12 08:38:28 +00:00
resource = MockLoader.new(:windows).load_resource('windows_feature', 'dhcp')
2015-09-20 15:42:56 +00:00
pkg = { name: 'DHCP', description: 'Dynamic Host Configuration Protocol (DHCP) Server enables you to centrally configure, manage, and provide temporary IP addresses and related information for client computers.', installed: false, type: 'windows-feature' }
_(resource.info).must_equal pkg
_(resource.installed?).must_equal false
end
end
end