Skip to content

Commit

Permalink
cleanup(tests/falco): remove dropped CLI options test.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Sep 5, 2024
1 parent d259272 commit b511071
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 @@ -105,21 +105,6 @@ func TestFalco_Legacy_Endswith(t *testing.T) {
assert.Equal(t, 0, res.ExitCode())
}

func TestFalco_Legacy_DisabledAndEnabledRules1(t *testing.T) {
t.Parallel()
checkConfig(t)
res := falco.Test(
tests.NewFalcoExecutableRunner(t),
falco.WithRules(rules.SingleRule),
falco.WithDisabledTags("a"),
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_StdoutOutputStrict(t *testing.T) {
t.Parallel()
res := falco.Test(
Expand Down

0 comments on commit b511071

Please sign in to comment.