Extend Propfind of space to space-member

This commit is contained in:
sagargurung1001@gmail.com
2022-12-20 16:19:31 +05:45
parent dc4e47ac00
commit 821069d190

View File

@@ -6,12 +6,13 @@ Feature: Propfind test
Given these users have been created with default attributes and without skeleton files:
| username |
| Alice |
| Brian |
And using spaces DAV path
And the administrator has given "Alice" the role "Space Admin" using the settings api
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
Scenario: check the PROPFIND request of a space
Scenario: space-admin check the PROPFIND request of a space
Given user "Alice" has uploaded a file inside space "new-space" with content "some content" to "testfile.txt"
When user "Alice" sends PROPFIND request to space "new-space" using the WebDAV API
Then the HTTP status code should be "207"
@@ -22,3 +23,22 @@ Feature: Propfind test
| oc:permissions | SRDNVCKZ |
| oc:privatelink | |
| oc:size | 12 |
Scenario Outline: space member with different role check the PROPFIND request of a space
Given user "Alice" has uploaded a file inside space "new-space" with content "some content" to "testfile.txt"
And user "Alice" has shared a space "new-space" to user "Brian" with role "<role>"
When user "Brian" sends PROPFIND request to space "new-space" using the WebDAV API
Then the HTTP status code should be "207"
And for user "Alice" the "PROPFIND" response should contain a space "new-space" with these key and value pairs:
| key | value |
| oc:fileid | UUIDof:new-space |
| oc:name | new-space |
| oc:permissions | <oc_permission> |
| oc:privatelink | |
| oc:size | 12 |
Examples:
| role | oc_permission |
| manager | SRDNVCKZ |
| editor | SDNVCK |
| viewer | S |