Files

34 lines
1.4 KiB
Gherkin
Raw Permalink Normal View History

2023-01-02 17:26:54 +05:45
Feature: delete folder contents
As a user
I want to be able to delete all files and folders in a folder
So that I can quickly remove unwanted data
Background:
Given user "Alice" has been created with default attributes
2023-01-02 17:26:54 +05:45
2023-06-01 16:36:53 +05:45
Scenario Outline: removing everything from a folder
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
2023-01-02 17:26:54 +05:45
And user "Alice" has created folder "/PARENT/"
And user "Alice" has created folder "/FOLDER/"
And user "Alice" has created folder "/FOLDER/SUBFOLDER"
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/textfile0.txt"
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/textfile1.txt"
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/FOLDER/fileToDelete.txt"
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/FOLDER/SUBFOLDER/textfile0.txt"
When user "Alice" deletes everything from folder "/FOLDER/" using the WebDAV API
Then the HTTP status code should be "204"
And user "Alice" should see the following elements
2024-11-08 10:06:15 +05:45
| /FOLDER |
| /PARENT |
2023-01-02 17:26:54 +05:45
| /textfile0.txt |
| /textfile1.txt |
And user "Alice" should not see the following elements
2024-11-08 10:06:15 +05:45
| /FOLDER/SUBFOLDER |
2023-01-02 17:26:54 +05:45
| /FOLDER/fileToDelete.txt |
| /FOLDER/SUBFOLDER/testfile0.txt |
Examples:
2023-07-12 12:42:32 +05:45
| dav-path-version |
| old |
| new |
| spaces |