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/client | |
| 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/client')
| -rwxr-xr-x | test/network/client/ca.rb | 1 | ||||
| -rwxr-xr-x | test/network/client/client.rb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/network/client/ca.rb b/test/network/client/ca.rb index 26fb72f40..00ed7413a 100755 --- a/test/network/client/ca.rb +++ b/test/network/client/ca.rb @@ -11,6 +11,7 @@ class TestClientCA < Test::Unit::TestCase include PuppetTest::ServerTest def setup + Puppet::Util::SUIDManager.stubs(:asuser).yields super @ca = Puppet::Network::Handler.ca.new @client = Puppet::Network::Client.ca.new :CA => @ca diff --git a/test/network/client/client.rb b/test/network/client/client.rb index 534518fe6..14c90f2a9 100755 --- a/test/network/client/client.rb +++ b/test/network/client/client.rb @@ -230,6 +230,8 @@ class TestClient < Test::Unit::TestCase # Make sure that reading the cert in also sets up the cert stuff for the driver def test_read_cert + Puppet::Util::SUIDManager.stubs(:asuser).yields + ca = Puppet::Network::Handler.ca.new caclient = Puppet::Network::Client.ca.new :CA => ca |
