Skip to content

Commit

Permalink
Update event logger ES output test
Browse files Browse the repository at this point in the history
Ensure the event data is not present in the normal log file
  • Loading branch information
belimawr committed May 16, 2024
1 parent c46746b commit c3346f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions filebeat/tests/integration/event_log_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,9 @@ func TestEventsLoggerESOutput(t *testing.T) {
t.Errorf("Contents:\n%s", strData)
t.FailNow()
}

// Ensure the normal log file does not contain the event data
if filebeat.LogContains(eventMsg) {
t.Fatalf("normal log file must NOT contain event data, '%s' found in the logs", eventMsg)
}
}

0 comments on commit c3346f3

Please sign in to comment.