Sha256: cc1023c58df3c553525a87a8a51e10231e0f2f0f6961fff62552b3a955d56156
Contents?: true
Size: 734 Bytes
Versions: 304
Compression:
Stored size: 734 Bytes
Contents
require 'spec_helper' describe Puppet::Type.type(:file), " when manipulating file contexts" do include PuppetSpec::Files before :each do @file = Puppet::Type::File.new( :name => make_absolute("/tmp/foo"), :ensure => "file", :seluser => "user_u", :selrole => "role_r", :seltype => "type_t") end it "should use :seluser to get/set an SELinux user file context attribute" do expect(@file[:seluser]).to eq("user_u") end it "should use :selrole to get/set an SELinux role file context attribute" do expect(@file[:selrole]).to eq("role_r") end it "should use :seltype to get/set an SELinux user file context attribute" do expect(@file[:seltype]).to eq("type_t") end end
Version data entries
304 entries across 304 versions & 1 rubygems