Repository navigation
chore(e2e): Use DeferCleanup for namespace cleanup in sequential tests 1-083 to 1-135 - #1537
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Hi @Gabrielandre02. Thanks for your PR. I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
…s 1-083 to 1-135 Refs redhat-developer#1464 Replace defer cleanup funcs inside It blocks with Ginkgo's DeferCleanup. Specs that create the namespace in BeforeEach and clean it up from AfterEach (1-084, 1-092, 1-105, 1-113) are left alone, as are 1-067 (changed by redhat-developer#1504) and the defer func(){...} state-restore blocks. Signed-off-by: gabriel.carmo <admin@gabrielandre.com.br>
f68f1b2 to
5c5da07
Compare
|
/ok-to-test |
|
/retest-required |
|
/retest |
1 similar comment
|
/retest |
Refs #1464
Replaces
defer cleanupFunc(),defer cleanupArgoCD(),defer nsCleanup()anddefer nsfCleanup()with Ginkgo'sDeferCleanupin 8 sequential specs (1-083, 1-100, 1-101, 1-112, 1-113, 1-114, 1-120 must gather, 1-135). In 1-113 only theIt-levelcleanupFunc4is converted. Cleanups still run in reverse registration order.Left alone: specs that create the namespace in
BeforeEachand clean it up fromAfterEach(1-084, 1-092, 1-105, and theBeforeEachpart of 1-113), 1-067 (changed by #1504), and thedefer func() {...}state-restore blocks. Those need a different conversion and will follow separately.Second of the sequential PRs, independent of #1536, #1531 to #1535 and #1504.
Testing
go vet ./test/openshift/e2e/ginkgo/sequential/is clean. E2E specs not run locally (no cluster).