mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 04:40:05 -06:00
99 lines
3.1 KiB
Gherkin
99 lines
3.1 KiB
Gherkin
@api
|
|
Feature: delete folder
|
|
As a user
|
|
I want to be able to delete folders
|
|
So that I can quickly remove unwanted data
|
|
|
|
Background:
|
|
Given user "Alice" has been created with default attributes and without skeleton files
|
|
And user "Alice" creates folder "/PARENT" using the WebDAV API
|
|
|
|
@smokeTest
|
|
Scenario Outline: delete a folder
|
|
Given using <dav_version> DAV path
|
|
When user "Alice" deletes folder "/PARENT" using the WebDAV API
|
|
Then the HTTP status code should be "204"
|
|
And as "Alice" folder "/PARENT" should not exist
|
|
Examples:
|
|
| dav_version |
|
|
| old |
|
|
| new |
|
|
|
|
@skipOnOcV10 @personalSpace
|
|
Examples:
|
|
| dav_version |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: delete a folder when 2 folder exist with different case
|
|
Given using <dav_version> DAV path
|
|
And user "Alice" has created folder "/parent"
|
|
When user "Alice" deletes folder "/PARENT" using the WebDAV API
|
|
Then the HTTP status code should be "204"
|
|
And as "Alice" folder "/PARENT" should not exist
|
|
But as "Alice" folder "/parent" should exist
|
|
Examples:
|
|
| dav_version |
|
|
| old |
|
|
| new |
|
|
|
|
@skipOnOcV10 @personalSpace
|
|
Examples:
|
|
| dav_version |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: delete a sub-folder
|
|
Given using <dav_version> DAV path
|
|
And user "Alice" has created folder "/PARENT/CHILD"
|
|
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/PARENT/parent.txt"
|
|
When user "Alice" deletes folder "/PARENT/CHILD" using the WebDAV API
|
|
Then the HTTP status code should be "204"
|
|
And as "Alice" folder "/PARENT/CHILD" should not exist
|
|
But as "Alice" folder "/PARENT" should exist
|
|
And as "Alice" file "/PARENT/parent.txt" should exist
|
|
Examples:
|
|
| dav_version |
|
|
| old |
|
|
| new |
|
|
|
|
@skipOnOcV10 @personalSpace
|
|
Examples:
|
|
| dav_version |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: deleting folder with dot in the name
|
|
Given using <dav_version> DAV path
|
|
And user "Alice" has created folder "<folder_name>"
|
|
When user "Alice" deletes folder "<folder_name>" using the WebDAV API
|
|
Then the HTTP status code should be "204"
|
|
And as "Alice" folder "<folder_name>" should not exist
|
|
Examples:
|
|
| dav_version | folder_name |
|
|
| old | /fo. |
|
|
| old | /fo.1 |
|
|
| old | /fo...1.. |
|
|
| old | /... |
|
|
| old | /..fo |
|
|
| old | /fo.xyz |
|
|
| old | /fo.exe |
|
|
| new | /fo. |
|
|
| new | /fo.1 |
|
|
| new | /fo...1.. |
|
|
| new | /... |
|
|
| new | /..fo |
|
|
| new | /fo.xyz |
|
|
| new | /fo.exe |
|
|
|
|
@skipOnOcV10 @personalSpace
|
|
Examples:
|
|
| dav_version | folder_name |
|
|
| spaces | /fo. |
|
|
| spaces | /fo.1 |
|
|
| spaces | /fo...1.. |
|
|
| spaces | /... |
|
|
| spaces | /..fo |
|
|
| spaces | /fo.xyz |
|
|
| spaces | /fo.exe |
|