summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorGrant Ridder <shortdudey123@gmail.com>2017-02-21 15:12:17 -0800
committerGrant Ridder <shortdudey123@gmail.com>2017-02-21 16:16:46 -0800
commit03e0bbe62ecdbcd6701544c638bf5e60c3c02885 (patch)
tree37632d2d101faa7bdfa8c68b18b466dfb2e1ab54 /spec/functional
parent97395b8b81949a3d0c648031d71c17fbf313a28a (diff)
downloadchef-03e0bbe62ecdbcd6701544c638bf5e60c3c02885.tar.gz
Fix spec testing for ssh_gateway_identity option
Signed-off-by: Grant Ridder <shortdudey123@gmail.com>
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/knife/ssh_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/knife/ssh_spec.rb b/spec/functional/knife/ssh_spec.rb
index dae4029946..cfe28b862f 100644
--- a/spec/functional/knife/ssh_spec.rb
+++ b/spec/functional/knife/ssh_spec.rb
@@ -254,7 +254,7 @@ describe Chef::Knife::Ssh do
end
it "uses the ssh_gateway_identity file" do
- expect(@knife.session).to receive(:via).with("ec2.public_hostname", "user", { :keys => "~/.ssh/aws-gateway.rsa", :keys_only => true })
+ expect(@knife.session).to receive(:via).with("ec2.public_hostname", "user", { :keys => "#{ENV['HOME']}/.ssh/aws-gateway.rsa", :keys_only => true })
@knife.run
expect(@knife.config[:ssh_gateway_identity]).to eq("~/.ssh/aws-gateway.rsa")
end
@@ -268,7 +268,7 @@ describe Chef::Knife::Ssh do
end
it "uses the ssh_gateway_identity file" do
- expect(@knife.session).to receive(:via).with("ec2.public_hostname", "user", { :keys => "~/.ssh/aws-gateway.rsa", :keys_only => true })
+ expect(@knife.session).to receive(:via).with("ec2.public_hostname", "user", { :keys => "#{ENV['HOME']}/.ssh/aws-gateway.rsa", :keys_only => true })
@knife.run
expect(@knife.config[:ssh_gateway_identity]).to eq("~/.ssh/aws-gateway.rsa")
end