-
Notifications
You must be signed in to change notification settings - Fork 545
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
e2e: Refactor the CatalogSource tests to reduce flakes #2693
e2e: Refactor the CatalogSource tests to reduce flakes #2693
Conversation
Signed-off-by: perdasilva <perdasilva@redhat.com>
…test is deleted Signed-off-by: timflannagan <timflannagan@gmail.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: timflannagan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cs, cleanup := createInternalCatalogSource(c, crc, mainCatalogName, globalNS, mainManifests, []apiextensions.CustomResourceDefinition{mainCRD}, []v1alpha1.ClusterServiceVersion{mainCSV}) | ||
defer cleanup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: only substantial difference between Per's original PR and this one. I noticed we weren't cleaning up this CatalogSource that's deployed in the global namespace correctly.
|
||
catalogSourceName := genName("mock-ocs-") | ||
_, cleanupSource := createInternalCatalogSource(c, crc, catalogSourceName, operatorNamespace, manifests, []apiextensions.CustomResourceDefinition{crd}, []v1alpha1.ClusterServiceVersion{csv}) | ||
_, cleanupSource := createInternalCatalogSource(c, crc, catalogSourceName, ns.GetName(), manifests, []apiextensions.CustomResourceDefinition{crd}, []v1alpha1.ClusterServiceVersion{csv}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I noticed this test case was missed when ensuring that CatalogSources get deployed in their own namespace (outside of any tests that are testing the global namespace behavior), so any change you see for the remainder of this test spec's diff is substituting operatorNamespace -> the generated namespace's metadata.Name.
Hmm interesting:
|
^^^ may be related to 2 registry pods and probably fixed by #2614 (comment) |
re-spinning again. |
/lgtm |
…ework#2693) * Refactor catalog source e2e tests to unique namespaces Signed-off-by: perdasilva <perdasilva@redhat.com> * e2e: Ensure the CatalogSource resource created in the global catalog test is deleted Signed-off-by: timflannagan <timflannagan@gmail.com> Co-authored-by: perdasilva <perdasilva@redhat.com> Signed-off-by: Noah Sapse <nsapse@redhat.com>
Description of the change:
Follow up to #2690 as it doesn't look like I have the right permissions to push to Per's fork.
Motivation for the change:
See #2690 for more information.
Reviewer Checklist
/doc
[FLAKE]
are truly flaky[FLAKE]
tag are no longer flaky