test: implement test for sharee trying to lock shared file/folder in secure view lockFiles feature file

This commit is contained in:
pradip
2024-06-12 10:44:21 +05:45
parent 3fe697a347
commit 45df8ff599
2 changed files with 45 additions and 41 deletions

View File

@@ -214,18 +214,22 @@ Feature: lock files
| /dav/spaces/<<FILEID>> |
Scenario: viewer cannot lock a file in the shares using file-id
Scenario Outline: viewer cannot lock a file in the shares using file-id
Given user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
And we save it into "FILEID"
And user "Alice" has sent the following resource share invitation:
| resource | textfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
| resource | textfile.txt |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
When user "Brian" tries to lock file "textfile.txt" using file-id path "/dav/spaces/<<FILEID>>" using the WebDAV API setting the following properties
| lockscope | exclusive |
Then the HTTP status code should be "403"
Examples:
| permissions-role |
| Viewer |
| Secure viewer |
Scenario: sharee cannot lock a resource exclusively locked by a sharer