-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add agent fields into config file for system tests (#739)
Add the current agent fields used to customize Elastic Agent in the spec for the configuration file of system tests.
- Loading branch information
Showing
8 changed files
with
188 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
test/packages/good_v3/data_stream/agent_settings/_dev/test/system/test-default-config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
wait_for_data_timeout: 10m | ||
vars: ~ | ||
agent: | ||
runtime: docker | ||
user: root | ||
pid_mode: host | ||
linux_capabilities: | ||
- AUDIT_CONTROL | ||
ports: | ||
- 127.0.0.0:8000:8000 | ||
- 8888:8888 | ||
provisioning_script: | ||
language: bash | ||
contents: | | ||
mkdir -p /testfolder/ | ||
pre_start_script: | ||
language: sh | ||
contents: | | ||
export PATH=${PATH}:/testfolder/ |
7 changes: 7 additions & 0 deletions
7
test/packages/good_v3/data_stream/agent_settings/agent/stream/stream.yml.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
paths: | ||
{{#each paths as |path i|}} | ||
- {{path}} | ||
{{/each}} | ||
exclude_files: [".gz$"] | ||
processors: | ||
- add_locale: ~ |
10 changes: 10 additions & 0 deletions
10
test/packages/good_v3/data_stream/agent_settings/elasticsearch/ingest_pipeline/default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
description: Pipeline for processing sample logs | ||
processors: | ||
- set: | ||
field: sample_field | ||
value: "1" | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
12 changes: 12 additions & 0 deletions
12
test/packages/good_v3/data_stream/agent_settings/fields/base-fields.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- name: data_stream.type | ||
type: constant_keyword | ||
description: Data stream type. | ||
- name: data_stream.dataset | ||
type: constant_keyword | ||
description: Data stream dataset. | ||
- name: data_stream.namespace | ||
type: constant_keyword | ||
description: Data stream namespace. | ||
- name: '@timestamp' | ||
type: date | ||
description: Event timestamp. |
13 changes: 13 additions & 0 deletions
13
test/packages/good_v3/data_stream/agent_settings/manifest.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: "Agent Settings" | ||
type: logs | ||
streams: | ||
- input: logfile | ||
title: Sample logs | ||
description: Collect sample logs | ||
vars: | ||
- name: paths | ||
type: text | ||
title: Paths | ||
multi: true | ||
default: | ||
- /var/log/*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters