From 80436550a1e3040399e410be3edf7c44d29fc320 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 9 Jul 2008 17:41:21 -0700 Subject: Fixing #1408 - --loadclasses works again. The problem was that the mechanism I was using for passing the node to the compiler was conflicting with the Indirector::Request's method of handling node authentication. Signed-off-by: Luke Kanies --- spec/integration/node/catalog.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/integration/node') diff --git a/spec/integration/node/catalog.rb b/spec/integration/node/catalog.rb index 1fa2afbb0..ed38ae987 100755 --- a/spec/integration/node/catalog.rb +++ b/spec/integration/node/catalog.rb @@ -40,5 +40,15 @@ describe Puppet::Node::Catalog do Puppet::Node::Catalog.find("me").should be_nil end + + it "should pass provided node information directly to the terminus" do + terminus = mock 'terminus' + + Puppet::Node::Catalog.indirection.stubs(:terminus).returns terminus + + node = mock 'node' + terminus.expects(:find).with { |request| request.options[:use_node] == node } + Puppet::Node::Catalog.find("me", :use_node => node) + end end end -- cgit