Skip to content

Bug: OADP tests/e2e backup and restore tests NEED to validate data matches before and after restore. #619

@weshayutin

Description

@weshayutin

Contact Details

[email protected]

Describe bug

Looking at the tests/e2e code:
https://github.com/openshift/oadp-operator/blob/master/tests/e2e/backup_restore_suite_test.go#L136-L154

Once can see that the tests are not taking the raw db data prior to the backup and testing that the restore infact restored the data in the db. The test is only confirming that the application comes back up in a working state.

To fix this:

  1. Just before the backup is executed, dump the database table to file, take a md5sum check of the file
  2. backup, delete, restore app
  3. After the app is restored, again dump the database table to file, compare the restored md5sum to the md5sum prior to the backup.
  4. The two md5sum entries should match.

What happened?

There is no raw data tests being executed

OADP Version

1.0.1 (Stable)

OpenShift Version

4.10

Velero pod logs

No response

Restic pod logs

No response

Operator pod logs

No response

New issue

  • This issue is new

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions