Skip to content

Commit

Permalink
Add proxy_command transport setting to inspec runner
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Schroeder <[email protected]>
  • Loading branch information
tschroeder-zendesk committed Mar 19, 2018
1 parent 13f44c7 commit bbd2c55
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 @@ -239,6 +239,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 @@ -234,6 +234,7 @@
max_wait_until_ready: 42,
compression: "maxyo",
compression_level: "pico",
proxy_command: "gateway",
}
end

Expand Down Expand Up @@ -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 bbd2c55

Please sign in to comment.