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/network/xmlrpc | |
| parent | 5a25701723431e0ebe2d7134ab65d56bee2c5244 (diff) | |
| download | puppet-3de4829cf0b607624b8a5f5f1e6055141d85af2f.tar.gz puppet-3de4829cf0b607624b8a5f5f1e6055141d85af2f.tar.xz puppet-3de4829cf0b607624b8a5f5f1e6055141d85af2f.zip | |
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/network/xmlrpc')
| -rwxr-xr-x | test/network/xmlrpc/client.rb | 6 | ||||
| -rwxr-xr-x | test/network/xmlrpc/processor.rb | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/network/xmlrpc/client.rb b/test/network/xmlrpc/client.rb index 2dec2c030..f3c6d2388 100755 --- a/test/network/xmlrpc/client.rb +++ b/test/network/xmlrpc/client.rb @@ -8,6 +8,12 @@ require 'mocha' class TestXMLRPCClient < Test::Unit::TestCase include PuppetTest + + def setup + Puppet::Util::SUIDManager.stubs(:asuser).yields + super + end + def test_set_backtrace error = Puppet::Network::XMLRPCClientError.new("An error") assert_nothing_raised do diff --git a/test/network/xmlrpc/processor.rb b/test/network/xmlrpc/processor.rb index 02f0fbd2c..97cc2a774 100755 --- a/test/network/xmlrpc/processor.rb +++ b/test/network/xmlrpc/processor.rb @@ -26,6 +26,7 @@ class TestXMLRPCProcessor < Test::Unit::TestCase def setup super + Puppet::Util::SUIDManager.stubs(:asuser).yields @processor = Processor.new end |
