-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Testing issues #27
Comments
Did you follow https://github.com/ory/hydra-maester#how-to-use-it ? |
I did follow that, the initial Using the To test my changes, I just started a basic minikube cluster on my machine ( From the error, it looks like I'm just missing some mock files that need to be generated, but aside from the |
@jakkab could you maybe help clarify this? |
@paulbdavis @aeneasr I'm on it. |
@paulbdavis The file containing the target interface (oauth2client_controller.go) is not under controllers/mocks. Try running |
@paulbdavis What's the reason behind switching those tests to minikube? |
@jakkab It's not just a switch to minikube, but allowing testing on any existing cluster (I just set up minikube for simplicity, since the CRD is in use on my existing clusters). It's enabled by a variable in the makefile though, so the existing test would still be the default (it's enabled by default in my current PR branch, but that would be changed before it's done) |
I assumed that it was already generated, but I tried again anyway, the only thing that changed in the generated file was the format of the Either way, I am getting that same error with the newly generated file as well. |
I finally figured out that I just needed to install kubebuilder to get the default testing to work. I'll just make a PR stating such in the README for simplicity |
This is correct, no interface has been added meaning no new mocks are required. |
Thank you! |
I am trying to work on #26 and I am having issues running the tests.
I managed to get it working with my minikube setup, but I am getting the following error:
I tried to run
mockery -name=HydraClientInterface
incontrollers/mocks
but it returns the errorUnable to find HydraClientInterface in any go files under this path
The text was updated successfully, but these errors were encountered: