Skip to content

Commit

Permalink
Add proxy_command transport setting to inspec runner (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Schroeder <[email protected]>
  • Loading branch information
tschroeder-zendesk authored and jquick committed Jul 5, 2018
1 parent 13753af commit d2f3dbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/kitchen/verifier/inspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def runner_options_for_ssh(config_data)
"max_wait_until_ready" => kitchen[:max_wait_until_ready],
"compression" => kitchen[:compression],
"compression_level" => kitchen[:compression_level],
"proxy_command" => config[:proxy_command],
}
opts["key_files"] = kitchen[:keys] unless kitchen[:keys].nil?
opts["password"] = kitchen[:password] unless kitchen[:password].nil?
Expand Down
4 changes: 3 additions & 1 deletion spec/kitchen/verifier/inspec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
it "constructs a Inspec::Runner using transport config data and state" do
config[:sudo] = "jellybeans"
config[:sudo_command] = "allyourbase"
config[:proxy_command] = "gateway"

expect(Inspec::Runner).to receive(:new)
.with(
Expand All @@ -272,7 +273,8 @@
"max_wait_until_ready" => 42,
"compression" => "maxyo",
"compression_level" => "pico",
"key_files" => ["/backstage/pass"]
"key_files" => ["/backstage/pass"],
"proxy_command" => "gateway"
)
)
.and_return(runner)
Expand Down

0 comments on commit d2f3dbb

Please sign in to comment.