Files

38 lines
1.9 KiB
Gherkin
Raw Permalink Normal View History

2022-12-20 17:57:18 +01:00
Feature: Copy test
As a user
I want to check the PROPFIND response
So that I can make sure that the response contains all the relevant values
2022-12-20 17:57:18 +01:00
Background:
Given these users have been created with default attributes:
2022-12-20 17:57:18 +01:00
| username |
| Alice |
And using spaces DAV path
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the Graph API
2022-12-22 10:29:36 +01:00
2022-12-20 17:57:18 +01:00
Scenario: check the COPY response headers
Given user "Alice" has uploaded a file inside space "new-space" with content "some content" to "testfile.txt"
And user "Alice" has created a folder "new" in space "new-space"
2024-01-23 12:40:13 +05:45
When user "Alice" copies file "testfile.txt" from space "new-space" to "/new/testfile.txt" inside space "new-space" with following headers using the WebDAV API
| header | value |
| Origin | %base_url% |
2022-12-20 17:57:18 +01:00
Then the HTTP status code should be "201"
2022-12-22 10:29:36 +01:00
And the following headers should match these regular expressions
2024-10-01 18:07:47 +05:45
| Oc-Fileid | /^[a-f0-9!\$\-]{110}$/ |
| Access-Control-Allow-Origin | /^%base_url%$/ |
| X-Request-Id | %request_id_pattern% |
@issue-10809
Scenario: copy a folder with Transfer-Encoding: chunked header
Given user "Alice" has created a folder "folder1" in space "new-space"
And user "Alice" has created a folder "folder2" in space "new-space"
When user "Alice" copies folder "folder2" from space "new-space" to "folder1/folder2" inside space "new-space" with following headers using the WebDAV API
| header | value |
# NOTE: requires system curl version >= 8.12.0
| Transfer-Encoding | chunked |
Then the HTTP status code should be "201"
And for user "Alice" folder "folder1" of the space "new-space" should contain these entries:
| folder2 |