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

Fake client for unit testing or more exported fields #181

Open
snorwin opened this issue Aug 8, 2022 · 1 comment
Open

Fake client for unit testing or more exported fields #181

snorwin opened this issue Aug 8, 2022 · 1 comment

Comments

@snorwin
Copy link

snorwin commented Aug 8, 2022

Hey folks,
It would great if the library offers fake client which can be used for unit testing or at least make all fields of the arguments used in the IBConnector interface easy accessible. Currently it is really difficult to mock e.g. GetObject if the searchFields of QueryParams are unexported.

What are you thinking about this?

@kuritka
Copy link

kuritka commented Jan 19, 2023

Hi @snorwin,

I'm from k8gb team. We do global DNS balancing on the top of Kubernetes clusters. We support Infoblox among many other DNS providers.

to unit-test our infoblox provider we created our own GO package.

Here is an example usage:

If you find it useful, I can extract it to a separate opensource library under k8gb-io. You can then contribute to suit your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants