mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 14:39:23 -05:00
* tests: remove unused tags from the acceptance tests Remove the tags that neither the CI of opencloud nor the one of reva filters on, and that no hook uses: @smokeTest, @skipOnStorage:ceph, @skipOnStorage:scality, @skipOnOpencloud-decomposeds3-Storage (the CI only runs posix and decomposed), @sqliteDB, @notification and @skip-local-run. A tag line left empty becomes an empty line, so that the line numbers of the scenarios, which the expected failures of opencloud and reva refer to, stay the same. Also fix the typo @@skipOnReva, and write the issue tags the same way: @issues-<n> becomes @issue-<n>, @web-issue-<n> becomes @issue-web-<n>. Assisted-by: Claude Code:claude-opus-5-5 * tests: run the search properties scenarios as expected failures The two scenarios that check the properties of search results were skipped, since the search REPORT returns an empty d:getetag (#3501) and the step retried the whole check for 20 seconds, which made them too slow as expected failures. - retry the search only until the entry is indexed, then check its properties once: once found, the entry is complete, so a wrong value fails right away - check what the search returns: d:getcontentlength for files, the real size of 12 bytes, a file id of the form <uuid>$<uuid>!<uuid>, anchored patterns, and no oc:owner-id and oc:owner-display-name, which the search response never contains - list them as expected failures of #3501 instead of skipping them Without the d:getetag check, both scenarios pass. Assisted-by: Claude Code:claude-opus-5-5 * lint fix
82 lines
3.0 KiB
Gherkin
82 lines
3.0 KiB
Gherkin
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 user "Alice" creates folder "/PARENT" using the WebDAV API
|
|
|
|
|
|
Scenario Outline: delete a folder
|
|
Given using <dav-path-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-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: delete a folder when 2 folder exist with different case
|
|
Given using <dav-path-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-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: delete a sub-folder
|
|
Given using <dav-path-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-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: deleting folder with dot in the name
|
|
Given using <dav-path-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-path-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 |
|
|
| spaces | /fo. |
|
|
| spaces | /fo.1 |
|
|
| spaces | /fo...1.. |
|
|
| spaces | /... |
|
|
| spaces | /..fo |
|
|
| spaces | /fo.xyz |
|
|
| spaces | /fo.exe |
|