-
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
API-test-share-disableGroupShare #31709
Conversation
Codecov Report
@@ Coverage Diff @@
## master #31709 +/- ##
=========================================
Coverage 63.15% 63.15%
Complexity 18442 18442
=========================================
Files 1158 1158
Lines 69279 69279
Branches 1260 1260
=========================================
Hits 43755 43755
Misses 25155 25155
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.
New scenarios look fine. See other comments.
@@ -864,7 +864,7 @@ public function userSharesFileWithGroupUsingTheAPI( | |||
} | |||
|
|||
/** | |||
* @Then /^user "([^"]*)" should not be able to share (?:file|folder|entry) "([^"]*)" with (?:user|group) "([^"]*)"(?: with permissions ([\d]*))? using the API$/ | |||
* @Then /^user "([^"]*)" should not be able to share (?:file|folder|entry) "([^"]*)" with user "([^"]*)"(?: with permissions ([\d]*))? using the API$/ |
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.
It seems a pity to repeat most of this code. You could just remove ?:
from (?:user|group)
to be (user|group)
and then you will add that as a parameter. Then you can easily decide if user, pass 0 to createShare
otherwise pass 1.
@@ -12,7 +12,6 @@ So that ownCloud users cannot share file or folder | |||
Given as user "admin" |
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.
There are a few more of these "random" as user "admin"
lines in here. I suspect none of them are needed.
edca093
to
0286634
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.
Now you need to resolve the conflicts here - the other PR had changes in similar places.
0286634
to
004a998
Compare
Backport on #31746 |
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
This PR adds test to check the behavior of sharing API when group sharing is disabled
Related Issue
#31531
How Has This Been Tested?
Locally
Types of changes
Checklist: