mirror of
https://github.com/elastic/logstash.git
synced 2025-06-27 17:08:55 -04:00
Fix test failure when run from DNS hijacked ISP
Removes the tld from 'unreachable host' to circumvent DNS hijacking ISPs returning a 200 response for non-existent domains. Fixes #7124
This commit is contained in:
parent
90432f5265
commit
06823be008
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ describe LogStash::PluginManager::PackFetchStrategy::Repository do
|
|||
context "when the remote host is unreachable" do
|
||||
it "returns false and yield a debug message" do
|
||||
# To make sure we really try to connect to a failing host we have to let it through webmock
|
||||
host ="#{Time.now.to_i.to_s}-do-not-exist.com"
|
||||
host ="#{Time.now.to_i.to_s}-do-not-exist"
|
||||
WebMock.disable_net_connect!(:allow => host)
|
||||
ENV["LOGSTASH_PACK_URL"] = "http://#{host}"
|
||||
expect(subject.get_installer_for(plugin_name)).to be_falsey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue