-
Notifications
You must be signed in to change notification settings - Fork 23
fix: Use correct path for resource-catalog.json cache file #1300
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
Conversation
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Use `Path` instead of `PathBuf` to avoid useless `clone()` invocations. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1300 +/- ##
==========================================
+ Coverage 86.69% 87.46% +0.77%
==========================================
Files 34 34
Lines 4939 4932 -7
==========================================
+ Hits 4282 4314 +32
+ Misses 657 618 -39 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This test case doubles as checking for not overwriting the `--object` file see kubewarden#1300 Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
wait a second, I'm coming up with a unit test |
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've added a e2e that can spot the regression
This test case doubles as checking for not overwriting the `--object` file see kubewarden#1300 Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
I did a forced push because I forgot to add the fixture file used by the tests 🤦 |
Ignore me, I pushed to the wrong branch. Tests are running now |
Avoid regressions of kubewarden#1299 Signed-off-by: Flavio Castelli <fcastelli@suse.com>
d3c8e29
to
af0963c
Compare
This test case doubles as checking for not overwriting the `--object` file see kubewarden#1300 Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Description
Fix #1299
Test
No need for new tests. Would be to add a test here, but we are already checking for the error, no need to check that we aren't overwriting the incorrect file:
https://github.com/kubewarden/kwctl/blob/main/src/scaffold/admission_request.rs#L771
Additional Information
Tradeoff
Potential improvement