Repository navigation
[Tests-Only] Refactor federation sharing tests for shares folder - #37967
Conversation
de93ebd to
eea8eda
Compare
eea8eda to
fc0f6c8
Compare
|
Fixed the fail here: https://drone.owncloud.com/owncloud/core/27091/104/18 squashed and rebased. |
Codecov Report
@@ Coverage Diff @@
## master #37967 +/- ##
=========================================
Coverage 64.72% 64.72%
Complexity 19445 19445
=========================================
Files 1286 1286
Lines 76037 76037
Branches 1336 1336
=========================================
Hits 49213 49213
Misses 26430 26430
Partials 394 394
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
| And using OCS API version "<ocs-api-version>" | ||
| When user "UNAUTHORIZED_USER" requests shared secret using the federation API | ||
| Then the HTTP status code should be "<http-status>" | ||
| Then the OCS status code should be "403" |
There was a problem hiding this comment.
| Then the OCS status code should be "403" | |
| And the OCS status code should be "403" |
This was a "problem" in the original feature file. Probably needs to be fixed in 2 places now.
Make the change if we need to fix other stuff also.
| And user "Carol" accepts share "/zzzfolder" offered by user "Brian" using the sharing API | ||
| And user "Brian" shares folder "randomfile.txt" with user "Carol" using the sharing API | ||
| And user "Carol" accepts share "/randomfile.txt" offered by user "Brian" using the sharing API | ||
| # local shares are taking priority at the moment |
There was a problem hiding this comment.
What does this mean?
In the steps below, /Shares/randomfile (2).txt is the one with the local content.
| # Remove this line once the issue is resolved | ||
| When the administrator sets parameter "autoAddServers" of app "federation" to "0" | ||
| And user "Alice" from server "REMOTE" shares "/textfile1.txt" with user "Brian" from server "LOCAL" using the sharing API | ||
| And as "Brian" file "Shares/textfile1.txt" should not exist |
There was a problem hiding this comment.
| And as "Brian" file "Shares/textfile1.txt" should not exist | |
| Then as "Brian" file "Shares/textfile1.txt" should not exist |
phil-davis
left a comment
There was a problem hiding this comment.
My previous review comments ended up being only trivial "usage of given-when-then-and" and a comment.
Those things were in the original code anyway, and can be adjusted in a cleanup.
Description
Refactor apiFederation tests for include default share folder.
Related Issue
Motivation and Context
How Has This Been Tested?
🤖
Screenshots (if appropriate):
Types of changes
Checklist: