Skip to content

Commit 59a233f

Browse files
authored
Mock additional x-pack settings to avoid missing configuration errors (#211)
This commit mocks the additional x-pack settings to avoid missing configuration errors
1 parent 099f1fd commit 59a233f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/filters/geoip_online_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
dir_path = Stud::Temporary.directory
1616
File.open(dir_path + '/uuid', 'w') { |f| f.write(SecureRandom.uuid) }
1717
allow(LogStash::SETTINGS).to receive(:get).and_call_original
18+
allow(LogStash::SETTINGS).to receive(:get).with("xpack.geoip.downloader.enabled").and_return(true)
19+
allow(LogStash::SETTINGS).to receive(:get).with("xpack.geoip.download.endpoint").and_return(nil)
1820
allow(LogStash::SETTINGS).to receive(:get).with("path.data").and_return(dir_path)
1921
end
2022

0 commit comments

Comments
 (0)