-
Notifications
You must be signed in to change notification settings - Fork 727
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
Refactor E2E tests #1251
Comments
Only because most of the team at the time preferred the simplicity of I personally feel like However if it makes sense for E2E tests then there's no reason not to use it (also it does not mean we would have to use it for non-E2E tests). |
+1 I'm definitely in favor of refactoring these to cover more use cases. A proof of concept PR replacing one of the tests would be welcome I think |
👍 on moving more test setup code into Go
|
We synced with @charith-elastic and while he works on adding more flexibility to running e2e tests I'll look into kubetest for provisioning clusters across different clouds. |
After looking at kubetest, I'd be against incorporating it for few reasons:
Initially I hoped we can drag&drop kubetest, but it seems there still would be some work involved and to me it doesn't look like it's worth it given that we do have the code to automate gke/eks/aks already. |
Created #1364 to lay the foundation.
[+] Some resources created by the operator such as the validating web hook cannot be effectively isolated yet Ginkgo + Gomega does not seem to add much value at the present and can be shelved. This seems to be the opinion of most of the team as well. Further things to consider are:
|
Closing this as #1364 covers most of the points. Will raise different issues for further improvements. |
Based on the E2E testing tasks on our board, it appears that going forward we want to do the following:
We already have some nice abstractions in the source code such as the builders used for manipulating resource definitions. However, the bootstrap code and some of the prevailing assumptions present some issues going forward.
e2e
Proposal
In order to support more advanced testing scenarios such as the ones mentioned at the beginning of this issue, we should consider refactoring our E2E code base.
BeforeSuite
,BeforeEach
,AfterEach
,AfterSuite
etc.)The text was updated successfully, but these errors were encountered: