mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 20:29:54 -06:00
44 lines
1.6 KiB
Gherkin
44 lines
1.6 KiB
Gherkin
@api @issue-ocis-reva-14
|
|
Feature: move (rename) file
|
|
As a user
|
|
I want to be able to move and rename files
|
|
So that I can manage my file system
|
|
|
|
Background:
|
|
Given using OCS API version "1"
|
|
And user "Alice" has been created with default attributes and skeleton files
|
|
|
|
@issue-ocis-reva-211
|
|
# after fixing all issues delete this Scenario and use the one from oC10 core
|
|
Scenario Outline: rename a file into an invalid filename
|
|
Given using <dav_version> DAV path
|
|
When user "Alice" moves file "/welcome.txt" to "/a\\a" using the WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And as "Alice" file "/a\\a" should exist
|
|
Examples:
|
|
| dav_version |
|
|
| old |
|
|
| new |
|
|
|
|
@issue-ocis-reva-211
|
|
# after fixing all issues delete this Scenario and use the one from oC10 core
|
|
Scenario Outline: Renaming a file to a path with extension .part is possible
|
|
Given using <dav_version> DAV path
|
|
When user "Alice" moves file "/welcome.txt" to "/welcome.part" using the WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And as "Alice" file "/welcome.part" should exist
|
|
Examples:
|
|
| dav_version |
|
|
| old |
|
|
| new |
|
|
|
|
@skipOnOcis-OC-Storage @issue-ocis-reva-211
|
|
# after fixing all issues delete this Scenario and use the one from oC10 core
|
|
Scenario Outline: renaming to a file with special characters
|
|
When user "Alice" moves file "/textfile0.txt" to "/<renamed_file>" using the WebDAV API
|
|
Then the HTTP status code should be "201"
|
|
And the content of file "/<renamed_file>" for user "Alice" should be ""
|
|
Examples:
|
|
| renamed_file |
|
|
| #oc ab?cd=ef# |
|