diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-17 16:15:33 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-17 16:15:33 +0000 |
| commit | d56870cff9fac4704de91dee9ef3138bf0a80ff4 (patch) | |
| tree | b153b1d34e2f8bf1290ff55a393821363725ca5f /test/executables | |
| parent | 0478f78b2291b9c54b4de9807fd0a0f216eaed53 (diff) | |
| download | puppet-d56870cff9fac4704de91dee9ef3138bf0a80ff4.tar.gz puppet-d56870cff9fac4704de91dee9ef3138bf0a80ff4.tar.xz puppet-d56870cff9fac4704de91dee9ef3138bf0a80ff4.zip | |
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
Diffstat (limited to 'test/executables')
| -rwxr-xr-x | test/executables/puppetca.rb | 9 |
1 files changed, 8 insertions, 1 deletions
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 |
