summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorBen Hughes <ben@puppetlabs.com>2011-04-05 16:19:01 +1000
committerBen Hughes <ben@puppetlabs.com>2011-06-03 11:27:27 -0700
commit16b2311256a142a69cb9ddadf29eea804b281e1c (patch)
tree87b3d25aad06b0ca40be3750c3ac8eb687b65221 /spec
parent17f673dd6fee08309970f8ff721855cf1644b45f (diff)
downloadpuppet-16b2311256a142a69cb9ddadf29eea804b281e1c.tar.gz
puppet-16b2311256a142a69cb9ddadf29eea804b281e1c.tar.xz
puppet-16b2311256a142a69cb9ddadf29eea804b281e1c.zip
(#6885) puppet agent fingerprint requires --verbose to return a value.
Always output the fingerprint to STDOUT, no matter what loglevel is used, as that's the whole purpose of the comment. Having to specify --verbose in addition to --fingerprint to get the finger is nonsensical. Update the spec test to stub @puppet puts, instead of the Puppet.logging facilities. Reviewed-by: Daniel Pittman <daniel@puppetlabs.com>
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/application/agent_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/application/agent_spec.rb b/spec/unit/application/agent_spec.rb
index 8f498d4ba..9cc32bbb5 100755
--- a/spec/unit/application/agent_spec.rb
+++ b/spec/unit/application/agent_spec.rb
@@ -563,7 +563,7 @@ describe Puppet::Application::Agent do
@host.stubs(:certificate).returns(@cert)
@cert.stubs(:fingerprint).with(:MD5).returns("DIGEST")
- Puppet.expects(:notice).with("DIGEST")
+ @puppetd.expects(:puts).with "DIGEST"
@puppetd.fingerprint
end