diff --git a/pkg/stanza/internal/fileconsumer/config_test.go b/pkg/stanza/internal/fileconsumer/config_test.go index 381f7c8a0221..1371a869f2c8 100644 --- a/pkg/stanza/internal/fileconsumer/config_test.go +++ b/pkg/stanza/internal/fileconsumer/config_test.go @@ -29,17 +29,6 @@ import ( func TestUnmarshal(t *testing.T) { cases := []operatortest.ConfigUnmarshalTest{ - { - Name: "default", - ExpectErr: false, - Expect: NewConfig(), - }, - { - - Name: "extra_field", - ExpectErr: false, - Expect: NewConfig(), - }, { Name: "include_one", ExpectErr: false, @@ -273,111 +262,6 @@ func TestUnmarshal(t *testing.T) { return cfg }(), }, - { - Name: "include_file_name_lower", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFileName = true - return cfg - }(), - }, - { - Name: "include_file_name_upper", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFileName = true - return cfg - }(), - }, - { - Name: "include_file_name_on", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFileName = true - return cfg - }(), - }, - { - Name: "include_file_name_yes", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFileName = true - return cfg - }(), - }, - { - Name: "include_file_path_lower", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFilePath = true - return cfg - }(), - }, - { - Name: "include_file_path_upper", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFilePath = true - return cfg - }(), - }, - { - Name: "include_file_path_on", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFilePath = true - return cfg - }(), - }, - { - Name: "include_file_path_yes", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFilePath = true - return cfg - }(), - }, - { - Name: "include_file_path_off", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFilePath = false - return cfg - }(), - }, - { - Name: "include_file_path_no", - ExpectErr: false, - Expect: func() *Config { - cfg := NewConfig() - cfg.Include = append(cfg.Include, "one.log") - cfg.IncludeFilePath = false - return cfg - }(), - }, - { - Name: "include_file_path_nonbool", - ExpectErr: true, - Expect: nil, - }, { Name: "multiline_line_start_string", ExpectErr: false, diff --git a/pkg/stanza/internal/fileconsumer/testdata/default.yaml b/pkg/stanza/internal/fileconsumer/testdata/default.yaml deleted file mode 100644 index 1643b3fa03be..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/default.yaml +++ /dev/null @@ -1 +0,0 @@ -type: file_input diff --git a/pkg/stanza/internal/fileconsumer/testdata/encoding_lower.yaml b/pkg/stanza/internal/fileconsumer/testdata/encoding_lower.yaml index aa4ed6efdc4b..beadf58fc129 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/encoding_lower.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/encoding_lower.yaml @@ -1,2 +1 @@ -type: file_input encoding: "utf-16le" diff --git a/pkg/stanza/internal/fileconsumer/testdata/encoding_upper.yaml b/pkg/stanza/internal/fileconsumer/testdata/encoding_upper.yaml index ce63e44d54d9..6bae176e1757 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/encoding_upper.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/encoding_upper.yaml @@ -1,2 +1 @@ -type: file_input encoding: "UTF-16lE" diff --git a/pkg/stanza/internal/fileconsumer/testdata/exclude_glob.yaml b/pkg/stanza/internal/fileconsumer/testdata/exclude_glob.yaml index 1f5524d2be6b..db3bd2433736 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/exclude_glob.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/exclude_glob.yaml @@ -1,4 +1,3 @@ -type: file_input include: - "*.log" exclude: diff --git a/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk.yaml b/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk.yaml index 392ea571805f..a2966550084c 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk.yaml @@ -1,4 +1,3 @@ -type: file_input include: - "*.log" exclude: diff --git a/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk_nested.yaml b/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk_nested.yaml index 1528eaeb5d6d..33d02135d6d1 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk_nested.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk_nested.yaml @@ -1,4 +1,3 @@ -type: file_input include: - "*.log" exclude: diff --git a/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk_prefix.yaml b/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk_prefix.yaml index eb400730344d..567c147cb2be 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk_prefix.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/exclude_glob_double_asterisk_prefix.yaml @@ -1,4 +1,3 @@ -type: file_input include: - "*.log" exclude: diff --git a/pkg/stanza/internal/fileconsumer/testdata/exclude_inline.yaml b/pkg/stanza/internal/fileconsumer/testdata/exclude_inline.yaml index 3555dec5c9eb..fd48776801be 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/exclude_inline.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/exclude_inline.yaml @@ -1,3 +1,2 @@ -type: file_input include: [ "*.log" ] exclude: [ "a.log", "b.log" ] diff --git a/pkg/stanza/internal/fileconsumer/testdata/exclude_invalid.yaml b/pkg/stanza/internal/fileconsumer/testdata/exclude_invalid.yaml index 21245bc27c47..17014d40c9e3 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/exclude_invalid.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/exclude_invalid.yaml @@ -1,4 +1,3 @@ -type: file_input include: - "*.log" exclude: "aRandomString" diff --git a/pkg/stanza/internal/fileconsumer/testdata/exclude_multi.yaml b/pkg/stanza/internal/fileconsumer/testdata/exclude_multi.yaml index 37ca7d021c5f..1d5ecd223aee 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/exclude_multi.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/exclude_multi.yaml @@ -1,4 +1,3 @@ -type: file_input include: - "*.log" exclude: diff --git a/pkg/stanza/internal/fileconsumer/testdata/exclude_one.yaml b/pkg/stanza/internal/fileconsumer/testdata/exclude_one.yaml index 48b467284846..ba049d7d2e25 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/exclude_one.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/exclude_one.yaml @@ -1,4 +1,3 @@ -type: file_input include: - "*.log" exclude: diff --git a/pkg/stanza/internal/fileconsumer/testdata/extra_field.yaml b/pkg/stanza/internal/fileconsumer/testdata/extra_field.yaml deleted file mode 100644 index 819128bcd92a..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/extra_field.yaml +++ /dev/null @@ -1,2 +0,0 @@ -type: file_input -hello: world diff --git a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1KB.yaml b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1KB.yaml index 61e58a70ad25..836a6dafac44 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1KB.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1KB.yaml @@ -1,2 +1 @@ -type: file_input fingerprint_size: 1KB diff --git a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1KiB.yaml b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1KiB.yaml index 6fbd0d32ebd4..87744e755181 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1KiB.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1KiB.yaml @@ -1,2 +1 @@ -type: file_input fingerprint_size: 1KiB diff --git a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1kb_lower.yaml b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1kb_lower.yaml index 82a53759b72f..55fc9002b3d1 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1kb_lower.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1kb_lower.yaml @@ -1,2 +1 @@ -type: file_input fingerprint_size: 1kb diff --git a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1kib_lower.yaml b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1kib_lower.yaml index 3b8b9c0cf09f..dad22ac10689 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1kib_lower.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_1kib_lower.yaml @@ -1,2 +1 @@ -type: file_input fingerprint_size: 1kib diff --git a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_float.yaml b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_float.yaml index d2f4cc5f8a84..1d5fb54891de 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_float.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_float.yaml @@ -1,2 +1 @@ -type: file_input fingerprint_size: 1.1kb diff --git a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_no_units.yaml b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_no_units.yaml index 68b3b9d45fc8..58663338224d 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_no_units.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/fingerprint_size_no_units.yaml @@ -1,2 +1 @@ -type: file_input fingerprint_size: 1000 diff --git a/pkg/stanza/internal/fileconsumer/testdata/id_custom.yaml b/pkg/stanza/internal/fileconsumer/testdata/id_custom.yaml deleted file mode 100644 index 13e2a3c265d1..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/id_custom.yaml +++ /dev/null @@ -1,2 +0,0 @@ -type: file_input -id: test_id diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_name_lower.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_name_lower.yaml deleted file mode 100644 index 68570a3e634f..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_name_lower.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_name: true diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_name_on.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_name_on.yaml deleted file mode 100644 index 99776e70383a..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_name_on.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_name: on diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_name_upper.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_name_upper.yaml deleted file mode 100644 index c8bf44cd19e1..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_name_upper.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_name: TRUE diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_name_yes.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_name_yes.yaml deleted file mode 100644 index c5ccdaadf773..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_name_yes.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_name: yes diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_lower.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_path_lower.yaml deleted file mode 100644 index 67e20cf828b3..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_lower.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_path: true diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_no.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_path_no.yaml deleted file mode 100644 index ac8bb724a236..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_no.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_path: no diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_nonbool.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_path_nonbool.yaml deleted file mode 100644 index fadd3b41d36e..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_nonbool.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_path: asdf diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_off.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_path_off.yaml deleted file mode 100644 index 600599e9daad..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_off.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_path: off diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_on.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_path_on.yaml deleted file mode 100644 index 0d227c4551a9..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_on.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_path: on diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_upper.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_path_upper.yaml deleted file mode 100644 index 45e5622b441f..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_upper.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_path: TRUE diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_yes.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_file_path_yes.yaml deleted file mode 100644 index 1b74a3e8f96f..000000000000 --- a/pkg/stanza/internal/fileconsumer/testdata/include_file_path_yes.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: file_input -include: - - one.log -include_file_path: yes diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_glob.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_glob.yaml index b50dffaacd4f..8e85953d0239 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/include_glob.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/include_glob.yaml @@ -1,3 +1,2 @@ -type: file_input include: - "*.log" diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk.yaml index b1b0b3b259fa..4ea8dc6c612b 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk.yaml @@ -1,3 +1,2 @@ -type: file_input include: - "**.log" diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk_nested.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk_nested.yaml index 574a5a146496..496962bb8eda 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk_nested.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk_nested.yaml @@ -1,3 +1,2 @@ -type: file_input include: - "directory/**/*.log" diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk_prefix.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk_prefix.yaml index c4592a583334..69cb57d6ce14 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk_prefix.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/include_glob_double_asterisk_prefix.yaml @@ -1,3 +1,2 @@ -type: file_input include: - "**/directory/**/*.log" diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_inline.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_inline.yaml index 29cdbd0c55f9..7cc6c34a2d21 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/include_inline.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/include_inline.yaml @@ -1,2 +1 @@ -type: file_input include: [ "a.log", "b.log" ] diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_invalid.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_invalid.yaml index 2dd2ad7c9077..f32e25e7de66 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/include_invalid.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/include_invalid.yaml @@ -1,2 +1 @@ -type: file_input include: "justwords" diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_multi.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_multi.yaml index f3f0676f5d0e..47fdd2a7da62 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/include_multi.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/include_multi.yaml @@ -1,4 +1,3 @@ -type: file_input include: - one.log - two.log diff --git a/pkg/stanza/internal/fileconsumer/testdata/include_one.yaml b/pkg/stanza/internal/fileconsumer/testdata/include_one.yaml index fa07bbd18230..da5ca1e08b60 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/include_one.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/include_one.yaml @@ -1,3 +1,2 @@ -type: file_input include: - one.log diff --git a/pkg/stanza/internal/fileconsumer/testdata/max_concurrent_large.yaml b/pkg/stanza/internal/fileconsumer/testdata/max_concurrent_large.yaml index fd99e549a406..59d667849ff2 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/max_concurrent_large.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/max_concurrent_large.yaml @@ -1,2 +1 @@ -type: file_input max_concurrent_files: 9223372036854775807 diff --git a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_invalid_unit.yaml b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_invalid_unit.yaml index bbcc2371e941..3b9d9031da75 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_invalid_unit.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_invalid_unit.yaml @@ -1,2 +1 @@ -type: file_input max_log_size: 1TOFU diff --git a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mb_lower.yaml b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mb_lower.yaml index ae2c8295d1be..23710e1879c0 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mb_lower.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mb_lower.yaml @@ -1,2 +1 @@ -type: file_input max_log_size: 1mib diff --git a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mb_upper.yaml b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mb_upper.yaml index d38d20e6324b..24e66fdcc6dc 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mb_upper.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mb_upper.yaml @@ -1,2 +1 @@ -type: file_input max_log_size: 1MiB diff --git a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mib_lower.yaml b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mib_lower.yaml index ae2c8295d1be..23710e1879c0 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mib_lower.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mib_lower.yaml @@ -1,2 +1 @@ -type: file_input max_log_size: 1mib diff --git a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mib_upper.yaml b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mib_upper.yaml index d38d20e6324b..24e66fdcc6dc 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mib_upper.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/max_log_size_mib_upper.yaml @@ -1,2 +1 @@ -type: file_input max_log_size: 1MiB diff --git a/pkg/stanza/internal/fileconsumer/testdata/multiline_extra_field.yaml b/pkg/stanza/internal/fileconsumer/testdata/multiline_extra_field.yaml index 26f3313bd4bb..5fdf30564f14 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/multiline_extra_field.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/multiline_extra_field.yaml @@ -1,3 +1,2 @@ -type: file_input multiline: that_random_field: "this should go nowhere" diff --git a/pkg/stanza/internal/fileconsumer/testdata/multiline_line_end_special.yaml b/pkg/stanza/internal/fileconsumer/testdata/multiline_line_end_special.yaml index d88927310051..05b1abbd217e 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/multiline_line_end_special.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/multiline_line_end_special.yaml @@ -1,3 +1,2 @@ -type: file_input multiline: line_end_pattern: '%' diff --git a/pkg/stanza/internal/fileconsumer/testdata/multiline_line_end_string.yaml b/pkg/stanza/internal/fileconsumer/testdata/multiline_line_end_string.yaml index 49ef6a31ca6f..21b8f13fff1e 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/multiline_line_end_string.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/multiline_line_end_string.yaml @@ -1,3 +1,2 @@ -type: file_input multiline: line_end_pattern: 'Start' diff --git a/pkg/stanza/internal/fileconsumer/testdata/multiline_line_start_special.yaml b/pkg/stanza/internal/fileconsumer/testdata/multiline_line_start_special.yaml index 5567239b10c5..e1051b22018b 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/multiline_line_start_special.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/multiline_line_start_special.yaml @@ -1,3 +1,2 @@ -type: file_input multiline: line_start_pattern: '%' diff --git a/pkg/stanza/internal/fileconsumer/testdata/multiline_line_start_string.yaml b/pkg/stanza/internal/fileconsumer/testdata/multiline_line_start_string.yaml index bbe40fc32ba3..8904694de5fd 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/multiline_line_start_string.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/multiline_line_start_string.yaml @@ -1,3 +1,2 @@ -type: file_input multiline: line_start_pattern: 'Start' diff --git a/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1000ms.yaml b/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1000ms.yaml index e5c3c380df7a..8c06b67500ff 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1000ms.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1000ms.yaml @@ -1,2 +1 @@ -type: file_input poll_interval: 1000ms diff --git a/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1ms.yaml b/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1ms.yaml index e524cab56fa5..82d9026d80a8 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1ms.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1ms.yaml @@ -1,2 +1 @@ -type: file_input poll_interval: 1ms diff --git a/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1s.yaml b/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1s.yaml index 9cea5ea7c62a..dae0b5a2b8d9 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1s.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/poll_interval_1s.yaml @@ -1,2 +1 @@ -type: file_input poll_interval: 1s diff --git a/pkg/stanza/internal/fileconsumer/testdata/poll_interval_no_units.yaml b/pkg/stanza/internal/fileconsumer/testdata/poll_interval_no_units.yaml index a722aa844bae..2af6da3ba124 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/poll_interval_no_units.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/poll_interval_no_units.yaml @@ -1,2 +1 @@ -type: file_input poll_interval: 1 diff --git a/pkg/stanza/internal/fileconsumer/testdata/start_at_string.yaml b/pkg/stanza/internal/fileconsumer/testdata/start_at_string.yaml index e47a2b8ab4ae..0ad5fdaf810c 100644 --- a/pkg/stanza/internal/fileconsumer/testdata/start_at_string.yaml +++ b/pkg/stanza/internal/fileconsumer/testdata/start_at_string.yaml @@ -1,2 +1 @@ -type: file_input start_at: "beginning"