Removed scenarios tagged with notToImplementOnOcis tag
This commit is contained in:
@@ -1,310 +0,0 @@
|
||||
@api @issue-ocis-2413 @notToImplementOnOCIS
|
||||
Feature: UNLOCK locked items
|
||||
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes and without skeleton files
|
||||
|
||||
|
||||
Scenario Outline: a group can be added as a lock breaker group
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
When the administrator sets parameter "lock-breaker-groups" of app "core" to '["grp1"]'
|
||||
Then the HTTP status code should be "200"
|
||||
And group "grp1" should exist as a lock breaker group
|
||||
Examples:
|
||||
| dav-path |
|
||||
| old |
|
||||
| new |
|
||||
|
||||
|
||||
Scenario Outline: more than one group can be added as a lock breaker group
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And group "grp2" has been created
|
||||
When the administrator sets parameter "lock-breaker-groups" of app "core" to '["grp1","grp2"]'
|
||||
Then the HTTP status code should be "200"
|
||||
And following groups should exist as lock breaker groups
|
||||
| groups |
|
||||
| grp1 |
|
||||
| grp2 |
|
||||
Examples:
|
||||
| dav-path |
|
||||
| old |
|
||||
| new |
|
||||
|
||||
|
||||
Scenario Outline: member of the lock breakers group can unlock a locked folder shared with them
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1"]'
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Alice" has locked folder "FOLDER" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "FOLDER" with user "Brian"
|
||||
When user "Brian" unlocks folder "FOLDER" with the last created lock of folder "FOLDER" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for folder "FOLDER" of user "Brian" by the WebDAV API
|
||||
And 0 locks should be reported for folder "FOLDER" of user "Alice" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: members of the lock breakers group can lock shared folder that was unlocked by the lock breaker group before
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1"]'
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Alice" has locked folder "FOLDER" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "FOLDER" with user "Brian"
|
||||
And user "Brian" has unlocked folder "FOLDER" with the last created lock of folder "FOLDER" of user "Alice" using the WebDAV API
|
||||
When user "Brian" locks folder "FOLDER" using the WebDAV API setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
Then the HTTP status code should be "200"
|
||||
And 1 locks should be reported for folder "FOLDER" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: members of the lock breakers group can unlock a locked file shared with them
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt"
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1"]'
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Alice" has locked file "textfile0.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared file "textfile0.txt" with user "Brian"
|
||||
When user "Brian" unlocks file "textfile0.txt" with the last created lock of file "textfile0.txt" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for file "textfile0.txt" of user "Brian" by the WebDAV API
|
||||
And 0 locks should be reported for file "textfile0.txt" of user "Alice" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: members of the lock breakers group can lock shared file that was unlocked by the lock breaker group before
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt"
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1"]'
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Alice" has locked file "textfile0.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared file "textfile0.txt" with user "Brian"
|
||||
And user "Brian" has unlocked file "textfile0.txt" with the last created lock of folder "textfile0.txt" of user "Alice" using the WebDAV API
|
||||
When user "Brian" locks file "textfile0.txt" using the WebDAV API setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
Then the HTTP status code should be "200"
|
||||
And 1 locks should be reported for file "textfile0.txt" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for file "textfile0.txt" of user "Alice" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as a member of lock breaker group unlocking a file in a share locked by the file owner is possible
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1"]'
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Alice" has created folder "PARENT"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "PARENT/parent.txt"
|
||||
And user "Alice" has locked file "PARENT/parent.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
When user "Brian" unlocks file "PARENT/parent.txt" with the last created lock of file "PARENT/parent.txt" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for file "PARENT/parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as a member of lock breaker group unlocking a folder in a share locked by the folder owner is possible
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1"]'
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Alice" has created folder "PARENT"
|
||||
And user "Alice" has created folder "CHILD"
|
||||
And user "Alice" has locked folder "PARENT/CHILD" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
When user "Brian" unlocks folder "PARENT/CHILD" with the last created lock of folder "PARENT/CHILD" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for folder "PARENT/CHILD" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for folder "PARENT/CHILD" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: members of different lock breaker groups can lock and unlock same folder shared to them
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And group "grp2" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Carol" has been created with default attributes and without skeleton files
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1","grp2"]'
|
||||
And user "Carol" has been added to group "grp2"
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Alice" has created folder "PARENT"
|
||||
And user "Alice" has locked folder "PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
And user "Alice" has shared folder "PARENT" with user "Carol"
|
||||
When user "Brian" unlocks folder "PARENT" with the last created lock of file "PARENT" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for folder "PARENT" of user "Brian" by the WebDAV API
|
||||
And 0 locks should be reported for folder "PARENT" of user "Carol" by the WebDAV API
|
||||
When user "Brian" locks folder "PARENT" using the WebDAV API setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And 1 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for folder "PARENT" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for folder "PARENT" of user "Carol" by the WebDAV API
|
||||
Then the HTTP status code should be "200"
|
||||
When user "Carol" unlocks folder "PARENT" with the last created lock of folder "PARENT" of user "Brian" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for folder "PARENT" of user "Brian" by the WebDAV API
|
||||
And 0 locks should be reported for folder "PARENT" of user "Carol" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: members of different lock breaker groups can lock and unlock same file shared to them
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And group "grp2" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Carol" has been created with default attributes and without skeleton files
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1","grp2"]'
|
||||
And user "Carol" has been added to group "grp2"
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt"
|
||||
And user "Alice" has locked file "textfile.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared file "textfile.txt" with user "Brian"
|
||||
And user "Alice" has shared file "textfile.txt" with user "Carol"
|
||||
When user "Brian" unlocks file "textfile.txt" with the last created lock of file "textfile.txt" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for file "textfile.txt" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for file "textfile.txt" of user "Brian" by the WebDAV API
|
||||
And 0 locks should be reported for file "textfile.txt" of user "Carol" by the WebDAV API
|
||||
When user "Brian" locks file "textfile.txt" using the WebDAV API setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And 1 locks should be reported for file "textfile.txt" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "textfile.txt" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for file "textfile.txt" of user "Carol" by the WebDAV API
|
||||
Then the HTTP status code should be "200"
|
||||
When user "Carol" unlocks file "textfile.txt" with the last created lock of file "textfile.txt" of user "Brian" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for file "textfile.txt" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for file "textfile.txt" of user "Brian" by the WebDAV API
|
||||
And 0 locks should be reported for file "textfile.txt" of user "Carol" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: members of lock breaker group can unlock a folder in group sharing
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And group "grp2" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Carol" has been created with default attributes and without skeleton files
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1"]'
|
||||
And user "Carol" has been added to group "grp2"
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Brian" has been added to group "grp2"
|
||||
And user "Alice" has created folder "PARENT"
|
||||
And user "Alice" has locked folder "PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "PARENT" with group "grp2"
|
||||
When user "Carol" unlocks folder "PARENT" with the last created lock of folder "PARENT" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 1 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for folder "PARENT" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for folder "PARENT" of user "Carol" by the WebDAV API
|
||||
When user "Brian" unlocks folder "PARENT" with the last created lock of file "PARENT" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for folder "PARENT" of user "Brian" by the WebDAV API
|
||||
And 0 locks should be reported for folder "PARENT" of user "Carol" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: members of lock breaker group can unlock a file in group sharing
|
||||
Given using <dav-path> DAV path
|
||||
And group "grp1" has been created
|
||||
And group "grp2" has been created
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Carol" has been created with default attributes and without skeleton files
|
||||
And parameter "lock-breaker-groups" of app "core" has been set to '["grp1"]'
|
||||
And user "Carol" has been added to group "grp2"
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Brian" has been added to group "grp2"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt"
|
||||
And user "Alice" has locked file "textfile0.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared file "textfile0.txt" with group "grp2"
|
||||
When user "Carol" unlocks file "textfile0.txt" with the last created lock of file "textfile0.txt" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 1 locks should be reported for file "textfile0.txt" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "textfile0.txt" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for file "textfile0.txt" of user "Carol" by the WebDAV API
|
||||
When user "Brian" unlocks file "textfile0.txt" with the last created lock of file "textfile0.txt" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for file "textfile0.txt" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for file "textfile0.txt" of user "Brian" by the WebDAV API
|
||||
And 0 locks should be reported for file "textfile0.txt" of user "Carol" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
@@ -4,26 +4,6 @@ Feature: UNLOCK locked items
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes and without skeleton files
|
||||
|
||||
@smokeTest @notToImplementOnOCIS
|
||||
Scenario Outline: unlock a single lock set by the user itself
|
||||
Given using <dav-path> DAV path
|
||||
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 locked folder "PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
When user "Alice" unlocks the last created lock of folder "PARENT" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for folder "PARENT/CHILD" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: unlock one of multiple locks set by the user itself
|
||||
Given using <dav-path> DAV path
|
||||
@@ -45,25 +25,6 @@ Feature: UNLOCK locked items
|
||||
| dav-path |
|
||||
| spaces |
|
||||
|
||||
@notToImplementOnOCIS
|
||||
Scenario Outline: unlocking a file that was locked by the user locking the folder above is not possible
|
||||
Given using <dav-path> DAV path
|
||||
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/CHILD/child.txt"
|
||||
And user "Alice" has locked folder "PARENT/CHILD" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
When user "Alice" unlocks file "PARENT/CHILD/child.txt" with the last created lock of folder "PARENT/CHILD" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 1 locks should be reported for file "PARENT/CHILD/child.txt" of user "Alice" by the WebDAV API
|
||||
And 2 locks should be reported for folder "PARENT/CHILD" of user "Alice" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
@files_sharing-app-required
|
||||
Scenario Outline: as public unlocking a file in a share that was locked by the file owner is not possible. To unlock use the owners locktoken
|
||||
Given user "Alice" has created folder "PARENT"
|
||||
@@ -79,33 +40,6 @@ Feature: UNLOCK locked items
|
||||
| shared |
|
||||
| exclusive |
|
||||
|
||||
@notToImplementOnOCIS
|
||||
Scenario Outline: unlocking a file or folder does not unlock another folder with the same name in another part of the file system
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has created folder "locked"
|
||||
And user "Alice" has created folder "locked/PARENT"
|
||||
And user "Alice" has created folder "notlocked"
|
||||
And user "Alice" has created folder "notlocked/PARENT"
|
||||
And user "Alice" has created folder "alsonotlocked"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/alsonotlocked/PARENT"
|
||||
And user "Alice" has locked folder "locked/PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has locked folder "notlocked/PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has locked file "alsonotlocked/PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
When user "Alice" unlocks the last created lock of folder "notlocked/PARENT" using the WebDAV API
|
||||
And user "Alice" unlocks the last created lock of file "alsonotlocked/PARENT" using the WebDAV API
|
||||
Then user "Alice" should be able to upload file "filesForUpload/lorem.txt" to "/notlocked/PARENT/file.txt"
|
||||
And user "Alice" should be able to upload file "filesForUpload/lorem.txt" to "/alsonotlocked/PARENT"
|
||||
But user "Alice" should not be able to upload file "filesForUpload/lorem.txt" to "/locked/PARENT/textfile0.txt"
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: unlocking a file or folder does not unlock another file with the same name in another part of the file system
|
||||
Given using <dav-path> DAV path
|
||||
|
||||
@@ -1,143 +0,0 @@
|
||||
@api @issue-ocis-reva-172 @files_sharing-app-required @notToImplementOnOCIS
|
||||
Feature: UNLOCK locked items (sharing)
|
||||
|
||||
Background:
|
||||
Given these users have been created with default attributes and without skeleton files:
|
||||
| username |
|
||||
| Alice |
|
||||
| Brian |
|
||||
And user "Alice" has created folder "PARENT"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "PARENT/parent.txt"
|
||||
|
||||
|
||||
Scenario Outline: as share receiver unlocking a shared file locked by the file owner is not possible. To unlock use the owners locktoken
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has locked file "PARENT/parent.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared file "PARENT/parent.txt" with user "Brian"
|
||||
When user "Brian" unlocks file "parent.txt" with the last created lock of file "PARENT/parent.txt" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as share receiver unlocking a file in a share locked by the file owner is not possible. To unlock use the owners locktoken
|
||||
Given using <dav-path> DAV path
|
||||
And user "Brian" has created folder "PARENT"
|
||||
And user "Brian" has uploaded file "filesForUpload/textfile.txt" to "PARENT/parent.txt"
|
||||
And user "Alice" has locked file "PARENT/parent.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
When user "Brian" unlocks file "PARENT (2)/parent.txt" with the last created lock of file "PARENT/parent.txt" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "PARENT (2)/parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as share receiver unlocking a shared folder locked by the file owner is not possible. To unlock use the owners locktoken
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has created folder "PARENT/CHILD"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "PARENT/CHILD/child.txt"
|
||||
And user "Alice" has locked folder "PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
When user "Brian" unlocks folder "PARENT" with the last created lock of folder "PARENT" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 3 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 2 locks should be reported for folder "PARENT/CHILD" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 3 locks should be reported for folder "PARENT" of user "Brian" by the WebDAV API
|
||||
And 2 locks should be reported for folder "PARENT/CHILD" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as share receiver unlock a shared file
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has shared file "PARENT/parent.txt" with user "Brian"
|
||||
And user "Brian" has locked file "parent.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
When user "Brian" unlocks the last created lock of file "parent.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And 0 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 0 locks should be reported for file "parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as owner unlocking a shared file locked by the receiver is not possible. To unlock use the receivers locktoken
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has shared file "PARENT/parent.txt" with user "Brian"
|
||||
And user "Brian" has locked file "parent.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
When user "Alice" unlocks file "PARENT/parent.txt" with the last created lock of file "parent.txt" of user "Brian" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as owner unlocking a file in a share that was locked by the share receiver is not possible. To unlock use the receivers locktoken
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
And user "Brian" has locked file "PARENT/parent.txt" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
When user "Alice" unlocks file "PARENT/parent.txt" with the last created lock of file "PARENT/parent.txt" of user "Brian" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as owner unlocking a shared folder locked by the share receiver is not possible. To unlock use the receivers locktoken
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has created folder "PARENT/CHILD"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "PARENT/CHILD/child.txt"
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
And user "Brian" has locked folder "PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
When user "Alice" unlocks folder "PARENT" with the last created lock of folder "PARENT" of user "Brian" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 3 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 2 locks should be reported for folder "PARENT/CHILD" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 3 locks should be reported for folder "PARENT" of user "Brian" by the WebDAV API
|
||||
And 2 locks should be reported for folder "PARENT/CHILD" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
@@ -59,30 +59,6 @@ Feature: UNLOCK locked items (sharing)
|
||||
| spaces | shared |
|
||||
| spaces | exclusive |
|
||||
|
||||
@notToImplementOnOCIS
|
||||
Scenario Outline: as share receiver unlocking a shared folder locked by the file owner is not possible. To unlock use the owners locktoken
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has created folder "PARENT/CHILD"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "PARENT/CHILD/child.txt"
|
||||
And user "Alice" has locked folder "PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
And user "Brian" has accepted share "/PARENT" offered by user "Alice"
|
||||
When user "Brian" unlocks folder "Shares/PARENT" with the last created lock of folder "PARENT" of user "Alice" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 3 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 2 locks should be reported for folder "PARENT/CHILD" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 3 locks should be reported for folder "Shares/PARENT" of user "Brian" by the WebDAV API
|
||||
And 2 locks should be reported for folder "Shares/PARENT/CHILD" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for file "Shares/PARENT/parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
|
||||
Scenario Outline: as share receiver unlock a shared file
|
||||
Given using <dav-path> DAV path
|
||||
@@ -154,27 +130,3 @@ Feature: UNLOCK locked items (sharing)
|
||||
| dav-path | lock-scope |
|
||||
| spaces | shared |
|
||||
| spaces | exclusive |
|
||||
|
||||
@notToImplementOnOCIS
|
||||
Scenario Outline: as owner unlocking a shared folder locked by the share receiver is not possible. To unlock use the receivers locktoken
|
||||
Given using <dav-path> DAV path
|
||||
And user "Alice" has created folder "PARENT/CHILD"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "PARENT/CHILD/child.txt"
|
||||
And user "Alice" has shared folder "PARENT" with user "Brian"
|
||||
And user "Brian" has accepted share "/PARENT" offered by user "Alice"
|
||||
And user "Brian" has locked folder "Shares/PARENT" setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
When user "Alice" unlocks folder "PARENT" with the last created lock of folder "Shares/PARENT" of user "Brian" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And 3 locks should be reported for folder "PARENT" of user "Alice" by the WebDAV API
|
||||
And 2 locks should be reported for folder "PARENT/CHILD" of user "Alice" by the WebDAV API
|
||||
And 1 locks should be reported for file "PARENT/parent.txt" of user "Alice" by the WebDAV API
|
||||
And 3 locks should be reported for folder "Shares/PARENT" of user "Brian" by the WebDAV API
|
||||
And 2 locks should be reported for folder "Shares/PARENT/CHILD" of user "Brian" by the WebDAV API
|
||||
And 1 locks should be reported for file "Shares/PARENT/parent.txt" of user "Brian" by the WebDAV API
|
||||
Examples:
|
||||
| dav-path | lock-scope |
|
||||
| old | shared |
|
||||
| old | exclusive |
|
||||
| new | shared |
|
||||
| new | exclusive |
|
||||
|
||||
Reference in New Issue
Block a user