mirror of
https://github.com/inspec/inspec
synced 2024-12-18 00:53:22 +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
|