diff options
author | Jesse Wolfe <jes5199@gmail.com> | 2011-03-24 16:56:19 -0700 |
---|---|---|
committer | Jesse Wolfe <jes5199@gmail.com> | 2011-03-24 16:57:24 -0700 |
commit | 8124f8e725148be2556285629171d4964973c424 (patch) | |
tree | 6303ae66a1ee3e634ce79c1023f80e22aa12776c /test | |
parent | 4196699f5fbb90ceecbb709c8502622eaad39062 (diff) | |
download | puppet-8124f8e725148be2556285629171d4964973c424.tar.gz puppet-8124f8e725148be2556285629171d4964973c424.tar.xz puppet-8124f8e725148be2556285629171d4964973c424.zip |
(#4576) Raise an error when a node is classified into a non-existent class
In 2.6.x, this was upgraded from "info" to "warning". This change for
Statler escalates the warning to an exception which will abort the
compile. This makes compiling fail consistently when you try to use an
undefined class from any of: node classifiers, the class keyword, and the
include function.
Paired-with: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/language/functions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/language/functions.rb b/test/language/functions.rb index 3c27f2b2b..e882b68f3 100755 --- a/test/language/functions.rb +++ b/test/language/functions.rb @@ -447,7 +447,7 @@ class TestLangFunctions < Test::Unit::TestCase include = Puppet::Parser::Functions.function(:include) - assert_raise(Puppet::ParseError, "did not throw error on missing class") do + assert_raise(Puppet::Error, "did not throw error on missing class") do scope.function_include("nosuchclass") end |