diff options
-rw-r--r-- | spec/functional/knife/ssh_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/functional/knife/ssh_spec.rb b/spec/functional/knife/ssh_spec.rb index 1c56cce9c2..51524b7009 100644 --- a/spec/functional/knife/ssh_spec.rb +++ b/spec/functional/knife/ssh_spec.rb @@ -36,6 +36,17 @@ describe Chef::Knife::Ssh do allow(Net::SSH).to receive(:configuration_for).and_return(ssh_config) end + # Force log level to info. + around do |ex| + old_level = Chef::Log.level + begin + Chef::Log.level = :info + ex.run + ensure + Chef::Log.level = old_level + end + end + describe "identity file" do context "when knife[:ssh_identity_file] is set" do before do |