Skip to content

Commit

Permalink
Update ip of example.com in ssh-test
Browse files Browse the repository at this point in the history
Close ytti#3145
The A-record of example.com was changed from 93.184.216.34 to
93.184.215.14, so our test failed.
I updated the IP-Adress in the ssh-test.
I could have added an automatic resolution in the test, but I don't
think the IP of example.com will change too often, so I kept it simple.
A comment should help to find the problem quickly next time.
I'm not documenting this in CHANGELOG.md as it is only relevant for
developpers and not for our users.
  • Loading branch information
robertcheramy committed Apr 30, 2024
1 parent f9d7e72 commit 1f78275
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 1f78275

Please sign in to comment.