Adding more trashbin scenarios#28111
Conversation
3645c4e to
d5be5d7
Compare
|
The requests to |
| When User "user1" deletes folder "/shared" | ||
| Then as "user1" the folder with original path "/shared" does not exist in trash | ||
|
|
||
| Scenario: deleting a file in a recieved folder doesn't moves it to trashbin |
There was a problem hiding this comment.
There are a few "recieved" - here and further down.
s/recieved/received
Isn't English a great language ;)
|
Pending to be done: fixes for the two failing cases. Check if the whole suite pass after last changes. |
a91f271 to
ed84700
Compare
|
If your suite contains tests, which point out bugs, is this a blocker for merging the tests? |
|
The other option, if fixes are going to be some time away, is to tag the scenarios that fail with @Skip so that they are skipped in "normal" CI runs. Then in the PR that fixes the bug, also remove the @Skip tag. |
|
Failing cases in jenkins: Pending to implement the skip label to fix this cases in a different PR. |
|
are these cases reproducible manually ? AFAIK at least storing two files with different origins should still work. |
|
Regarding "deleting a file in a received folder it is moved to the trashbin", yes I opened it here, the problem is a missing parameter called 'extraData': Regarding "trashbin can store two files with same name but different origins", I cannot reproduce it manually, but in the tests it always fails. trashbin-old-endpoint.Deleting a folder into external storage moves it to the trashbin This one is a test problem, I can fix it. trashbin-old-endpoint.Deleting a file into external storage moves it to the trashbin and can be restored This one has the same problem as the previous one, fixable in tests, but maybe the restoration part is affected also by the missing 'extraData' parameter bug. |
|
if manual reproduction doesn't work but automated test fails, then maybe the tests aren't doing exactly the same, or it's not using the same APIs. |
|
Now the tests: trashbin-new-endpoint.deleting a file in a received folder it is moved to the trashbin Are skipped. To be removed the "@Skip" label to run them when fixing the actual core issues. |
Is this reproducible manually ? Last time I tested this manually when working on this part all worked fine. |
|
Actually both the owner trashbin and recipient trashbin should receive the file. |
|
ok |
4f1d176 to
3331362
Compare
|
Here is the fix for restoring into the wrong folder: #28196 |
|
See https://github.com/owncloud/core/blob/master/apps/files_trashbin/tests/TrashbinTest.php#L639 for more restore cases to cover |
1a3ac4a to
d31607b
Compare
d31607b to
1c9915e
Compare
… (not working yet)
…as web since trashbin requires it
… to run the tests afterwards
1c9915e to
aa1fbcc
Compare
| | /textfile3.txt | | ||
| | /textfile4.txt | | ||
|
|
||
| @skip |
There was a problem hiding this comment.
we still have skipped tests ?
There was a problem hiding this comment.
Yes, that scenario is not related with the extraData fix.
It doesn't fail manually, but in the test it always fail. I recommend to merge this and take a look when you want. The test doesn't seem wrong, looks like a hidden bug not reproducible using the ui.
|
backport? |
|
Ok, to stable10 and others? or just stable10? |
|
as far as possible I'd say to guarantee coverage on older versions too. |
|
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. |
Something is failing in the second scenario. The listed elements of the trashbin are less than expected and the file the case is looking for is not found.