inspec/test/integration/default/mount_spec.rb

13 lines
352 B
Ruby
Raw Normal View History

2016-01-02 22:59:22 +00:00
# encoding: utf-8
2016-01-28 13:51:54 +00: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 16:00:44 +00:00
its('device') { should eq '/tmp/empty.iso' }
2016-01-28 13:51:54 +00:00
its('type') { should eq 'iso9660' }
its('options') { should eq ['ro'] }
end
2016-01-02 22:59:22 +00:00
end