-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10dd14e
commit 2f57133
Showing
4 changed files
with
33 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
...areWithDisabledUserOc10Issue32068.feature → ...areWithDisabledUserOc10Issue32068.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
@api @files_sharing-app-required @issue-ocis-reva-243 | ||
@skipOnOcV10 @notToImplementOnOCIS | ||
Feature: share resources with a disabled user | ||
@api @files_sharing-app-required @issue-ocis-reva-243 @notToImplementOnOCIS | ||
Feature: share resources with a disabled user - current oC10 behavior for issue-32068 | ||
|
||
Background: | ||
Given user "Alice" has been created with default attributes and skeleton files | ||
|
||
@issue-32068 | ||
Scenario: Creating a new share with a disabled user | ||
Given user "Alice" has been created with default attributes and skeleton files | ||
And using OCS API version "2" | ||
Given using OCS API version "2" | ||
And user "Brian" has been created with default attributes and without skeleton files | ||
And user "Alice" has been disabled | ||
When user "Alice" shares file "welcome.txt" with user "Brian" using the sharing API | ||
Then the OCS status code should be "401" | ||
Then the OCS status code should be "997" | ||
#Then the OCS status code should be "401" | ||
And the HTTP status code should be "401" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 15 additions & 9 deletions
24
...t/moveReceivedShareOc10Issue30325.feature → ...t/moveReceivedShareOc10Issue30325.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
@api @files_sharing-app-required @issue-ocis-reva-14 @issue-ocis-reva-243 | ||
@skipOnOcV10 @notToImplementOnOCIS | ||
Feature: sharing | ||
@api @files_sharing-app-required @notToImplementOnOCIS | ||
Feature: sharing - current oC10 behavior for issue-30325 | ||
|
||
@issue-30325 | ||
Scenario: receiver tries to rename a received share with share, read permissions | ||
Background: | ||
Given using OCS API version "1" | ||
And these users have been created with default attributes and skeleton files: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
| Carol | | ||
And user "Alice" has created folder "folderToShare" | ||
|
||
@issue-30325 | ||
Scenario: receiver tries to rename a received share with share, read permissions | ||
Given user "Alice" has created folder "folderToShare" | ||
And user "Alice" has uploaded file with content "thisIsAFileInsideTheSharedFolder" to "/folderToShare/fileInside" | ||
And user "Alice" has shared folder "folderToShare" with user "Brian" with permissions "share,read" | ||
When user "Brian" moves folder "folderToShare" to "myFolder" using the WebDAV API | ||
Then the HTTP status code should be "201" | ||
And as "Brian" folder "myFolder" should exist | ||
Then the HTTP status code should be "403" | ||
# Then the HTTP status code should be "201" | ||
And as "Brian" folder "myFolder" should not exist | ||
# And as "Brian" folder "myFolder" should exist | ||
But as "Alice" folder "myFolder" should not exist | ||
When user "Brian" moves file "/myFolder/fileInside" to "/myFolder/renamedFile" using the WebDAV API | ||
# When user "Brian" moves file "/myFolder/fileInside" to "/myFolder/renamedFile" using the WebDAV API | ||
When user "Brian" moves file "/folderToShare/fileInside" to "/folderToShare/renamedFile" using the WebDAV API | ||
Then the HTTP status code should be "403" | ||
And as "Brian" file "/folderToShare/renamedFile" should not exist | ||
# And as "Brian" file "/myFolder/renamedFile" should not exist | ||
But as "Brian" file "/folderToShare/fileInside" should exist | ||
# But as "Brian" file "/myFolder/fileInside" should exist |