Skip to content

Commit 1e06eea

Browse files
authored
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.
1 parent 7446e6b commit 1e06eea

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

qa/integration/fixtures/logstash_to_logstash_spec.yml

-9
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,6 @@ config:
2222
generator {
2323
count => '<%=options[:generator_count]%>'
2424
}
25-
heartbeat {
26-
interval => 1
27-
message => "heartbeat"
28-
}
29-
}
30-
filter {
31-
if "heartbeat" == [message] {
32-
drop {}
33-
}
3425
}
3526
output {
3627
logstash {
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
queue.type: persisted
2+
queue.drain: true

qa/integration/specs/logstash_to_logstash_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def run_logstash_instance(config_name, options = {}, &block)
5353
"--pipeline.id", config_name,
5454
"--path.config", config_to_temp_file(@fixture.config(config_name, options)),
5555
"--path.data", get_temp_path_dir,
56-
"--api.http.port", api_port.to_s)
56+
"--api.http.port", api_port.to_s,
57+
"--config.reload.automatic")
5758
logstash_service.wait_for_rest_api
5859
yield logstash_service
5960
ensure

0 commit comments

Comments
 (0)