Files
QSfera/tests/acceptance/features/coreApiShareManagementToRoot/moveReceivedShareFromLocalStorage.feature
T

65 lines
3.2 KiB
Gherkin

@api @local_storage @files_external-app-required @notToImplementOnOCIS
Feature: local-storage
Background:
Given these users have been created with default attributes and without skeleton files:
| username |
| Alice |
| Brian |
@skipOnEncryptionType:user-keys @encryption-issue-181
Scenario Outline: receiver renames a received file share from local storage
Given using OCS API version "<ocs_api_version>"
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/local_storage/filetoshare.txt"
And user "Alice" has shared file "/local_storage/filetoshare.txt" with user "Brian"
When user "Brian" moves file "/filetoshare.txt" to "/newFile.txt" using the WebDAV API
Then the HTTP status code should be "201"
And as "Brian" file "/newFile.txt" should exist
But as "Brian" file "/filetoshare.txt.txt" should not exist
And as "Alice" file "/local_storage/filetoshare.txt" should exist
But as "Alice" file "/local_storage/newFile.txt" should not exist
Examples:
| ocs_api_version |
| 1 |
| 2 |
Scenario Outline: receiver renames a received folder share from local storage
Given using OCS API version "<ocs_api_version>"
And user "Alice" has created folder "/local_storage/foo"
And user "Alice" has shared folder "/local_storage/foo" with user "Brian"
When user "Brian" moves folder "/foo" to "/newFolder" using the WebDAV API
Then the HTTP status code should be "201"
And as "Brian" folder "/newFolder" should exist
But as "Brian" folder "/foo" should not exist
And as "Alice" folder "/local_storage/foo" should exist
But as "Alice" folder "/local_storage/newFolder" should not exist
Examples:
| ocs_api_version |
| 1 |
| 2 |
@skipOnEncryptionType:user-keys @encryption-issue-181
Scenario Outline: sub-folders,file inside a renamed received folder shared from local storage are accessible
Given using OCS API version "<ocs_api_version>"
And user "Alice" has created folder "/local_storage/foo"
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/local_storage/foo/filetoshare.txt"
And user "Alice" has created folder "/local_storage/foo/folder1"
And user "Alice" has created folder "/local_storage/foo/folder2"
And user "Alice" has created folder "/local_storage/foo/folder2/subfolder"
And user "Alice" has shared folder "/local_storage/foo" with user "Brian"
When user "Brian" moves folder "/foo" to "/newFolder" using the WebDAV API
Then the HTTP status code should be "201"
And as "Brian" folder "/newFolder" should exist
And as "Brian" file "/newFolder/filetoshare.txt" should exist
And as "Brian" folder "/newFolder/folder1" should exist
And as "Brian" folder "/newFolder/folder2" should exist
And as "Brian" folder "/newFolder/folder2/subfolder" should exist
But as "Brian" folder "/foo" should not exist
And as "Alice" folder "/local_storage/foo" should exist
But as "Alice" folder "/local_storage/newFolder" should not exist
Examples:
| ocs_api_version |
| 1 |
| 2 |