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 E2E tests for restore + backup safety #104

Closed
jsilvela opened this issue May 5, 2022 · 1 comment · Fixed by #222
Closed

Add E2E tests for restore + backup safety #104

jsilvela opened this issue May 5, 2022 · 1 comment · Fixed by #222
Assignees
Milestone

Comments

@jsilvela
Copy link
Collaborator

jsilvela commented May 5, 2022

We are adding logic to the operator to:

  • avoid having a cluster back up into the same location it restored from
  • avoid having a cluster back up into a location already used by another

See issues #61 and #62
Our existing E2E suite covers backup and recovery separately, but not "restored cluster has a backup spec".

Scenarios:

  • We have cluster A. We create a cluster B to restore from A, but the YAML for B specifies the same barman object as A. --> FAIL
  • We have cluster A. Create cluster B which recovers from A and uses a new location for Backup. Create cluster C which recovers from B and uses A's bucket as a Backup location --> FAIL
  • We have cluster A. Create cluster B which recovers from A and back-up's into X. Get B to come up properly and perhaps force some WAL writing. Create cluster C from A, and back up into X too. --> FAIL
  • We have cluster A. Create cluster B which backs up to new location X --> AOK
@jsilvela jsilvela changed the title Add E2E tests for restore + backup Add E2E tests for restore + backup safety May 5, 2022
@gbartolini gbartolini added this to the v1.16.x milestone May 23, 2022
@danishedb danishedb linked a pull request May 31, 2022 that will close this issue
@danishedb
Copy link
Contributor

Added one more scenario where we are verifying cluster creation with same destination path in two different namespace.
We have cluster A. Create cluster B which backs up to new location X --> AOK Didnot added this test cause it is covered already within tests.

@danishedb danishedb removed their assignment May 31, 2022
@sxd sxd removed their assignment Jun 3, 2022
@litaocdl litaocdl self-assigned this Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

5 participants