-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 version restore tests when sharee has moved the shared folder or file #31680
Conversation
And user "user1" has been created | ||
And user "user0" has uploaded file with content "old content" to "/sharefile.txt" | ||
And user "user0" has uploaded file with content "new content" to "/sharefile.txt" | ||
And user "user0" has shared file "/sharefile.txt" with user "user1" |
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.
@phil-davis please add another scenario where the source shared file is in "/outgoing/sharefile.txt" and where "outgoing/sharefile.txt" is shared with "user1". This would match the steps from #31681
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.
done - that scenario also passes. so I expect this stuff is OK in master
for things that use these endpoints.
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.
yes, it is ok on master and also my manual test doesn't reproduce the issue on stable10 backport of object store: #31050
let's merge this PR and backport it then
006d530
to
06350c2
Compare
Codecov Report
@@ Coverage Diff @@
## master #31680 +/- ##
=========================================
Coverage 62.89% 62.89%
Complexity 18418 18418
=========================================
Files 1154 1154
Lines 69157 69157
Branches 1260 1260
=========================================
Hits 43499 43499
Misses 25289 25289
Partials 369 369
Continue to review full report at Codecov.
|
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.
👍 please backport
Backported to #31050 object store changes |
@phil-davis can you also put them in a temp PR directly to stable10 to confirm the test will fail ? (or run it locally) |
I will look and see what test step code is needed out of the object-store backport, and if the used endpoints work in "raw" |
@phil-davis I think dav-versions never existed before and got written from scratch for the object store part, because object store work provided new API endpoints for versions. So the tests in questions (at least the steps) can only work with that API endpoint, which is also provided somewhere in this PR. We cannot easily move that directly to stable10 without rewriting the steps to use the old private APIs... so better leave it here where it belongs. |
Yes, I just found that in "raw"
The test code accesses a |
@phil-davis argh, indeed. That's the endpoint that the backport brings in for the version changes. So we couldn't make this test work with the old API without changing the steps to talk to the old private API. Ok, let's leave this then. |
As a separate thing tomorrow morning, I will see if I can make a version restore test in the webUI that will go through the described steps in the issue. I think we have some webUI restore steps already, so it might be quite easy (famous last words) to construct a scenario that fails. That would provide something that a dev can use to confirm a fix. |
great plan, thanks |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Add test cases for when a sharee receives a file or folder, then moves that file or folder and then tries to restore old versions.
Refactor some existing tests to check the version recovery a bit more cleanly.
Related Issue
#31681
Motivation and Context
Some issues have been reported when the sharee (receiver of a shared file or folder) moves the received share, then tries to restore an old version. Make some tests to check this behavior.
How Has This Been Tested?
Local API acceptance test run
Types of changes
Checklist: