-
Notifications
You must be signed in to change notification settings - Fork 160
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
fix(e2e): do not test deletion configmap is true #964
fix(e2e): do not test deletion configmap is true #964
Conversation
- only test negative case when set to false: resource should remain - if we test postivie case, we wont get prow pod log after csv is deleted Signed-off-by: Wen Zhou <wenzhou@redhat.com>
So, because prow cannot get log we are not checking now if triggering deletion by config map works, or? |
tests/e2e/dsc_deletion_test.go
Outdated
@@ -123,3 +133,24 @@ func (tc *testContext) testAllApplicationDeletion() error { | |||
} | |||
return err | |||
} | |||
|
|||
func (tc *testContext) testDSCIDeletion() error { |
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.
Basically, it's not test but just cleanup, isn't it?
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.
it is a similar one to testDSCDeletion
it was in the "ConfigMap deletion" test suite, now, moved into "deletion" test suite.
both two functions are (could be a misleading function name) looking for named DSC or DSCI CR and delete it.
based on the pre-condition, CR should exist in the cluster, so we do not expect error.
But if CR is not in the cluster (not found) or error during .Delete() , we fail test
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.
i renamed function to testDeletionExistDSCI()
does it make more sense?
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.
CR should exist in the cluster, so we do not expect error.
Ah, that is the main point. Ok. May be put a comment in the code.
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.
added comments in function
by testing Configmap deletion, deletes everything of ODH which happens before Prow gather all logs etc.
to address 2), made this PR, to not use "correct" configmap => skip deletion ODH but i was thinking, either totally take away this test on configmap, or still test configmap, but for a negative case which is not set the label to "true", and check if e.g namespaces are still there (can check all others as well, but not really necessary) |
- rename function - remove comments lines Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Yes, I understand the intention and it definitely makes sense to get logs from creation failures. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ykaliuta 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 |
130992d
into
opendatahub-io:incubation
+point for thinking about negative test A question - is this deletion via ConfigMap tested anyhow in upstream tests or is this functionality completely deferred to the QE tests far below in downstream only? Was another approach considered - e.g. running this test as a single one in a separate run? This wouldn't affect log gathering of results for other tests. I guess. just my 2cents |
it was tested in our e2e when we just added it in 2.4 |
Well, it can be totally separate workflows in two different clusters I guess. |
…es#964) * fix(e2e): do not test deletion configmap is true - only test negative case when set to false: resource should remain - if we test postivie case, we wont get prow pod log after csv is deleted Signed-off-by: Wen Zhou <wenzhou@redhat.com> * update: code review - rename function - remove comments lines Signed-off-by: Wen Zhou <wenzhou@redhat.com> --------- Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Description
e2e flow:
How Has This Been Tested?
Merge criteria: