use a temporary path instead of a temporary file

Using an empty file for the regitry make FB quits with a EOF error

Fixes: #6285

Fixes #6286
This commit is contained in:
Pier-Hugues Pellerin 2016-11-21 14:34:42 -05:00
parent 860ea5c522
commit 81e8bda0b9

View file

@ -16,8 +16,12 @@ describe "Beat Input" do
filebeat_service.stop
end
before :each do
FileUtils.mkdir_p(File.dirname(registry_file))
end
let(:max_retry) { 120 }
let(:registry_file) { Stud::Temporary.file.path }
let(:registry_file) { File.join(Stud::Temporary.pathname, "registry") }
let(:logstash_service) { @fixture.get_service("logstash") }
let(:filebeat_service) { @fixture.get_service("filebeat") }
let(:log_path) do