Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/go/internal/spec/statik.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
multiline:
first_line_pattern: "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}"
fields:
"@timestamp": "2020-04-28T11:07:58.223Z"
ecs.version: "1.5.0"
event.category:
- web

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
multiline:
first_line_pattern: "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}"
fields:
"@timestamp": "2020-04-28T11:07:58.223Z"
ecs.version: "1.5.0"
event.category:
- web
dynamic_fields:
foobar: ".+"
a_numeric_field: "\\d+"
3 changes: 3 additions & 0 deletions versions/1/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,7 @@
- description: Add specification for package CHANGELOG files.
type: enhancement
link: https://github.com/elastic/package-spec/pull/131
- description: Deprecate JSON-formatted pipeline test configs in favor of YAML-formatted ones
type: enhancement
link: https://github.com/elastic/package-spec/pull/139

18 changes: 16 additions & 2 deletions versions/1/data_stream/_dev/test/pipeline/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,31 @@ spec:
type: file
pattern: '^test-[a-z0-9-]+\.log$'
required: false
- description: Configuration of test case in raw format
- description: JSON-formatted configuration for a test case in raw format
type: file
pattern: '^test-[a-z0-9-]+\.log-config.json$'
contentMediaType: "application/json"
required: false
deprecated: true # use "YAML-formatted configuration for a test case in raw format"
$ref: "./config_raw.spec.yml"
- description: Configuration of test case in JSON format
- description: JSON-formatted configuration for a test case in JSON format
type: file
pattern: '^test-[a-z0-9-]+\.json-config.json$'
contentMediaType: "application/json"
required: false
deprecated: true # use "YAML-formatted configuration for a test case in JSON format"
$ref: "./config_json.spec.yml"
- description: YAML-formatted configuration for a test case in raw format
type: file
pattern: '^test-[a-z0-9-]+\.log-config.yml'
contentMediaType: "application/x-yaml"
required: false
$ref: "./config_raw.spec.yml"
- description: YAML-formatted configuration for a test case in JSON format
type: file
pattern: '^test-[a-z0-9-]+\.json-config.yml'
contentMediaType: "application/x-yaml"
required: false
$ref: "./config_json.spec.yml"
- description: Expected test results
type: file
Expand Down