diff options
| author | christian <christian@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-08-09 08:45:50 +0000 |
|---|---|---|
| committer | christian <christian@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-08-09 08:45:50 +0000 |
| commit | 3de4829cf0b607624b8a5f5f1e6055141d85af2f (patch) | |
| tree | 16cb9ef447771dace252003abba400a40d8b520d /test/ral | |
| parent | 5a25701723431e0ebe2d7134ab65d56bee2c5244 (diff) | |
Refactor SUIDManager tests to run without root, change SUIDManager's behavior to not silently fail when it's not root and fix all other tests that broke as a result.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2759 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/ral')
| -rwxr-xr-x | test/ral/types/filesources.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ral/types/filesources.rb b/test/ral/types/filesources.rb index 7c8e65d82..b257fd935 100755 --- a/test/ral/types/filesources.rb +++ b/test/ral/types/filesources.rb @@ -5,6 +5,7 @@ $:.unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'puppettest' require 'cgi' require 'fileutils' +require 'mocha' class TestFileSources < Test::Unit::TestCase include PuppetTest::FileTesting @@ -17,6 +18,7 @@ class TestFileSources < Test::Unit::TestCase end @file = Puppet::Type.type(:file) Puppet[:filetimeout] = -1 + Puppet::Util::SUIDManager.stubs(:asuser).yields end def use_storage |
