-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use fakeclient instead of reactor in vmclone #10908
Conversation
Skipping CI for Draft Pull Request. |
ceae869
to
037a504
Compare
/cc ignore |
@Longchuanzheng: GitHub didn't allow me to request PR reviews from the following users: Longchuanzheng. Note that only kubevirt members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
037a504
to
60fafc8
Compare
60fafc8
to
9f58994
Compare
9f58994
to
df1ec74
Compare
df1ec74
to
bfc4f08
Compare
5c73d8d
to
8029240
Compare
8029240
to
a8d9806
Compare
/retest |
…r block Signed-off-by: fossedihelm <ffossemo@redhat.com>
Introduce `testCloneUID`, `testSnapshotName`, `testRestoreName`, `testSnapshotContentName` constants. Signed-off-by: fossedihelm <ffossemo@redhat.com>
There are two `BeforeEach` functions that can be merged into one. Since the resulting function is big, let's split it into functions for logical steps. Signed-off-by: fossedihelm <ffossemo@redhat.com>
There is no reason to expect the snapshotContent api call, since in the production code it does not happen. This is a perfect example of why reactors can be bad sometimes. Signed-off-by: fossedihelm <ffossemo@redhat.com>
Instead of using plain `It` node, wrap logical and functional contexts in `When` spec. Signed-off-by: fossedihelm <ffossemo@redhat.com>
Using fake client has a benefit to actually assert on what exactly we can find after a cycle. In this way we can check whether a restore or a snapshot are gone or not. Signed-off-by: fossedihelm <ffossemo@redhat.com>
a8d9806
to
9d338b7
Compare
Thank you @xpivarc! Comment addressed and rebased on |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xpivarc 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 |
/lgtm |
Required labels detected, running phase 2 presubmits: |
/retest-required |
@fossedihelm: The following tests failed, say
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. I understand the commands that are listed here. |
/cherry-pick release-1.2 |
@Barakmor1: new pull request created: #11333 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. |
What this PR does / why we need it:
Using fake client has a benefit to actually
assert on what exactly we can find after a cycle.
In this way we can check whether a restore or a
snapshot are gone or not.
This PR contains a refactoring of the whole vmclone test file.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
In order to increase readability I split this work in logical steps.
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note: