mirror of
https://github.com/inspec/inspec
synced 2024-11-28 07:30:50 +00:00
17 lines
349 B
Ruby
17 lines
349 B
Ruby
|
# encoding: utf-8
|
||
|
# author: Joseph Benden
|
||
|
|
||
|
return unless os.bsd?
|
||
|
return unless command('/sbin/zfs').exist?
|
||
|
return unless command('/sbin/zpool').exist?
|
||
|
|
||
|
describe zfs_pool('tank') do
|
||
|
it { should exist }
|
||
|
its('failmode') { should eq('continue') }
|
||
|
end
|
||
|
|
||
|
describe zfs_dataset('tank/tmp') do
|
||
|
it { should exist }
|
||
|
its('exec') { should eq('off') }
|
||
|
end
|