From d56870cff9fac4704de91dee9ef3138bf0a80ff4 Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 17 Apr 2006 16:15:33 +0000 Subject: Fixing a bunch of small bugs, mostly found by testing on solaris, and added a check to the test system that points out memory growth git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1113 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/executables/puppetca.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/executables') diff --git a/test/executables/puppetca.rb b/test/executables/puppetca.rb index a38296a54..8a232ab8d 100755 --- a/test/executables/puppetca.rb +++ b/test/executables/puppetca.rb @@ -25,7 +25,11 @@ class TestPuppetCA < Test::Unit::TestCase end def runca(args) - return %x{puppetca --confdir=#{Puppet[:confdir]} #{args} 2>&1} + debug = "" + if Puppet[:debug] + debug = "-d " + end + return %x{puppetca --user=#{Puppet[:user]} #{debug} --group=#{Puppet[:group]} --confdir=#{Puppet[:confdir]} #{args} 2>&1} end @@ -68,6 +72,9 @@ class TestPuppetCA < Test::Unit::TestCase signedfile = File.join(Puppet[:signeddir], "host.test.com.pem") assert(FileTest.exists?(signedfile), "cert does not exist") assert(! FileTest.executable?(signedfile), "cert is executable") + + uid = Puppet::Util.uid(Puppet[:user]) + if Process.uid == 0 assert(! FileTest.owned?(signedfile), "cert is owned by root") end -- cgit