summaryrefslogtreecommitdiffstats
path: root/spec/unit/node
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-05-29 14:18:18 +1000
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commitb755f7faaf490c97223f68b3b51b3ea1e08c3547 (patch)
tree502e7e885a1c5fc32ef5185174f2c2380ad3dd1f /spec/unit/node
parentb5f14c6eeaaf8cc70287f3b1b2f74441157ac4b6 (diff)
downloadpuppet-b755f7faaf490c97223f68b3b51b3ea1e08c3547.tar.gz
puppet-b755f7faaf490c97223f68b3b51b3ea1e08c3547.tar.xz
puppet-b755f7faaf490c97223f68b3b51b3ea1e08c3547.zip
Fixed #3912 - Added client certificate name as an internal fact called "clientcert"
Diffstat (limited to 'spec/unit/node')
-rwxr-xr-xspec/unit/node/facts.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/node/facts.rb b/spec/unit/node/facts.rb
index a6e227ac3..43532cc53 100755
--- a/spec/unit/node/facts.rb
+++ b/spec/unit/node/facts.rb
@@ -15,6 +15,11 @@ describe Puppet::Node::Facts, "when indirecting" do
@facts.values["one"].should == "1"
end
+ it "should add the node's certificate name as the 'clientcert' fact when adding local facts" do
+ @facts.add_local_facts
+ @facts.values["clientcert"].should == Puppet.settings[:certname]
+ end
+
it "should add the Puppet version as a 'clientversion' fact when adding local facts" do
@facts.add_local_facts
@facts.values["clientversion"].should == Puppet.version.to_s