Sha256: 039e11946fa7d53760aa4ef6dcb7eb3108323f5c026b661cdb9a793899676fc6

Contents?: true

Size: 810 Bytes

Versions: 16

Compression:

Stored size: 810 Bytes

Contents

# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter

require 'helper'
require 'inspec/resource'

describe Inspec::Resources::File do
  let(:root_resource) { load_resource('mount', '/') }

  it 'parses the mount data properly' do
    root_resource.send(:device).must_equal('/dev/xvda1')
    root_resource.send(:type).must_equal('ext4')
    root_resource.send(:options).must_equal(['rw','discard'])
    root_resource.send(:count).must_equal(1)
  end

  let(:iso_resource) { load_resource('mount', '/mnt/iso-disk') }

  it 'parses the mount data properly' do
    iso_resource.send(:device).must_equal('/root/alpine-3.3.0-x86_64_2.iso')
    iso_resource.send(:type).must_equal('iso9660')
    iso_resource.send(:options).must_equal(['ro'])
    iso_resource.send(:count).must_equal(2)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
inspec-0.14.8 test/unit/resources/mount_test.rb
inspec-0.14.7 test/unit/resources/mount_test.rb
inspec-0.14.6 test/unit/resources/mount_test.rb
inspec-0.14.5 test/unit/resources/mount_test.rb
inspec-0.14.4 test/unit/resources/mount_test.rb
inspec-0.14.3 test/unit/resources/mount_test.rb
inspec-0.14.2 test/unit/resources/mount_test.rb
inspec-0.14.1 test/unit/resources/mount_test.rb
inspec-0.14.0 test/unit/resources/mount_test.rb
inspec-0.12.0 test/unit/resources/mount_test.rb
inspec-0.11.0 test/unit/resources/mount_test.rb
inspec-0.10.1 test/unit/resources/mount_test.rb
inspec-0.9.11 test/unit/resources/mount_test.rb
inspec-0.9.10 test/unit/resources/mount_test.rb
inspec-0.9.9 test/unit/resources/mount_test.rb
inspec-0.9.8 test/unit/resources/mount_test.rb