Writing unit tests

13 views
Skip to first unread message

Vajira Prabuddhaka

unread,
Jan 28, 2025, 6:35:56 PMJan 28
to kubebuilder
Hi

I'm writing unit tests for my kubebuilder project. As it scaffolds, the tests can be easily writable using Ginkgo + Gomega framework.

In order to test some code in reconcile function, I want to return non 404 errors from envtest k8s API server.

Is there a way to do this? How are you writing these type of tests?

Thanks


Reply all
Reply to author
Forward
0 new messages