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
Kubevirt - Dedicated Resources Modal Test #4263
Kubevirt - Dedicated Resources Modal Test #4263
Conversation
@@ -71,7 +72,7 @@ const ResourceModal = withHandlePromise<ResourceModalProps>( | |||
label="Schedule this workload with dedicated resources (guaranteed policy)" | |||
isChecked={isPinned} | |||
isDisabled={isLoading} | |||
onChange={setIsPinned} | |||
onChange={(flag) => setIsPinned(flag)} |
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.
react.setState doesn't support 2 args
|
||
const vm = new VirtualMachine(vmConfig(configName.toLowerCase(), testName, provisionConfig)); | ||
await withResource(leakedResources, vm.asResource(), async () => { | ||
await vm.create(vm1Config); |
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.
We probably don't need to create the VM with Wizard, since wizard is not beign tested here. You can take a look at for example packages/kubevirt-plugin/integration-tests/tests/vm.detail.boot-order.scenario.ts
to see how a VM is created with createResource
method.
It's faster than creating the VM with wizard
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 fails for me, boot-order.scenario
fails aswell..can you check with your env @rhrazdil ?
await vm.modalEditDedicatedResources(); | ||
await click(editDedicatedResourcesView.guaranteedPolicyCheckbox); | ||
await click(editDedicatedResourcesView.saveButton); | ||
await browser.wait( |
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'd like to verify the change in the VM YAML, if any.
await vm.modalEditDedicatedResources(); | ||
await click(editDedicatedResourcesView.guaranteedPolicyCheckbox); | ||
await click(editDedicatedResourcesView.saveButton); | ||
await browser.wait( |
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.
Here as well
5e39620
to
fbe02ff
Compare
fbe02ff
to
15f1d5f
Compare
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: glekner, 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 |
/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. |
/retest Please review the full test history for this PR and help us cut down flakes. |
9 similar comments
/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. |
/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. |
/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. |
/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. |
/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. |
3 similar comments
/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. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold |
/hold cancel |
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/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. |
/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. |
No description provided.