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
|
2019-09-30 22:31:55 +00:00
|
|
|
_(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
|