Skip to content

Commit

Permalink
update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch committed Apr 20, 2021
1 parent 446cae9 commit 0664c8b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions filebeat/input/filestream/parsers_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestParsersDockerLogs(t *testing.T) {
env.waitUntilEventCount(1)
env.requireOffsetInRegistry(testlogName, len(testline))

env.requireEventContents(0, "json.log", "Fetching main repository github.com/elastic/beats...")
env.requireEventContents(0, "json.log", "Fetching main repository github.com/elastic/beats...\n")
env.requireEventContents(0, "json.time", "2016-03-02T22:58:51.338462311Z")
env.requireEventContents(0, "json.stream", "stdout")

Expand Down Expand Up @@ -180,8 +180,6 @@ func TestParsersJavaElasticsearchLogs(t *testing.T) {
"paths": []string{env.abspath(testlogName)},
"prospector.scanner.check_interval": "1ms",
"parsers": []map[string]interface{}{
map[string]interface{}{
"strip_newline": map[string]interface{}{}},
map[string]interface{}{
"multiline": map[string]interface{}{
"type": "pattern",
Expand Down Expand Up @@ -216,8 +214,6 @@ func TestParsersCStyleLog(t *testing.T) {
"paths": []string{env.abspath(testlogName)},
"prospector.scanner.check_interval": "1ms",
"parsers": []map[string]interface{}{
map[string]interface{}{
"strip_newline": map[string]interface{}{}},
map[string]interface{}{
"multiline": map[string]interface{}{
"type": "pattern",
Expand Down Expand Up @@ -258,8 +254,6 @@ func TestParsersRabbitMQMultilineLog(t *testing.T) {
"paths": []string{env.abspath(testlogName)},
"prospector.scanner.check_interval": "1ms",
"parsers": []map[string]interface{}{
map[string]interface{}{
"strip_newline": map[string]interface{}{}},
map[string]interface{}{
"multiline": map[string]interface{}{
"type": "pattern",
Expand Down Expand Up @@ -304,8 +298,6 @@ func TestParsersMultilineMaxLines(t *testing.T) {
"paths": []string{env.abspath(testlogName)},
"prospector.scanner.check_interval": "1ms",
"parsers": []map[string]interface{}{
map[string]interface{}{
"strip_newline": map[string]interface{}{}},
map[string]interface{}{
"multiline": map[string]interface{}{
"type": "pattern",
Expand Down Expand Up @@ -349,8 +341,6 @@ func TestParsersMultilineTimeout(t *testing.T) {
"paths": []string{env.abspath(testlogName)},
"prospector.scanner.check_interval": "1ms",
"parsers": []map[string]interface{}{
map[string]interface{}{
"strip_newline": map[string]interface{}{}},
map[string]interface{}{
"multiline": map[string]interface{}{
"type": "pattern",
Expand Down Expand Up @@ -415,8 +405,6 @@ func TestParsersMultilineMaxBytes(t *testing.T) {
"prospector.scanner.check_interval": "1ms",
"message_max_bytes": 50,
"parsers": []map[string]interface{}{
map[string]interface{}{
"strip_newline": map[string]interface{}{}},
map[string]interface{}{
"multiline": map[string]interface{}{
"type": "pattern",
Expand Down Expand Up @@ -458,8 +446,6 @@ func TestParsersCloseTimeoutWithMultiline(t *testing.T) {
"prospector.scanner.check_interval": "1ms",
"close.reader.after_interval": "100ms",
"parsers": []map[string]interface{}{
map[string]interface{}{
"strip_newline": map[string]interface{}{}},
map[string]interface{}{
"multiline": map[string]interface{}{
"type": "pattern",
Expand Down Expand Up @@ -522,8 +508,6 @@ func TestParsersConsecutiveNewline(t *testing.T) {
"paths": []string{env.abspath(testlogName)},
"prospector.scanner.check_interval": "1ms",
"parsers": []map[string]interface{}{
map[string]interface{}{
"strip_newline": map[string]interface{}{}},
map[string]interface{}{
"multiline": map[string]interface{}{
"type": "pattern",
Expand Down

0 comments on commit 0664c8b

Please sign in to comment.