Skip to content

Commit

Permalink
Ensure geoip db path doesn't exist for proxy test.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Sep 26, 2023
1 parent de31bb0 commit 4d97d72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/proxy/envoy/test_http_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def test_elasticsearch_requests_use_proxy
end

def test_geoip_requests_use_proxy
geoip_path = File.join($config.fetch("db_dir"), "geoip/GeoLite2-City.mmdb")
FileUtils.rm_f(geoip_path)

override_config({
"http_proxy" => "http://127.0.0.1:13002",
"https_proxy" => "http://127.0.0.1:13002",
Expand All @@ -156,7 +159,7 @@ def test_geoip_requests_use_proxy
},
},
"geoip" => {
"db_update_frequency" => 1,
"db_path" => geoip_path,
"maxmind_license_key" => "invalid-test",
},
}) do
Expand Down

0 comments on commit 4d97d72

Please sign in to comment.