summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser
diff options
context:
space:
mode:
authorDan Bode <bodepd@gmail.com>2011-03-16 15:32:23 -0500
committerDan Bode <bodepd@gmail.com>2011-03-16 15:32:23 -0500
commit196294a73e32f5f1cd511a8c23006d23839c7e57 (patch)
tree8d492b7c4f3964f175bad2d377c4222f6fc39912 /spec/unit/parser
parent17f673dd6fee08309970f8ff721855cf1644b45f (diff)
downloadpuppet-196294a73e32f5f1cd511a8c23006d23839c7e57.tar.gz
puppet-196294a73e32f5f1cd511a8c23006d23839c7e57.tar.xz
puppet-196294a73e32f5f1cd511a8c23006d23839c7e57.zip
(4576) - if ENC declares invalid class, it is logged at warning.
used to be at info, so you had to run the master on verbose to see it an ENC was trying to declare a class that could not be loaded.
Diffstat (limited to 'spec/unit/parser')
-rwxr-xr-xspec/unit/parser/compiler_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/parser/compiler_spec.rb b/spec/unit/parser/compiler_spec.rb
index 687f2ecb9..261cfdec1 100755
--- a/spec/unit/parser/compiler_spec.rb
+++ b/spec/unit/parser/compiler_spec.rb
@@ -581,12 +581,11 @@ describe Puppet::Parser::Compiler do
@scope.expects(:find_hostclass).with("notfound").returns(nil)
@compiler.evaluate_classes(%w{notfound}, @scope)
end
- # I wish it would fail
it "should log when it can't find class" do
klasses = {'foo'=>nil}
@node.classes = klasses
@compiler.topscope.stubs(:find_hostclass).with('foo').returns(nil)
- Puppet.expects(:info).with('Could not find class foo for testnode')
+ Puppet.expects(:warning).with('Could not find class foo for testnode')
@compiler.compile
end
end