Files

75 lines
2.8 KiB
Gherkin
Raw Permalink Normal View History

@skipOnReva
2023-01-02 17:26:54 +05:45
Feature: create file or folder named similar to Shares folder
As a user
I want to be able to create files and folders when the Shares folder exists
So that I can organise the files in my file system
Background:
Given these users have been created with default attributes:
2023-01-02 17:26:54 +05:45
| username |
| Alice |
| Brian |
And user "Alice" has created folder "/FOLDER"
And user "Alice" has sent the following resource share invitation:
| resource | FOLDER |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
2024-07-22 15:00:11 +05:45
And user "Brian" has a share "FOLDER" synced
2023-01-02 17:26:54 +05:45
Scenario Outline: create a folder with a name similar to Shares
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
When user "Brian" creates folder "<folder-name>" using the WebDAV API
2023-01-02 17:26:54 +05:45
Then the HTTP status code should be "201"
And as "Brian" folder "<folder-name>" should exist
2023-01-02 17:26:54 +05:45
And as "Brian" folder "/Shares" should exist
Examples:
| dav-path-version | folder-name |
2023-07-12 12:42:32 +05:45
| old | /Share |
| old | /shares |
| old | /Shares1 |
| new | /Share |
| new | /shares |
| new | /Shares1 |
2023-01-02 17:26:54 +05:45
Scenario Outline: create a file with a name similar to Shares
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
When user "Brian" uploads file with content "some text" to "<file-name>" using the WebDAV API
2023-01-02 17:26:54 +05:45
Then the HTTP status code should be "201"
And the content of file "<file-name>" for user "Brian" should be "some text"
2023-01-02 17:26:54 +05:45
And as "Brian" folder "/Shares" should exist
Examples:
| dav-path-version | file-name |
2023-07-12 12:42:32 +05:45
| old | /Share |
| old | /shares |
| old | /Shares1 |
| new | /Share |
| new | /shares |
| new | /Shares1 |
2023-01-02 17:26:54 +05:45
Scenario Outline: try to create a folder named Shares
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
2023-01-02 17:26:54 +05:45
When user "Brian" creates folder "/Shares" using the WebDAV API
Then the HTTP status code should be "405"
And as "Brian" folder "/Shares" should exist
And as "Brian" folder "/Shares/FOLDER" should exist
Examples:
2023-07-12 12:42:32 +05:45
| dav-path-version |
| old |
| new |
2023-01-02 17:26:54 +05:45
Scenario Outline: try to create a file named Shares
2023-07-12 12:42:32 +05:45
Given using <dav-path-version> DAV path
2023-01-02 17:26:54 +05:45
When user "Brian" uploads file with content "some text" to "/Shares" using the WebDAV API
Then the HTTP status code should be "409"
And as "Brian" folder "/Shares" should exist
And as "Brian" folder "/Shares/FOLDER" should exist
Examples:
2023-07-12 12:42:32 +05:45
| dav-path-version |
| old |
| new |