From 88e4d7ccf402c17fc4538829cd9ab9c6d7fe020b Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 5 Sep 2024 09:33:26 +0200 Subject: [PATCH] cleanup(tests/falco): droppped TestFalco_Legacy_DisabledAndEnabledRules2 test. Signed-off-by: Federico Di Pierro --- tests/falco/legacy_test.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/falco/legacy_test.go b/tests/falco/legacy_test.go index 40a678d..f4d3a2d 100644 --- a/tests/falco/legacy_test.go +++ b/tests/falco/legacy_test.go @@ -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)