Skip to content

Commit

Permalink
Merge pull request #3147 from robertcheramy/3145-fix-example.com-ip
Browse files Browse the repository at this point in the history
Update ip of example.com in ssh-test
  • Loading branch information
robertcheramy committed Apr 30, 2024
2 parents f9d7e72 + 1f78275 commit 37c4d8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/input/ssh_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

describe "#connect" do
it "should use proxy command when proxy host given and connect by ip if resolve_dns is true" do
# If this test fails, check it exemple.com stil resolves to 93.184.215.14
# If not, update Net::SSH.expects(:start).with('93.184.215.14'... below
Oxidized.config.resolve_dns = true
@node = Oxidized::Node.new(name: 'example.com',
input: 'ssh',
Expand Down Expand Up @@ -44,7 +46,7 @@
auth_methods: %w[none publickey password],
proxy: proxy
}
Net::SSH.expects(:start).with('93.184.216.34', 'alma', ssh_options)
Net::SSH.expects(:start).with('93.184.215.14', 'alma', ssh_options)

ssh.instance_variable_set("@exec", true)
ssh.connect(@node)
Expand Down

0 comments on commit 37c4d8d

Please sign in to comment.