-
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
MockWebServer bump, refactor and enhancements #3562
Conversation
Can one of the admins verify this patch? |
4744758
to
15b88a0
Compare
cddc112
to
53fab12
Compare
eb79cf3
to
2bfacb7
Compare
2bfacb7
to
ace88b1
Compare
b4a68b3
to
479343f
Compare
This seems to indeed fix the issue when you get direct access to the |
c8d0e8a
to
08f322a
Compare
It seems it shouldn't do any harm, so I finally added the hardcoded expectation for the version endpoint |
08f322a
to
b5497af
Compare
SonarCloud Quality Gate failed. |
Description
/version
(fix KubernetesServerMock CRUD mode doesn't provide valid responses for client.getXxxxVersion #3536)The new KubernetesMixedDispatcher allows the user to create expectations on top of the default CRUD KubernetesMockServer behavior. This way non-resource endpoints (such as /version), can be mocked while the rest of the CRUD features are preserved (/cc @metacosm)
With the current approach, a user still needs to create a manual expectation for the version endpoint:This can be further improved if we add a hardcoded expectation here:kubernetes-client/kubernetes-server-mock/src/main/java/io/fabric8/kubernetes/client/server/mock/KubernetesMockServer.java
Line 65 in ace88b1
But I'm not sure if that would bother the rest of users.Type of change
test, version modification, documentation, etc.)
Checklist