-
Notifications
You must be signed in to change notification settings - Fork 9
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
New test harness #1755
New test harness #1755
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very nice 👍
Is there any plan to check if resources have the correct values?
So that thanos have the expected variables and secrets/configmaps contains the expected values?
@robinAwallace that is not in the scope of this PR but in the future for sure. |
Perfect, understandably that it is not part of this PR 👍 |
984ca61
to
fc8a425
Compare
f18a008
to
3d0e896
Compare
3d0e896
to
9c3c903
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I would like to request a "meeting PR review" on this one. I don't think I'll be able to understand everything just by looking. Anyone else care to join? @robinAwallace @crssnd @simonklb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As said on the retro, It looked very nice during the public PR and as such I will approve it. Good job André 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
I think we should consider adding the generate tests to the git repository though. I find it nice to track diffs when I update generated code. Interested to hear your take on it. (not blocking the merge btw)
Maybe, I don't think I want to add it right now to keep the structure simple. |
c52de8e
to
873e32f
Compare
What kind of PR is this?
Required: Mark one of the following that is applicable:
Optional: Mark one or more of the following that are applicable:
Important
Critical security fixes should be marked with
kind/security
Breaking changes should be marked
kind/admin-change
orkind/dev-change
depending on typeWhat does this PR do / why do we need this PR?
This paves the way for more structured unit, integration, and end-to-end testing by using bats.
Additional information to reviewers
This has a long way to go before it can be used in the pipeline,
and I want to integrate Cypress first so I know what requirements we have.I also aim to implement helpers for the current main test script and see if there is any way to generate tests from a matrix.I've already did so for testing deployments and statefulsets, though we might want to rework it into a fetch-once-check-multiple solution as the old one did to improve the speed. Though with bats we can run things in parallel.
Cypress support is done! It is integrated with generators into the bats suite, but can be run manually as well. A support file is setup so we can add common functions if we need to, and a few config ones have been implemented.
There is also now a sort of generator for testing matrices, or at least the building blocks for doing so.
Screenshots
Checklist
NetworkPolicy Dashboard