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

Add schedule ordered resources E2E test #4913

Merged
merged 1 commit into from
May 18, 2022

Conversation

qiuming-best
Copy link
Contributor

Signed-off-by: Ming mqiu@vmware.com

Thank you for contributing to Velero!

Please add a summary of your change

it refer to #4561, E2E test on schedule ordered resources

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

@qiuming-best qiuming-best requested review from danfengliu and blackpiglet and removed request for reasonerjt May 16, 2022 01:54
@qiuming-best qiuming-best changed the title Add schedule ordered resources test Add schedule ordered resources E2E test May 16, 2022
@codecov-commenter
Copy link

codecov-commenter commented May 16, 2022

Codecov Report

Merging #4913 (e5fa2c0) into main (99e49c6) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #4913      +/-   ##
==========================================
- Coverage   41.70%   41.69%   -0.01%     
==========================================
  Files         204      204              
  Lines       18040    18263     +223     
==========================================
+ Hits         7523     7615      +92     
- Misses       9956    10069     +113     
- Partials      561      579      +18     
Impacted Files Coverage Δ
...g/controller/backup_storage_location_controller.go 57.14% <0.00%> (-23.04%) ⬇️
pkg/backup/item_collector.go 59.51% <0.00%> (-1.97%) ⬇️
pkg/controller/gc_controller.go 76.31% <0.00%> (-1.87%) ⬇️
pkg/restore/restore.go 65.71% <0.00%> (-0.96%) ⬇️
pkg/install/resources.go 52.55% <0.00%> (-0.25%) ⬇️
pkg/cmd/server/server.go 7.02% <0.00%> (-0.03%) ⬇️
pkg/builder/backup_builder.go 0.00% <0.00%> (ø)
pkg/builder/restore_builder.go 0.00% <0.00%> (ø)
pkg/cmd/util/output/restore_describer.go 0.00% <0.00%> (ø)
pkg/controller/backup_controller.go 48.29% <0.00%> (+0.22%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99e49c6...e5fa2c0. Read the comment docs.

err := test.Init()
Expect(err).To(Succeed(), err)
defer func() {
Expect(DeleteNamespace(test.Ctx, test.Client, test.Namespace, false)).To(Succeed(), fmt.Sprintf("Failed to delete the namespace %s", test.Namespace))
Copy link
Contributor

Choose a reason for hiding this comment

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

How about define a function to deal with velero schedule command, then other test cases can reuse it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@danfengliu yeah, I've modified

Signed-off-by: Ming <mqiu@vmware.com>
@ywk253100 ywk253100 merged commit 51de990 into vmware-tanzu:main May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants