Skip to content

Commit

Permalink
Fix ssh_spec tests (#2415)
Browse files Browse the repository at this point in the history
The behavior was changed in 8179f48, but the tests weren't updated.
  • Loading branch information
jplitza authored Dec 1, 2021
1 parent e653823 commit 25443b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/input/ssh_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@node.expects(:model).returns(model).at_least_once

proxy = mock
Net::SSH::Proxy::Command.expects(:new).with("ssh test.com -W %h:%p").returns(proxy)
Net::SSH::Proxy::Command.expects(:new).with("ssh test.com -W [%h]:%p").returns(proxy)
Net::SSH.expects(:start).with('93.184.216.34', 'alma', port: 22,
verify_host_key: Oxidized.config.input.ssh.secure ? :always : :never,
keepalive: true,
Expand Down Expand Up @@ -61,7 +61,7 @@
@node.expects(:model).returns(model).at_least_once

proxy = mock
Net::SSH::Proxy::Command.expects(:new).with("ssh test.com -W %h:%p").returns(proxy)
Net::SSH::Proxy::Command.expects(:new).with("ssh test.com -W [%h]:%p").returns(proxy)
Net::SSH.expects(:start).with('example.com', 'alma', port: 22,
verify_host_key: Oxidized.config.input.ssh.secure ? :always : :never,
keepalive: true,
Expand Down

0 comments on commit 25443b1

Please sign in to comment.