-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add e2e test cases of managing etcd cluster #19
Comments
I can take this up guys. |
The #17 has been merged. This task isn't blocked anymore. |
Sounds good. I'll get started on this today. |
Note, essentially, the e2e test automates the manual human test process, ensuring comprehensive coverage and repeatability. For each e2e test cases, we should be able to manually run/reproduce it as well. |
Hey there @ahrtr, I've made a rough scaffold of how the tests are going to look like. It is still in my working branch, I'd really appreciate if you can take a look and give feedback. Here's the link to the fork The current pushed code is able to:
I am getting started with the sanity testing you mentioned. I'd really appreciate feedback. |
@abdurrehman107 Please raise a PR to get feedback, thx |
Also please let's do it step by step.
|
Aighty I'll raise a PR. @ahrtr can you elaborate on what you mean by rewriting the existing e2e test? Do you mean that I should rewrite the tests in Ginkgo (by default) to e2e framework? |
Basically YES. I see that you add the new e2e test using the e2e framework, so there is no reason to keep the existing e2e test with ginkgo. Actually we have three options,
|
Quick question @ahrtr how can we exactly do the sanity test against the etcd cluster resource? Do we hit the endpoint for the sts pod and expect a response? |
Yes, you can connect to endpoints something like etcd-operator/internal/controller/utils.go Line 269 in c2343a0
|
@ahrtr: just meaning to confirm we want to rewrite the set of default tests, created by Kubebuilder by default, in the e2e-framework too right? |
YES, the goal is to get rid of ginkgo completely. |
We need to add e2e test cases to verify the etcd-operator's functionalities of managing etcd clusters:
Kubebuilder automatically generates e2e test using ginkgo, but personally I am not a big fan of ginkgo. It creates some syntax sugars on top of golang standard test, and organize the test in a hierarchical structure. When the test file gets bigger and bigger, it will become more and more unreadable.
So it would be great if we can add the e2e test case just using the golang standard test utilities.
The text was updated successfully, but these errors were encountered: