diff options
| author | Luke Kanies <luke@madstop.com> | 2008-07-09 17:41:21 -0700 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-07-10 19:57:25 +1000 |
| commit | 80436550a1e3040399e410be3edf7c44d29fc320 (patch) | |
| tree | e4a5dab3a6fe51fa634c43d41142d4dc231b7373 /spec/integration/node | |
| parent | 605d760dd72b7b6bd3fd54e9f6c3ffacb1b9ee52 (diff) | |
| download | puppet-80436550a1e3040399e410be3edf7c44d29fc320.tar.gz puppet-80436550a1e3040399e410be3edf7c44d29fc320.tar.xz puppet-80436550a1e3040399e410be3edf7c44d29fc320.zip | |
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 <luke@madstop.com>
Diffstat (limited to 'spec/integration/node')
| -rwxr-xr-x | spec/integration/node/catalog.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
