diff options
| author | Markus Roberts <Markus@reality.com> | 2010-01-15 09:13:10 -0800 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2010-01-30 09:29:51 +1100 |
| commit | 10becce443741511ff216c98f6f460513a615cdb (patch) | |
| tree | 76fe13d79910b57bcb3341148e81c6d2d35f21f5 /test/executables | |
| parent | 49a718539c9f896d01a757e4f8b3ddb21edec0da (diff) | |
| download | puppet-10becce443741511ff216c98f6f460513a615cdb.tar.gz puppet-10becce443741511ff216c98f6f460513a615cdb.tar.xz puppet-10becce443741511ff216c98f6f460513a615cdb.zip | |
Fix for #3077 (unit tests broken in 0.25.1-->0.25.4)
Most of these were caused by alias --> host_aliases; one was
caused by the canonicalization of resource references and one
by the removal of puppet_module.
Diffstat (limited to 'test/executables')
| -rwxr-xr-x | test/executables/puppetmodule.rb | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/test/executables/puppetmodule.rb b/test/executables/puppetmodule.rb deleted file mode 100755 index ce28796d7..000000000 --- a/test/executables/puppetmodule.rb +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env ruby - -require File.dirname(__FILE__) + '/../lib/puppettest' - -require 'puppettest' - -class TestPuppetModule < Test::Unit::TestCase - include PuppetTest::ExeTest - - - def setup - super - @module = File.join(basedir, "ext", "module_puppet") - end - - def test_existence - assert(FileTest.exists?(@module), "Module does not exist") - end - - def test_execution - file = tempfile() - - createdfile = tempfile() - - File.open(file, "w") { |f| - f.puts "class yaytest { file { \"#{createdfile}\": ensure => file } }" - } - - output = nil - cmd = @module - cmd += " --verbose" - #cmd += " --fqdn %s" % fqdn - cmd += " --confdir %s" % Puppet[:confdir] - cmd += " --vardir %s" % Puppet[:vardir] - if Puppet[:debug] - cmd += " --logdest %s" % "console" - cmd += " --debug" - cmd += " --trace" - else - cmd += " --logdest %s" % "/dev/null" - end - - ENV["CFALLCLASSES"] = "yaytest:all" - libsetup - - out = nil - assert_nothing_raised { - out = %x{#{cmd + " " + file} 2>&1} - } - assert($? == 0, "Puppet module exited with code %s: %s" % [$?.to_i, out]) - - assert(FileTest.exists?(createdfile), "Failed to create config'ed file") - end -end - |
