-
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
[Tests-Only] Add acceptance tests to share top-level of read-only storage #37262
Conversation
Codecov Report
@@ Coverage Diff @@
## master #37262 +/- ##
=========================================
Coverage 64.55% 64.56%
Complexity 19218 19218
=========================================
Files 1268 1268
Lines 75104 75104
Branches 1331 1331
=========================================
+ Hits 48486 48493 +7
+ Misses 26226 26219 -7
Partials 392 392
Continue to review full report at Codecov.
|
tests/acceptance/features/webUIAdminSettings/adminStorageSettings.feature
Outdated
Show resolved
Hide resolved
5dc4594
to
408a149
Compare
tests/acceptance/features/cliLocalStorage/createLocalStorageReadOnlyAndShare.feature
Show resolved
Hide resolved
tests/acceptance/features/cliLocalStorage/createLocalStorageReadOnlyAndShare.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/webUIAdminSettings/adminStorageSettings.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/cliLocalStorage/createLocalStorageReadOnlyAndShare.feature
Outdated
Show resolved
Hide resolved
Scenario: applicable user is not able to share the top-level of read-only storage | ||
When user "user0" shares file "/local_storage1/file-in-local-storage.txt" with user "user1" using the sharing API | ||
Then the HTTP status code should be "200" | ||
And the OCS status code should be "100" | ||
And as "user1" file "file-in-local-storage.txt" should exist |
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 am surprised that this passes. But maybe when the share is created without specifying any permissions, then the server automatically sets read-only permissions.
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.
Then you could add a scenario that explicitly tries to share the file with all permissions, and that should fail.
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 believe that the share is created with all permissions when nothing is specified..That's what makes the difference in scenario:18 and scenario:24. And I also tried with all permissions declared explicitly and it passes. so I thought of not writing two different scenarios for the same thing, with default permissions, and with all permissions specified. What do you think?
tests/acceptance/features/cliLocalStorage/createLocalStorageReadOnlyAndShare.feature
Outdated
Show resolved
Hide resolved
6c4f163
to
57ba655
Compare
I rebased and squashed the commits. This is ready-to-merge when CI passes. |
Description
Add acceptance tests to share top-level of read-only storage
Related Issue
#36803
How Has This Been Tested?
CI
Types of changes
Checklist: