forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CM integration tests back (elastic#9625)
A few things broke the integration tests, change in response and also now Kibana also blacklist some elements. I have removed the blacklisted integration tests, theses are tested using unit tests, because kibana will not return anything that is blacklisted. I've moved the integration tests away from using the file output because it its blacklisted, instead we now use the Elasticsearch output to do the assertions. (cherry picked from commit e46c773)
- Loading branch information
Showing
2 changed files
with
107 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
// or more contributor license agreements. Licensed under the Elastic License; | ||
// you may not use this file except in compliance with the Elastic License. | ||
|
||
package management | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func EnsureBlacklistItems(t *testing.T) { | ||
// NOTE: We do not permit to configure the console or the file output with CM for security reason. | ||
c := defaultConfig() | ||
v, _ := c.Blacklist.Patterns["output"] | ||
assert.Equal(t, "console|file", v) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters