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

tetragon: small improvement to testing merge sensors #2658

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

jrfastab
Copy link
Contributor

@jrfastab jrfastab commented Jul 12, 2024

Adding some more tests discovered that its sometimes useful to explicitely list progs and maps for clarity. But, the testing utilities mark the test Fatal when this happens. Its not really an error to over specify a test so lets just allow it and have the merge logic skip it.

Without this its annoying to define tests for if multiple sensors work together. For example we have sensor tests with SensorX and another with SensorY if you want to test SensorX+SensorY looks good you get a Fatal just because logic doesn't know how to merge the defintiion of Maps/Progs. Or you have to cut'n'paste it all over again.

Adding some more tests discovered that its sometimes useful to explicitly
list progs and maps for clarity. But, the testing utilities mark the test
Fatal when this happens. Its not really an error to over specify a test
so lets just allow it and have the merge logic skip it.

Signed-off-by: John Fastabend <[email protected]>
@jrfastab jrfastab requested a review from a team as a code owner July 12, 2024 00:07
@jrfastab jrfastab requested a review from tpapagian July 12, 2024 00:07
@jrfastab jrfastab added the release-note/misc This PR makes changes that have no direct user impact. label Jul 12, 2024
@jrfastab jrfastab force-pushed the pr/jrfastab/generalizeDups branch 2 times, most recently from 5e07bb8 to af5c7da Compare July 12, 2024 00:14
@jrfastab jrfastab merged commit 1102cd0 into main Jul 12, 2024
39 checks passed
@jrfastab jrfastab deleted the pr/jrfastab/generalizeDups branch July 12, 2024 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants