2019-06-11 22:24:35 +00:00
|
|
|
require "helper"
|
|
|
|
require "inspec/resource"
|
|
|
|
require "inspec/resources/zfs_dataset"
|
2017-02-22 17:29:49 +00:00
|
|
|
|
|
|
|
describe Inspec::Resources::ZfsDataset do
|
|
|
|
let(:loader) { MockLoader.new(:freebsd10) }
|
2019-06-11 22:24:35 +00:00
|
|
|
let(:tank_tmp_resource) { loader.send("load_resource", "zfs_dataset", "tank/tmp") }
|
2017-02-22 17:29:49 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
it "parses the ZFS dataset data properly" do
|
|
|
|
tank_tmp_resource.send(:mountpoint).must_equal("/tmp")
|
|
|
|
tank_tmp_resource.send(:type).must_equal("filesystem")
|
|
|
|
tank_tmp_resource.send(:exec).must_equal("off")
|
|
|
|
tank_tmp_resource.send(:setuid).must_equal("off")
|
2017-02-22 17:29:49 +00:00
|
|
|
end
|
|
|
|
end
|