-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
adding status handling to the mock server #3092
Conversation
Can one of the admins verify this patch? |
Seeing the ServiceCrudTest failure with the expectation that status will exist after create probably means that status is not actually a subresource for a knative Service. In a general sense what I'm trying to do here won't work completely unless we know the resource / crd is defined with status as a subresource. |
@rohanKanojia @manusa are you okay with the mock server assuming that /status is a subresource? |
I think that it makes sense! |
...er-mock/src/main/java/io/fabric8/kubernetes/client/server/mock/KubernetesCrudDispatcher.java
Show resolved
Hide resolved
...er-mock/src/main/java/io/fabric8/kubernetes/client/server/mock/KubernetesCrudDispatcher.java
Show resolved
Hide resolved
I think we need to modify CustomResourceCrudTest with respect to new default metadata changes in case of create
|
I've updated to just check for the expected fields. We have default metadata tests closer to the mock logic. |
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.
LGTM, thx!
Description
Addresses #3088 so that the mock server is aware of the status subresource (except for patch /status).
This also addresses several issues with replace:
I believe these changes will help resolve operator-framework/java-operator-sdk#396
This does not address create conflicts - I've left that commented out in this pr as there seem to be quite a few tests to correct.
Fix #3088
Type of change
test, version modification, documentation, etc.)
Checklist