add test for downloading space

This commit is contained in:
Salipa-Gurung
2023-07-25 12:24:26 +05:45
committed by amrita
parent 309b59a665
commit 926e547f99
4 changed files with 78 additions and 10 deletions
@@ -0,0 +1,22 @@
@api
Feature: Download space
As a user
I want to download space
So that I can store it locally
Scenario: user downloads a space
Given user "Alice" has been created with default attributes and without skeleton files
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 "project-space" with the default quota using the GraphApi
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "file1.txt"
And user "Alice" has uploaded a file inside space "project-space" with content "other data" to "file2.txt"
And user "Alice" has uploaded a file inside space "project-space" with content "more data" to "file3.txt"
When user "Alice" downloads the space "project-space" using the WebDAV API
Then the HTTP status code should be "200"
And the downloaded "tar" archive should contain these files:
| name | content |
| file1.txt | some data |
| file2.txt | other data |
| file3.txt | more data |