MULTIARCH-5318: Add tests for ImageStreamImportMode feature gate#29524
Conversation
Add tests to exercise these scenarios under a featuregate: - verify that the imagestream tag's import mode corresponds to the desired.Architecture field in the status reported by CV. multi => PreserveOriginal, else Legacy. - verify that setting the ImageStreamImportMode field in the image.config.io spec to Legacy, will be the import mode for any newly created imagestream tag henceforth - verify that setting the ImageStreamImportMode field in the image.config.io spec to PreserveOriginal, will be the import mode for any newly created imagestream tag henceforth
|
/retest |
|
@Prashanth684: This pull request references MULTIARCH-5318 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
| oc := exutil.NewCLI("imagestream-api") | ||
|
|
||
| g.It("import mode should be PreserveOriginal or Legacy depending on desired.architecture field in the CV [apigroup:image.openshift.io]", func() { | ||
| TestImageStreamImportMode(g.GinkgoT(), oc) |
There was a problem hiding this comment.
Given that the two test cases below cover both Legacy and PreserveOriginal, do we really need this test case? I can't really see what value it's adding, though I may be missing something.
There was a problem hiding this comment.
this test case is actually the only "necessary" one in my opinion because it changes the default import mode based on the CV's architecture. The other two test cases are specifically for testing the knob to change the import mode which I don't see being used frequently
There was a problem hiding this comment.
the main idea here is that we have these tests which are exercised behind the featuregate and once we let them run for a release (or maybe a few sprint cycles), we use that signal to promote the featuregate to default and then I was thinking we remove the two tests which change the import mode knob.
|
left a question but lgtm either way |
|
/retest |
|
@Prashanth684: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flavianmissi, Prashanth684, sosiouxme The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
[ART PR BUILD NOTIFIER] Distgit: openshift-enterprise-tests |
Add tests to exercise these scenarios under a featuregate: