-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FilterLine test matchers and related specs
Current matchers implementation makes policy related specs always pass even when value is present in the output. This patch updates ExpectContainsFilterLine and ExpectDoesNotContainFilterLine matchers to match expected value against string slice rather than slice of FilterBuffer. This patch also updates policy specs to use ExpectContainsFilterLine matcher where applicable. Minor consistency changes were also added to policy specs. Signed-off-by: Arthur Evstifeev <aevstifeev@gitlab.com>
- Loading branch information
Showing
2 changed files
with
32 additions
and
25 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
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