-
Notifications
You must be signed in to change notification settings - Fork 72
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
Adding function to verify Backup / Restore data #624
Adding function to verify Backup / Restore data #624
Conversation
deepakraj1997
commented
Apr 6, 2022
•
edited by kaovilai
Loading
edited by kaovilai
- Fix Bug: OADP tests/e2e backup and restore tests NEED to validate data matches before and after restore. #619
- Unable to verify Parks App data backup / restore due to multiple deployment of the same application on restore which makes the test cases unable to verify parks app.
Skipping CI for Draft Pull Request. |
@deepakraj1997 nice start dude! |
/retest |
@@ -47,6 +47,7 @@ var _ = Describe("AWS backup restore tests", func() { | |||
|
|||
parksAppReady := VerificationFunction(func(ocClient client.Client, namespace string) error { | |||
Eventually(IsDCReady(ocClient, "parks-app", "restify"), timeoutMultiplier*time.Minute*10, time.Second*10).Should(BeTrue()) | |||
// err := VerifyBackUpRestoreData(artifact_dir, namespace, "restify", "parks-app") // TODO: VERIFY PARKS APP DATA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks... looking at the parks app.. the last commit was in 2016. I'm a little suspicious of this app. https://github.com/ryanj/restify-mongodb-parks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had added the issue in the description although we could verify the data if we add a wait function.
/retest |
1 similar comment
/retest |
+1 to making this part of the validation VERY resiliant |
tests/e2e/lib/apps.go
Outdated
@@ -197,3 +203,54 @@ func RunMustGather(oc_cli string, artifact_dir string) error { | |||
_, err := cmd.Output() | |||
return err | |||
} | |||
|
|||
func VerifyBackUpRestoreData(artifact_dir string, namespace string, routeName string, app string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func VerifyBackUpRestoreData(artifact_dir string, namespace string, routeName string, app string) error { | |
func VerifyBackupRestoreData(artifact_dir string, namespace string, routeName string, app string) error { |
* created a version of todolist for mongo * ensure the manifest builds and triggers just like the parks-app did * adv is that the same app api can be used to add data to the db and check after restore. Related PR openshift#624 Resolves: openshift#646
/retest |
@deepakraj1997: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
* created a version of todolist for mongo * ensure the manifest builds and triggers just like the parks-app did * adv is that the same app api can be used to add data to the db and check after restore. Related PR openshift#624 Resolves: openshift#646
* created a version of todolist for mongo * ensure the manifest builds and triggers just like the parks-app did * adv is that the same app api can be used to add data to the db and check after restore. Related PR openshift#624 Resolves: openshift#646