From 3de4829cf0b607624b8a5f5f1e6055141d85af2f Mon Sep 17 00:00:00 2001 From: christian Date: Thu, 9 Aug 2007 08:45:50 +0000 Subject: 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 --- test/executables/puppetca.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/executables') diff --git a/test/executables/puppetca.rb b/test/executables/puppetca.rb index 21185df10..82e90df72 100755 --- a/test/executables/puppetca.rb +++ b/test/executables/puppetca.rb @@ -3,9 +3,15 @@ $:.unshift("../lib").unshift("../../lib") if __FILE__ =~ /\.rb$/ require 'puppettest' +require 'mocha' class TestPuppetCA < Test::Unit::TestCase include PuppetTest::ExeTest + + def setup + super + Puppet::Util::SUIDManager.stubs(:asuser).yields + end def gen_cert(ca, host) runca("-g #{host}") -- cgit