Additional cleanify changes to ls2ls integ tests (#17246)

* Additional cleanify changes to ls2ls integ tests: replace heartbeat-input with reload option, set queue drain to get consistent result.
This commit is contained in:
Mashhur 2025-03-05 12:24:23 -08:00 committed by GitHub
parent 7446e6bf6a
commit 1e06eea86e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 10 deletions

View file

@ -22,15 +22,6 @@ config:
generator {
count => '<%=options[:generator_count]%>'
}
heartbeat {
interval => 1
message => "heartbeat"
}
}
filter {
if "heartbeat" == [message] {
drop {}
}
}
output {
logstash {

View file

@ -1 +1,2 @@
queue.type: persisted
queue.drain: true

View file

@ -53,7 +53,8 @@ describe "Logstash to Logstash communication Integration test" do
"--pipeline.id", config_name,
"--path.config", config_to_temp_file(@fixture.config(config_name, options)),
"--path.data", get_temp_path_dir,
"--api.http.port", api_port.to_s)
"--api.http.port", api_port.to_s,
"--config.reload.automatic")
logstash_service.wait_for_rest_api
yield logstash_service
ensure