Sha256: 5e66bfb44c2ce43e8e94331e5d972abe52f7699921b439378038e68ef0f33364
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
if __FILE__ == $0 $:.unshift '../../lib' $:.unshift '..' $puppetbase = "../.." end require 'puppet' require 'puppet/server' require 'puppet/sslcertificates' require 'test/unit' require 'puppettest.rb' class TestPuppetBin < Test::Unit::TestCase include ExeTest def test_version output = nil assert_nothing_raised { output = %x{puppet --version}.chomp } assert(output == Puppet.version) end def test_execution file = mktestmanifest() @@tmpfiles << tempfile() output = nil cmd = "puppet" if Puppet[:debug] cmd += " --debug" end #cmd += " --fqdn %s" % fqdn cmd += " --confdir %s" % Puppet[:confdir] cmd += " --vardir %s" % Puppet[:vardir] cmd += " --logdest %s" % "/dev/null" assert_nothing_raised { system(cmd + " " + file) } assert($? == 0, "Puppet exited with code %s" % $?.to_i) assert(FileTest.exists?(@createdfile), "Failed to create config'ed file") end end # $Id: $
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.13.1 | test/executables/puppetbin.rb |
puppet-0.13.6 | test/executables/puppetbin.rb |
puppet-0.13.0 | test/executables/puppetbin.rb |
puppet-0.13.2 | test/executables/puppetbin.rb |