mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
add unit tests for group resource
This commit is contained in:
parent
8c5453a4da
commit
c17be0438a
1 changed files with 23 additions and 0 deletions
23
test/unit/resource_group_test.rb
Normal file
23
test/unit/resource_group_test.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
# encoding: utf-8
|
||||
|
||||
require 'helper'
|
||||
require 'vulcano/resource'
|
||||
|
||||
describe 'Vulcano::Resources::Group' do
|
||||
|
||||
# ubuntu 14.04
|
||||
it 'verify group on ubuntu' do
|
||||
resource = MockLoader.new(:ubuntu1404).load_resource('group', 'root')
|
||||
_(resource.exists?).must_equal true
|
||||
_(resource.gid).must_equal 0
|
||||
_(resource.has_gid?(0)).must_equal true
|
||||
end
|
||||
|
||||
# mac
|
||||
it 'verify group on mac' do
|
||||
resource = MockLoader.new(:osx104).load_resource('group', 'root')
|
||||
_(resource.exists?).must_equal true
|
||||
_(resource.gid).must_equal 0
|
||||
_(resource.has_gid?(0)).must_equal true
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue