Skip to content
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

Add kubernetes-server-mock test dependency #575

Closed
andrewazores opened this issue Jul 16, 2021 · 1 comment · Fixed by #599
Closed

Add kubernetes-server-mock test dependency #575

andrewazores opened this issue Jul 16, 2021 · 1 comment · Fixed by #599
Assignees
Labels
dependencies Pull requests that update a dependency file feat New feature or request

Comments

@andrewazores
Copy link
Member

The unit tests for the KubernetesApiPlatformClient are lacking, mostly because it's currently quite a pain to set up all the mocks. There is a mock Kubernetes server that could help out a lot: https://itnext.io/mock-kubernetes-api-server-in-java-using-fabric8-kubernetes-mock-server-81a75cf6c47c

I think this might be best left for a follow-up PR.

Originally posted by @andrewazores in #492 (comment)

@andrewazores
Copy link
Member Author

There is also an OpenShift equivalent:

https://github.com/fabric8io/kubernetes-client/tree/master/openshift-server-mock

This could be used for testing the OpenShiftAuthManager.

@andrewazores andrewazores added dependencies Pull requests that update a dependency file enhancement labels Jul 16, 2021
@andrewazores andrewazores self-assigned this Aug 5, 2021
@andrewazores andrewazores added feat New feature or request and removed enhancement labels Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant