-
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.
Merge pull request #40883 from owncloud/refactor-public-lock-lastshar…
…ed-folder [tests-only][full-ci] Use of publicWebDAVAPIVersion on publicLocksFileLastSharedFolder function
- Loading branch information
Showing
3 changed files
with
30 additions
and
5 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
18 changes: 18 additions & 0 deletions
18
tests/acceptance/features/apiWebdavLocks/publicLinkOc10Issue40882.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@api @smokeTest @public_link_share-feature-required @files_sharing-app-required | ||
Feature: persistent-locking in case of a public link | ||
|
||
|
||
Scenario Outline: Public locking is not supported | ||
Given user "Alice" has been created with default attributes and without skeleton files | ||
And user "Alice" has created folder "PARENT" | ||
And user "Alice" has created folder "PARENT/CHILD" | ||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "PARENT/parent.txt" | ||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "PARENT/CHILD/child.txt" | ||
And user "Alice" has created a public link share of folder "PARENT" with change permission | ||
When the public locks "/CHILD" in the last public link shared folder using the <public-webdav-api-version> public WebDAV API setting the following properties | ||
| lockscope | <lock-scope> | | ||
Then the HTTP status code should be "403" | ||
Examples: | ||
| public-webdav-api-version | lock-scope | | ||
| new | shared | | ||
| new | exclusive | |
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