summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-16 17:58:16 -0500
committerLuke Kanies <luke@madstop.com>2008-03-16 17:58:16 -0500
commit1dc0e24a4ff565486c00c542f78ab45e23a64ef9 (patch)
tree96a682e0026e5c0535a345ab22578c3a6dda7fcb /spec/unit
parent4a45a1da0653f18df6bd41b009a30387df697909 (diff)
downloadpuppet-1dc0e24a4ff565486c00c542f78ab45e23a64ef9.tar.gz
puppet-1dc0e24a4ff565486c00c542f78ab45e23a64ef9.tar.xz
puppet-1dc0e24a4ff565486c00c542f78ab45e23a64ef9.zip
Modified the ldap node terminus to also use the facts version
as the version for a node, which should similarly encourage the use of the yaml cache. (Related to #1130)
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/indirector/node/ldap.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/indirector/node/ldap.rb b/spec/unit/indirector/node/ldap.rb
index 2a4f240ed..34456703d 100755
--- a/spec/unit/indirector/node/ldap.rb
+++ b/spec/unit/indirector/node/ldap.rb
@@ -5,6 +5,13 @@ require File.dirname(__FILE__) + '/../../../spec_helper'
require 'puppet/indirector/node/ldap'
describe Puppet::Node::Ldap do
+ it "should use the version of the facts as its version" do
+ @searcher = Puppet::Node::Ldap.new
+ version = mock 'version'
+ Puppet::Node::Facts.expects(:version).with("me").returns version
+ @searcher.version("me").should equal(version)
+ end
+
describe "when searching for nodes" do
before :each do
@searcher = Puppet::Node::Ldap.new