summaryrefslogtreecommitdiffstats
path: root/test/executables
diff options
context:
space:
mode:
Diffstat (limited to 'test/executables')
-rwxr-xr-xtest/executables/puppetca.rb6
1 files changed, 6 insertions, 0 deletions
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}")