summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-07-20 16:11:56 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-07-20 16:11:56 +1000
commit686ba4d4c21f6f1e073bd845492f2fe3cb4837a2 (patch)
tree567d15320bf881dc3dc00fce303ae63a88e1b19c /spec
parentf16da4250c16aeab932a81a349df059c69d7ee23 (diff)
downloadpuppet-686ba4d4c21f6f1e073bd845492f2fe3cb4837a2.tar.gz
puppet-686ba4d4c21f6f1e073bd845492f2fe3cb4837a2.tar.xz
puppet-686ba4d4c21f6f1e073bd845492f2fe3cb4837a2.zip
Revert "Merging fsweetser's selinux patch against 0.24.4"
This reverts commit f16da4250c16aeab932a81a349df059c69d7ee23.
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/other/selinux.rb78
1 files changed, 0 insertions, 78 deletions
diff --git a/spec/unit/other/selinux.rb b/spec/unit/other/selinux.rb
deleted file mode 100644
index 0974b71c3..000000000
--- a/spec/unit/other/selinux.rb
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/usr/bin/env ruby
-
-require File.dirname(__FILE__) + '/../../spec_helper'
-
-require 'puppet/type/selboolean'
-require 'puppet/type/selmodule'
-
-describe Puppet::Type::File, " when manipulating file contexts" do
- before :each do
- @file = Puppet.type(:file).create(
- :path => "/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
- @file[:seluser].should == "user_u"
- end
- it "should use :selrole to get/set an SELinux role file context attribute" do
- @file[:selrole].should == "role_r"
- end
- it "should use :seltype to get/set an SELinux user file context attribute" do
- @file[:seltype].should == "type_t"
- end
-end
-
-describe Puppet::Type::Selboolean, " when manipulating booleans" do
- before :each do
- @bool = Puppet.type(:selboolean).create(
- :name => "foo",
- :value => "on",
- :persistent => true)
- end
- it "should be able to access :name" do
- @bool[:name].should == "foo"
- end
- it "should be able to access :value" do
- @bool[:value].should == :on
- end
- it "should set :value to off" do
- @bool[:value] = :off
- @bool[:value].should == :off
- end
- it "should be able to access :persistent" do
- @bool[:persistent].should == :true
- end
- it "should set :persistent to false" do
- @bool[:persistent] = false
- @bool[:persistent].should == :false
- end
-end
-
-describe Puppet::Type::Selmodule, " when checking policy modules" do
- before :each do
- @module = Puppet.type(:selmodule).create(
- :name => "foo",
- :selmoduledir => "/some/path",
- :selmodulepath => "/some/path/foo.pp",
- :syncversion => true)
- end
- it "should be able to access :name" do
- @module[:name].should == "foo"
- end
- it "should be able to access :selmoduledir" do
- @module[:selmoduledir].should == "/some/path"
- end
- it "should be able to access :selmodulepath" do
- @module[:selmodulepath].should == "/some/path/foo.pp"
- end
- it "should be able to access :syncversion" do
- @module[:syncversion].should == :true
- end
- it "should set the syncversion value to false" do
- @module[:syncversion] = :false
- @module[:syncversion].should == :false
- end
-end