inspec/test/integration/default/mount_spec.rb

13 lines
352 B
Ruby
Raw Normal View History

2016-01-02 23:59:22 +01:00
# encoding: utf-8
2016-01-28 14:51:54 +01:00
if os.linux?
# instead of `.with` or `.only_with` we recommend to use the `mount` resource
describe mount '/mnt/iso-disk' do
it { should be_mounted }
its('count') { should eq 1 }
2016-02-01 17:00:44 +01:00
its('device') { should eq '/tmp/empty.iso' }
2016-01-28 14:51:54 +01:00
its('type') { should eq 'iso9660' }
its('options') { should eq ['ro'] }
end
2016-01-02 23:59:22 +01:00
end