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
Bug 1882197: Add test for golden image upload #6735
Conversation
@gouyang: This pull request references Bugzilla bug 1882197, which is invalid:
Comment In 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 kubernetes/test-infra repository. |
Hi @gouyang. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 kubernetes/test-infra repository. |
frontend/packages/kubevirt-plugin/integration-tests/tests/cdi-upload.scenario.ts
Show resolved
Hide resolved
}); | ||
|
||
afterAll(async () => { | ||
execSync(`kubectl delete -n ${testName} dv ${pvc.name}`); |
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.
what about the upload token, if something goes wrong? @glekner is there something else we should take care about?
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 doesn't need to handle the upload token, the framework handle it automatically.
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 am wondering if such objects can stay alive if the execution fails?
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 stays alive if the execution fails until the ns is removed.
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.
ok
frontend/packages/kubevirt-plugin/integration-tests/tests/cdi-upload.scenario.ts
Show resolved
Hide resolved
frontend/packages/kubevirt-plugin/integration-tests/tests/cdi-upload.scenario.ts
Outdated
Show resolved
Hide resolved
frontend/packages/kubevirt-plugin/integration-tests/tests/cdi-upload.scenario.ts
Show resolved
Hide resolved
}); | ||
await cdiUploadView.uploadInput.sendKeys(desImage); | ||
await click(saveChangesBtn); | ||
await browser.wait(until.textToBePresentInElement(cdiUploadView.uploadProgress, '100%')); |
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.
can we check the final PVC exists?
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.
Add a step to verify the PVC is in Bound status.
frontend/packages/kubevirt-plugin/integration-tests/views/cdiUploadView.ts
Show resolved
Hide resolved
/ok-to-test |
@suomiy I rewrite the tests, could you please review again? |
import * as cdiUploadView from '../../views/cdiUploadView'; | ||
import { PVCData } from '../types/pvc'; | ||
|
||
export class UploadForm { |
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.
nice refactoring :)
}); | ||
|
||
afterAll(async () => { | ||
execSync(`kubectl delete -n ${testName} dv ${pvcName}`); |
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.
shouldn't we also delete the downloaded image?
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.
Updated, delete the downloaded image also.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gouyang, suomiy 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 |
/bugzilla refresh |
@suomiy: This pull request references Bugzilla bug 1882197, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In 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 kubernetes/test-infra repository. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
@gouyang: All pull requests linked via external trackers have merged: Bugzilla bug 1882197 has been moved to the MODIFIED state. In 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 kubernetes/test-infra repository. |
note: create vm from the golden OS is not included in this test.