Skip to content
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

Introduce V2V VM Import test case #3975

Merged
merged 1 commit into from
Jan 17, 2020

Conversation

rhrazdil
Copy link

Implemented VM import scenario
Created kubevirt-v2v test suite in kubevirt-plugin

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 15, 2020
@openshift-ci-robot openshift-ci-robot added the component/kubevirt Related to kubevirt-plugin label Jan 15, 2020
await click(applyButton);
}

async save() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not big fan of these one-liner functions. IIUC, there is no expectation for additional business logic to be added here in the near future. Simple await click(saveButton); makes more sense to me.

Similar comment to other functions.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

await importWizard.next();
// Review
await importWizard.confirmAndCreate();
await importWizard.waitForCreation();
Copy link
Contributor

@mareklibra mareklibra Jan 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to check the result?

This can be added in a follow-up, if complicated now.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think additional checking errors would be beneficial at the moment.
Currently the function call await importWizard.waitForCreation(); waits for success message, so if the creation fails for some reason, exception will be raised here and we'll have a screenshot taken wit the error.

We could improve it by reading the error message and returning it if VM creation fails, so that we can work with the error in the test function. This could be definitely useful for negative test scenarios.

I would leave it for a separate effort though.

@mareklibra
Copy link
Contributor

/lgtm
/retest

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 16, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mareklibra, rhrazdil

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@spadgett
Copy link
Member

/hold
until #3747 merges

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 16, 2020
@spadgett
Copy link
Member

/hold cancel
/test frontend

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 17, 2020
@openshift-merge-robot openshift-merge-robot merged commit c0e8d43 into openshift:master Jan 17, 2020
@spadgett spadgett added this to the v4.4 milestone Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/kubevirt Related to kubevirt-plugin lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants