Skip to content

Commit

Permalink
cleanup(tests/falco): droppped TestFalco_Legacy_DisabledAndEnabledRul…
Browse files Browse the repository at this point in the history
…es2 test.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Sep 5, 2024
1 parent 34bace2 commit 88e4d7c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/falco/legacy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1567,21 +1567,6 @@ func TestFalco_Legacy_InvalidAppendRuleMultipleDocs(t *testing.T) {
assert.Equal(t, 1, res.ExitCode())
}

func TestFalco_Legacy_DisabledAndEnabledRules2(t *testing.T) {
t.Parallel()
checkConfig(t)
res := falco.Test(
tests.NewFalcoExecutableRunner(t),
falco.WithRules(rules.SingleRule),
falco.WithDisabledRules("open.*"),
falco.WithEnabledTags("a"),
falco.WithCaptureFile(captures.CatWrite),
)
assert.Regexp(t, `Error: You can not specify both disabled .-D/-T. and enabled .-t. rules`, res.Stderr())
assert.Error(t, res.Err(), "%s", res.Stderr())
assert.Equal(t, 1, res.ExitCode())
}

func TestFalco_Legacy_RunTagsAb(t *testing.T) {
t.Parallel()
checkConfig(t)
Expand Down

0 comments on commit 88e4d7c

Please sign in to comment.