-
Notifications
You must be signed in to change notification settings - Fork 689
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
test/e2e: NamespacedTest helper should be able to create/delete multiple namespaces #3837
Comments
Here's a diff of what the second option above starts to look like:
|
👍 yeah I was thinking about that second option too, happy to go with that if it seems cleanest |
Option 2 looks good to me. |
The Contour project currently lacks enough contributors to adequately respond to all Issues. This bot triages Issues according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
@sunjayBhatia I am new to this project. In this issue do I need to make changes in function signautre from this |
yep @satyazzz123 that looks correct 👍🏽 another part of this that would be super helpful would be to start using this helper for any tests that currently create any namespaces themselves |
@sunjayBhatia when I am testing the already present e2e tests in the plus I have refactored one of the function using this is before the changes:
this is after the changes
does the changess look good or what changes do i need to make ? need little help in this Thank you |
you can use the you will need docker installed in the environment you are running the tests on, as we use it to create a kind cluster to deploy contour/envoy and run tests against |
Do the code changes look good? is it correct? |
Not quite no, we want to basically get rid of the parts of the test setup in the original block that are creating/deleting namespaces and pass the namespace names used to the |
@sunjayBhatia please verify the changes. Thank you |
Some tests need to manage multiple namespaces to create resources in.
Currently the
NamespacedTest
helper and associatedNamespacedTestBody
signatures are as follows:We're allowed to specify a namespace and any additional namespaces need to be managed in the test.
We could expand this to support an optional list of namespaces to ensure test boilerplate of managing namespaces is minimized/accidental pollution does not happen.
Ideas:
func (f *Framework) NamespacedTest(body NamespacedTestBody, namespaces ...string) {
func (f *Framework) NamespacedTest(namespace string, body NamespacedTestBody, additionalNamespaces ...string) {
See #3803
The text was updated successfully, but these errors were encountered: