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
consolidate kubevirt cypress tests for d/s #9496
consolidate kubevirt cypress tests for d/s #9496
Conversation
/lgtm |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@@ -9,6 +11,9 @@ export default ({ vmName }) => | |||
.then((link) => cy.visit(link.attr('href'))); | |||
cy.byLegacyTestID(vmName).click(); | |||
cy.byLegacyTestID('horizontal-link-Details').click(); | |||
|
|||
// ensure vm is running before check ssh details | |||
cy.get(detailsTab.vmStatus, { timeout: 600000 }).should('contain', 'Running'); |
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 add 'Cloning' to the VM_STATUS enum [1] and use it for the status here and in source-image.spec.ts? I'd eventually like to replace them anywhere else we may be hard-coding them, as well. I'd really like to avoid hard-coding constants as much as possible.
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.
NP, I was thinking of using VM_STATUS while writing this.
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.
Thank you! =)
@@ -57,7 +57,9 @@ describe('test vm template source image', () => { | |||
pvcName: testName, | |||
pvcNamespace: 'default', | |||
}); | |||
virtualization.templates.testSource(TEMPLATE_NAME, 'Cloning'); | |||
if (Cypress.env('STORAGE_CLASS') === 'hostpath-provisioner') { | |||
virtualization.templates.testSource(TEMPLATE_NAME, 'Cloning'); |
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.
See other comment.
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.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gouyang, pcbailey, yaacov 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 |
wait
to deletesource for all objectsCloning
status is not showing when it's ocs, set it just test with hpp.