mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
21 lines
587 B
Ruby
21 lines
587 B
Ruby
# encoding utf-8
|
|
|
|
require 'helper'
|
|
require 'vulcano/resource'
|
|
|
|
describe 'Vulcano::Resources::Service' do
|
|
describe 'service' do
|
|
|
|
# TODO: make OS dependent
|
|
let(:resource) { loadResource('service', 'dhcp') }
|
|
|
|
# windows
|
|
# it 'verify service parsing' do
|
|
# pkg = { name: 'dhcp', description: 'DHCP Client', installed: true, running: true, enabled: true, type: 'windows' }
|
|
# _(resource.info).must_equal pkg
|
|
# _(resource.installed?).must_equal true
|
|
# _(resource.enabled?).must_equal true
|
|
# _(resource.running?).must_equal true
|
|
# end
|
|
end
|
|
end
|