-
Couldn't load subscription status.
- Fork 1.4k
Improve the v1 API coverage in the api module tests
#12075
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
base: main
Are you sure you want to change the base?
Improve the v1 API coverage in the api module tests
#12075
Conversation
Signed-off-by: Jakub Scholz <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12075 +/- ##
=========================================
Coverage 74.77% 74.77%
- Complexity 6611 6614 +3
=========================================
Files 376 376
Lines 25325 25325
Branches 3389 3389
=========================================
+ Hits 18937 18938 +1
Misses 5000 5000
+ Partials 1388 1387 -1 🚀 New features to boost your workflow:
|
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 left a couple of comments but I guess they are valid for other custom resources on which we are going to remove some fields in v1. Looking at proposal #113, is it a goal to cover all of them in this PR?
api/src/test/java/io/strimzi/api/kafka/model/bridge/KafkaBridgeCrdIT.java
Show resolved
Hide resolved
api/src/test/java/io/strimzi/api/kafka/model/connect/KafkaConnectCrdIT.java
Show resolved
Hide resolved
No, it is not a goal of this PR to cover everything from there. |
Signed-off-by: Jakub Scholz <[email protected]>
Just for my understanding, what's the rationale behind picking some of them? |
Well, I wanted to:
As I said, these tests can do only a limited amount of things. Basically just required fields and typed objects. For things such as the removed fields, you would IMHO need to write some tests based on |
Type of change
Description
This PR adds some tests using the
v1API to theapimodule. The main focus is testing thev1API support and the required fields / sections.Checklist