diff options
| author | Sean E. Millichamp <sean@bruenor.org> | 2008-09-30 14:38:21 -0400 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-10-03 14:33:33 +1000 |
| commit | 250239eb7fa93dbacd2e755307a6c115615fe87b (patch) | |
| tree | 1c8d4de67b46ea73e9a27932d5e8a033992fe1f4 /spec | |
| parent | c8314821a2bd0f1bb60397492735d3775836416f (diff) | |
Add new support for :selrange SELinux file property
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/unit/other/selinux.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/unit/other/selinux.rb b/spec/unit/other/selinux.rb index 465fc4ea0..26cd84021 100644 --- a/spec/unit/other/selinux.rb +++ b/spec/unit/other/selinux.rb @@ -12,7 +12,8 @@ describe Puppet.type(:file), " when manipulating file contexts" do :ensure => "file", :seluser => "user_u", :selrole => "role_r", - :seltype => "type_t" ) + :seltype => "type_t", + :selrange => "s0" ) end it "should use :seluser to get/set an SELinux user file context attribute" do @file.property(:seluser).should == "user_u" @@ -23,6 +24,9 @@ describe Puppet.type(:file), " when manipulating file contexts" do it "should use :seltype to get/set an SELinux user file context attribute" do @file.property(:seltype).should == "type_t" end + it "should use :selrange to get/set an SELinux range file context attribute" do + @file.property(:seltype).should == "s0" + end after :each do Puppet::Type::File.clear() end |
