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

Added volume snapshot test for backup/restore. #3592

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

dsu-igeek
Copy link
Contributor

Snapshot tests can be run with Ginkgo focus "Snapshot" and restic tests with
Ginkgo focus "Restic". Restic and volume snapshot tests can now be run simultaneously. Added check for kibishii app start
after restore. Consolidated kibishii pod checks into waitForKibishiiPods. Added WaitForPods function to e2e/tests/common.go
Snapshot tests are skipped automatically on kind clusters

Does your change fix a particular issue?

Fixes #3233

@dsu-igeek dsu-igeek added kind/release-blocker Must fix issues for the coming release (milestone) E2E Tests End to end test labels Mar 16, 2021
@dsu-igeek dsu-igeek added this to the v1.6.0 milestone Mar 16, 2021
@dsu-igeek dsu-igeek requested review from carlisia and zubron March 16, 2021 07:37
Copy link
Contributor

@zubron zubron left a comment

Choose a reason for hiding this comment

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

Thanks, @dsu-igeek! This looks good so far but there are a few cases where we're attempting to use volume snapshots but shouldn't be.

test/e2e/backup_test.go Outdated Show resolved Hide resolved
test/e2e/backup_test.go Outdated Show resolved Hide resolved
test/e2e/enable_api_group_versions_test.go Outdated Show resolved Hide resolved
test/e2e/common.go Outdated Show resolved Hide resolved
@dsu-igeek dsu-igeek force-pushed the e2e-volume-snapshots-03-12-2021 branch from 2096e9e to a415fb5 Compare March 17, 2021 00:30
@github-actions github-actions bot added the Dependencies Pull requests that update a dependency file label Mar 17, 2021
@dsu-igeek dsu-igeek added the kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes label Mar 17, 2021
@carlisia
Copy link
Contributor

@dsu-igeek I'm starting to look at this now. You might have noticed CI is failing:

Makefile:290: recipe for target 'verify-modules' failed

I also noticed there was no addition to the README but disregard if it's not needed.

@dsu-igeek dsu-igeek force-pushed the e2e-volume-snapshots-03-12-2021 branch from a415fb5 to 4da31f4 Compare March 17, 2021 17:11
@dsu-igeek
Copy link
Contributor Author

@carlisia The README didn't have anything to change (the use-volume-snapshots flag wasn't there before) so I'm going to leave that alone but I did add a changelog and fixed the module stuff. THanks!

…run with Ginkgo focus "Snapshot" and restic tests with

Ginkgo focus "Restic".  Restic and volume snapshot tests can now be run simultaneously.  Added check for kibishii app start
after restore.  Consolidated kibishii pod checks into waitForKibishiiPods.  Added WaitForPods function to e2e/tests/common.go
Snapshot tests are skipped automatically on kind clusters.  Fixed issue where velero_utils InstallVeleroServer was looking for the
Restic daemon set in the "velero" namespace only (was ignoring io.Namespace)

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
@dsu-igeek dsu-igeek force-pushed the e2e-volume-snapshots-03-12-2021 branch from 4da31f4 to bee3dec Compare March 17, 2021 17:46
Copy link
Contributor

@carlisia carlisia left a comment

Choose a reason for hiding this comment

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

LGTM

@carlisia carlisia requested a review from zubron March 17, 2021 18:34
Copy link
Contributor

@zubron zubron left a comment

Choose a reason for hiding this comment

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

Thanks!

@zubron zubron merged commit e9c9978 into vmware-tanzu:main Mar 17, 2021
pradeep288 pushed a commit to pradeep288/velero that referenced this pull request May 4, 2021
Snapshot tests can be run with Ginkgo focus "Snapshot" and restic tests with Ginkgo focus "Restic".
Restic and volume snapshot tests can now be run simultaneously.
Added check for kibishii app start after restore.
Consolidated kibishii pod checks into waitForKibishiiPods.
Added WaitForPods function to e2e/tests/common.goSnapshot tests are skipped automatically on kind clusters.
Fixed issue where velero_utils InstallVeleroServer was looking for the Restic daemon set in the "velero" namespace only (was ignoring io.Namespace)

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
Signed-off-by: Pradeep Jigalur <pjigalur@vmware.com>
dharmab pushed a commit to dharmab/velero that referenced this pull request May 25, 2021
Snapshot tests can be run with Ginkgo focus "Snapshot" and restic tests with Ginkgo focus "Restic".
Restic and volume snapshot tests can now be run simultaneously.
Added check for kibishii app start after restore.
Consolidated kibishii pod checks into waitForKibishiiPods.
Added WaitForPods function to e2e/tests/common.goSnapshot tests are skipped automatically on kind clusters.
Fixed issue where velero_utils InstallVeleroServer was looking for the Restic daemon set in the "velero" namespace only (was ignoring io.Namespace)

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
ywk253100 pushed a commit to ywk253100/velero that referenced this pull request Jun 29, 2021
Snapshot tests can be run with Ginkgo focus "Snapshot" and restic tests with Ginkgo focus "Restic".
Restic and volume snapshot tests can now be run simultaneously.
Added check for kibishii app start after restore.
Consolidated kibishii pod checks into waitForKibishiiPods.
Added WaitForPods function to e2e/tests/common.goSnapshot tests are skipped automatically on kind clusters.
Fixed issue where velero_utils InstallVeleroServer was looking for the Restic daemon set in the "velero" namespace only (was ignoring io.Namespace)

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
@dsu-igeek dsu-igeek deleted the e2e-volume-snapshots-03-12-2021 branch March 18, 2022 22:05
gyaozhou pushed a commit to gyaozhou/velero-read that referenced this pull request May 14, 2022
Snapshot tests can be run with Ginkgo focus "Snapshot" and restic tests with Ginkgo focus "Restic".
Restic and volume snapshot tests can now be run simultaneously.
Added check for kibishii app start after restore.
Consolidated kibishii pod checks into waitForKibishiiPods.
Added WaitForPods function to e2e/tests/common.goSnapshot tests are skipped automatically on kind clusters.
Fixed issue where velero_utils InstallVeleroServer was looking for the Restic daemon set in the "velero" namespace only (was ignoring io.Namespace)

Signed-off-by: Dave Smith-Uchida <dsmithuchida@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file E2E Tests End to end test has-e2e-tests kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes kind/release-blocker Must fix issues for the coming release (milestone)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E2E tests should use volume snapshots
3 participants