[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585
James Turnbull
james at lovedthanlost.net
Fri Jan 23 14:20:52 UTC 2009
The following commit has been merged in the master branch:
commit 29ae8792321e083b2263e34d273addfc4818f859
Author: James Turnbull <james at lovedthanlost.net>
Date: Wed Aug 27 15:30:24 2008 +1000
Fixes tests broken by 95aa085
diff --git a/test/language/functions.rb b/test/language/functions.rb
index 9742980..50a61a1 100755
--- a/test/language/functions.rb
+++ b/test/language/functions.rb
@@ -379,6 +379,8 @@ class TestLangFunctions < Test::Unit::TestCase
scope = mkscope
parser = scope.compiler.parser
+ realize = Puppet::Parser::Functions.function(:realize)
+
# Make a definition
parser.newdefine("mytype")
@@ -434,6 +436,8 @@ class TestLangFunctions < Test::Unit::TestCase
def test_defined
scope = mkscope
parser = scope.compiler.parser
+
+ defined = Puppet::Parser::Functions.function(:defined)
parser.newclass("yayness")
parser.newdefine("rahness")
@@ -491,6 +495,8 @@ class TestLangFunctions < Test::Unit::TestCase
scope = mkscope
parser = scope.compiler.parser
+ include = Puppet::Parser::Functions.function(:include)
+
assert_raise(Puppet::ParseError, "did not throw error on missing class") do
scope.function_include("nosuchclass")
end
@@ -508,6 +514,8 @@ class TestLangFunctions < Test::Unit::TestCase
parser = mkparser
scope = mkscope(:parser => parser)
+ file = Puppet::Parser::Functions.function(:file)
+
file1 = tempfile
file2 = tempfile
file3 = tempfile
@@ -548,6 +556,8 @@ class TestLangFunctions < Test::Unit::TestCase
assert_equal("yay\n", %x{#{command}}, "command did not work")
assert_equal("yay-foo\n", %x{#{command} foo}, "command did not work")
+ generate = Puppet::Parser::Functions.function(:generate)
+
scope = mkscope
parser = scope.compiler.parser
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list