Skip to content

Commit 315c0d5

Browse files
committed
specs: force legacy specs to run with ecs disabled
1 parent 68d5451 commit 315c0d5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: spec/integration/outputs/ilm_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@
236236
let (:settings) {
237237
{
238238
"ilm_enabled" => ilm_enabled,
239-
"hosts" => "#{get_host_port()}"
239+
"hosts" => "#{get_host_port()}",
240+
"ecs_compatibility" => "disabled", # specs are tightly tied to non-ECS defaults
240241
}
241242
}
242243
let (:small_max_doc_policy) { max_docs_policy(3) }

Diff for: spec/integration/outputs/ingest_pipeline_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
settings = {
77
"hosts" => "#{get_host_port()}",
88
"pipeline" => "apache-logs",
9-
"data_stream" => 'false'
9+
"data_stream" => 'false',
10+
"ecs_compatibility" => "disabled", # specs are tightly tied to non-ECS defaults
1011
}
1112
next LogStash::Outputs::ElasticSearch.new(settings)
1213
end

Diff for: spec/integration/outputs/retry_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def mock_actions_with_response(*resp)
4545
"template_overwrite" => true,
4646
"hosts" => get_host_port(),
4747
"retry_max_interval" => 64,
48-
"retry_initial_interval" => 2
48+
"retry_initial_interval" => 2,
49+
"ecs_compatibility" => "disabled", # specs are tightly tied to non-ECS defaults
4950
}
5051
next LogStash::Outputs::ElasticSearch.new(settings)
5152
end

0 commit comments

Comments
 (0)