Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests): use legacy rules files for legacy tests #24

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

leogr
Copy link
Member

@leogr leogr commented Sep 6, 2023

Legacy tests are designed to test Falco features, not the ruleset. Most of these tests already use ad-hoc rules files, not those provided by the tested Falco package. This commit also aligns the same behavior for legacy tests requiring the default rulesets. This is particularly relevant after we split falco_rules.yaml in multiple files, which are not shipped anymore by default.

Andreagit97
Andreagit97 previously approved these changes Sep 6, 2023
Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@Andreagit97
Copy link
Member

/hold

Legacy tests are designed to test Falco features, not the ruleset. Most of these tests already use ad-hoc rules files, not those provided by the tested Falco package. This commit also aligns the same behavior for legacy tests requiring the default rulesets. This is particularly relevant after we split `falco_rules.yaml` in multiple files, which are not shipped anymore by default.

Signed-off-by: Leonardo Grasso <[email protected]>
@leogr
Copy link
Member Author

leogr commented Sep 6, 2023

I'm fixing some failing tests. Hold on please 🙏

@leogr leogr changed the title fix(tests): use legacy rules files for legacy tests wip: fix(tests): use legacy rules files for legacy tests Sep 6, 2023
@leogr leogr force-pushed the fix/legacy-tests-rules-files branch 7 times, most recently from b2034e1 to 1cce593 Compare September 6, 2023 15:53
@leogr leogr force-pushed the fix/legacy-tests-rules-files branch from 1cce593 to 31b4840 Compare September 6, 2023 16:09
@leogr
Copy link
Member Author

leogr commented Sep 6, 2023

Found the issue falcosecurity/falco#2784
Fixed the CI in this PR 🥳

@leogr
Copy link
Member Author

leogr commented Sep 6, 2023

/hold cancel

@leogr leogr changed the title wip: fix(tests): use legacy rules files for legacy tests fix(tests): use legacy rules files for legacy tests Sep 6, 2023
Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link

poiana commented Sep 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 76d1743 into main Sep 6, 2023
1 check passed
@poiana poiana deleted the fix/legacy-tests-rules-files branch September 6, 2023 16:15
leogr added a commit to falcosecurity/falco that referenced this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants