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

Stop skipping advanced clone method tests with immediate bind annotation #3039

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

akalenyu
Copy link
Collaborator

What this PR does / why we need it:

  • Smart/CSI clone
    These tests are by definition only running on CSI storage (IsCSIVolumeCloneStorageClassAvailable/IsSnapshotStorageClassAvailable)
  • Snapshot clone
    This test is always getting skipped, since snapshots always imply the storage is CSI

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:

Release note:

NONE

- Smart/CSI clone
These tests are by definition only running on CSI storage (IsCSIVolumeCloneStorageClassAvailable/IsSnapshotStorageClassAvailable)
- Snapshot clone
This test is always getting skipped, since snapshots always imply the storage is CSI

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Dec 21, 2023
@akalenyu
Copy link
Collaborator Author

/cc @ShellyKa13

Comment on lines -2825 to -2831
By("Check host assisted clone is taking place")
pvc, err := f.K8sClient.CoreV1().PersistentVolumeClaims(dataVolume.Namespace).Get(context.TODO(), dataVolume.Name, metav1.GetOptions{})
Expect(err).ToNot(HaveOccurred())
suffix := "-host-assisted-source-pvc"
Expect(pvc.Annotations[controller.AnnCloneRequest]).To(HaveSuffix(suffix))
Expect(pvc.Spec.DataSource).To(BeNil())
Expect(pvc.Spec.DataSourceRef).To(BeNil())
Copy link
Collaborator

Choose a reason for hiding this comment

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

why was it removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we no longer fall back to host assisted - #2765
so now this test is just about the result being a success

@arnongilboa
Copy link
Collaborator

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 21, 2023
@akalenyu akalenyu changed the title Stop skipping fancy clone method tests with immediate bind annotation Stop skipping advanced clone method tests with immediate bind annotation Dec 21, 2023
@akalenyu
Copy link
Collaborator Author

akalenyu commented Jan 2, 2024

/test all

@akalenyu
Copy link
Collaborator Author

akalenyu commented Jan 2, 2024

/retest

@akalenyu
Copy link
Collaborator Author

akalenyu commented Jan 4, 2024

/test all

@awels
Copy link
Member

awels commented Jan 17, 2024

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: awels

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 17, 2024
@kubevirt-bot kubevirt-bot merged commit 1369d9d into kubevirt:main Jan 17, 2024
18 checks passed
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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants