Skip to content

Several questions about e2e test. #2259

Closed Answered by camilamacedo86
littletiger123 asked this question in Support
Discussion options

You must be logged in to vote

Hi @littletiger123,

Minikuke is just a vendor for you to have the Kubernetes cluster installed.

ENV TEST: If a lib to help you out create tests which will be integrated because the requests are actually done against the cluster. However, its purpose is more like "unit" test of the controller's implementation.

Therefore, I'd recommend checking out the files scaffolded by the new plugin deploy.image/v1-alpha, see: https://github.com/kubernetes-sigs/kubebuilder/blob/master/testdata/project-v3-with-deploy-image/controllers/busybox_controller_test.go#L36-L125 as an example.

Also, if you are looking for e2e tests for your whole project you might want to look at the example implemented on the SD…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by camilamacedo86
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants