mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
(cherry picked from commit 19637143e6
)
Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
This commit is contained in:
parent
afcebb4972
commit
6c1e0244fd
1 changed files with 3 additions and 1 deletions
|
@ -119,7 +119,9 @@ describe LogStash::ConfigManagement::BootstrapCheck do
|
|||
end
|
||||
|
||||
context 'when a configuration file exists in the specified location' do
|
||||
let(:config_location) { Stud::Temporary.file.path }
|
||||
# gsub replacement is only for Windows platform, without `gsub` `Dir.glob` cannot discover files and test fails
|
||||
# note that in other `Dir.glob` places, we used `File.join/dirname` operations which doesn't create issue on Windows
|
||||
let(:config_location) { Stud::Temporary.file.path.gsub("\\", "/") }
|
||||
|
||||
it "raises a `LogStash::BootstrapCheckError` error" do
|
||||
expect { subject.check(settings) }.to raise_error LogStash::BootstrapCheckError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue