Skip to content

Commit

Permalink
specs: force legacy specs to run with ecs disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
yaauie committed Jan 12, 2022
1 parent 68d5451 commit 315c0d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion spec/integration/outputs/ilm_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@
let (:settings) {
{
"ilm_enabled" => ilm_enabled,
"hosts" => "#{get_host_port()}"
"hosts" => "#{get_host_port()}",
"ecs_compatibility" => "disabled", # specs are tightly tied to non-ECS defaults
}
}
let (:small_max_doc_policy) { max_docs_policy(3) }
Expand Down
3 changes: 2 additions & 1 deletion spec/integration/outputs/ingest_pipeline_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
settings = {
"hosts" => "#{get_host_port()}",
"pipeline" => "apache-logs",
"data_stream" => 'false'
"data_stream" => 'false',
"ecs_compatibility" => "disabled", # specs are tightly tied to non-ECS defaults
}
next LogStash::Outputs::ElasticSearch.new(settings)
end
Expand Down
3 changes: 2 additions & 1 deletion spec/integration/outputs/retry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def mock_actions_with_response(*resp)
"template_overwrite" => true,
"hosts" => get_host_port(),
"retry_max_interval" => 64,
"retry_initial_interval" => 2
"retry_initial_interval" => 2,
"ecs_compatibility" => "disabled", # specs are tightly tied to non-ECS defaults
}
next LogStash::Outputs::ElasticSearch.new(settings)
end
Expand Down

0 comments on commit 315c0d5

Please sign in to comment.