-
Notifications
You must be signed in to change notification settings - Fork 54
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
test(negative): implement backupstore setup #1539
Conversation
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.
Some feedback, but I didn't review all of them. Some need to be resolved first.
backupstore.py seems verbose and unstructured. I would suggest doing the below.
Use different Python modules to aggregate the related codes.
- backupstore/__init__.py including all common functions for backupstore
backupstore/nfs.py
backupstore/minio.py (but actually it's s3)
Also, using the common naming (verb) for the function and method name instead, backupstore_cleanup
should be changed to cleanup_backupstore
and added to backupstore/__init__.py.
Please review the code and do the corresponding update.
Refined to have class structure. |
@longhorn/qa @innobead This PR is required to run negative test case |
dbfbd7b
to
bddaaee
Compare
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 assume most of the codes are moved from the integration tests as I see there are some variables that are still undefined, and the functions could be better organized. However, as long as the tests can run I think it's fine to merge this first and enhance later.
cc @innobead
bddaaee
to
dee7656
Compare
This pull request is now in conflicts. Could you fix it @yangchiu? 🙏 |
b22e5ea
to
b1c1741
Compare
36a5e11
to
26966bd
Compare
dd64a57
to
7d5be6d
Compare
(1) add backupstore.py for robot test cases (2) only support s3 now, the subprocess parts in backupstore.py need to be refined to make nfs work Signed-off-by: Yang Chiu <yang.chiu@suse.com>
Merge commits are not allowed on this repository
test: implement backupstore setup
(1) add backupstore.py for robot test cases
(2) only support s3 now, the subprocess parts in backupstore.py need to be refined to make nfs work
(3) fix wrong longorn client url issue when using it out-of-cluster (the same issue as #1300 (comment))
For longhorn/longhorn#6710
Signed-off-by: Yang Chiu yang.chiu@suse.com