Skip to content

Commit

Permalink
make encoding inline and re-enable encoding lower|upper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirianni committed May 26, 2021
1 parent 9b89129 commit 3fc4bd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operator/builtin/input/file/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type InputConfig struct {
FingerprintSize helper.ByteSize `json:"fingerprint_size,omitempty" yaml:"fingerprint_size,omitempty"`
MaxLogSize helper.ByteSize `json:"max_log_size,omitempty" yaml:"max_log_size,omitempty"`
MaxConcurrentFiles int `json:"max_concurrent_files,omitempty" yaml:"max_concurrent_files,omitempty"`
Encoding helper.EncodingConfig `json:"encoding,omitempty" yaml:"encoding,omitempty"`
Encoding helper.EncodingConfig `json:",inline,omitempty" yaml:",inline,omitempty"`
}

// Build will build a file input operator from the supplied configuration
Expand Down
4 changes: 2 additions & 2 deletions operator/builtin/input/file/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func TestConfig(t *testing.T) {
return cfg
}(),
},
/*{
{
Name: "encoding_lower",
ExpectErr: false,
Expect: func() *InputConfig {
Expand All @@ -499,7 +499,7 @@ func TestConfig(t *testing.T) {
cfg.Encoding = helper.EncodingConfig{Encoding: "UTF-16lE"}
return cfg
}(),
},*/
},
}

for _, tc := range cases {
Expand Down

0 comments on commit 3fc4bd5

Please sign in to comment.