mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 18:45:04 -05:00
Merge branch 'origin/main' into 'next-release/main'
This commit is contained in:
commit
a0deda4bc3
67 files changed
+329
-165
No files matched your search
@@ -177,9 +177,12 @@ class SearchContext implements Context {
|
||||
string $user,
|
||||
TableNode $properties
|
||||
): void {
|
||||
$assert = fn () => $this->assertFileOrFolderInSearchResultContainsProperties($path, $user, $properties);
|
||||
$this->retrySearchUntilSatisfied($assert);
|
||||
$assert();
|
||||
// retry only until the entry is indexed: once it is found, its properties
|
||||
// are complete, and a wrong property fails right away
|
||||
$this->retrySearchUntilSatisfied(
|
||||
fn () => Assert::assertNotFalse($this->featureContext->findEntryFromSearchResponse($path))
|
||||
);
|
||||
$this->assertFileOrFolderInSearchResultContainsProperties($path, $user, $properties);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,6 @@ use Psr\Http\Message\ResponseInterface;
|
||||
use TestHelpers\HttpRequestHelper;
|
||||
use TestHelpers\WebDavHelper;
|
||||
use TestHelpers\GraphHelper;
|
||||
use TestHelpers\OcHelper;
|
||||
use TestHelpers\BehatHelper;
|
||||
use TestHelpers\WaitHelper;
|
||||
use Behat\Step\Given;
|
||||
@@ -249,8 +248,7 @@ class SpacesContext implements Context {
|
||||
$this->featureContext->getStepLineRef(),
|
||||
$user,
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
$this->featureContext->getAttributeOfCreatedUser($user, 'id'),
|
||||
$this->featureContext->getStepLineRef()
|
||||
$this->featureContext->getAttributeOfCreatedUser($user, 'id')
|
||||
);
|
||||
|
||||
$space = json_decode($resource->getBody()->getContents(), true);
|
||||
|
||||
@@ -201,6 +201,7 @@ default:
|
||||
- NotificationContext:
|
||||
- GuestLinkContext:
|
||||
- OcConfigContext:
|
||||
- WebDavPropertiesContext:
|
||||
|
||||
apiAntivirus:
|
||||
paths:
|
||||
|
||||
@@ -309,6 +309,15 @@ _ocdav: api compatibility, return correct status code_
|
||||
|
||||
- [coreApiTrashbin/trashbinSharingToShares.feature:277](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature#L277)
|
||||
|
||||
#### [Report response doesn't contain <d:getetag>](https://github.com/opencloud-eu/opencloud/issues/3501)
|
||||
|
||||
- [apiSearch1/search.feature:459](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L459)
|
||||
- [apiSearch1/search.feature:460](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L460)
|
||||
- [apiSearch1/search.feature:461](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L461)
|
||||
- [apiSearch1/search.feature:483](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L483)
|
||||
- [apiSearch1/search.feature:484](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L484)
|
||||
- [apiSearch1/search.feature:485](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L485)
|
||||
|
||||
### Won't fix
|
||||
|
||||
Not everything needs to be implemented for opencloud.
|
||||
|
||||
@@ -312,6 +312,15 @@ _ocdav: api compatibility, return correct status code_
|
||||
|
||||
- [coreApiTrashbin/trashbinSharingToShares.feature:277](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature#L277)
|
||||
|
||||
#### [Report response doesn't contain <d:getetag>](https://github.com/opencloud-eu/opencloud/issues/3501)
|
||||
|
||||
- [apiSearch1/search.feature:459](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L459)
|
||||
- [apiSearch1/search.feature:460](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L460)
|
||||
- [apiSearch1/search.feature:461](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L461)
|
||||
- [apiSearch1/search.feature:483](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L483)
|
||||
- [apiSearch1/search.feature:484](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L484)
|
||||
- [apiSearch1/search.feature:485](https://github.com/opencloud-eu/opencloud/blob/main/tests/acceptance/features/apiSearch1/search.feature#L485)
|
||||
|
||||
### Won't fix
|
||||
|
||||
Not everything needs to be implemented for opencloud.
|
||||
|
||||
@@ -253,7 +253,7 @@ Feature: antivirus
|
||||
| eicar.com | virusFile1.txt | Virus found in virusFile1.txt. Upload not possible. Virus: |
|
||||
| eicar_com.zip | virusFile2.zip | Virus found in virusFile2.zip. Upload not possible. Virus: |
|
||||
|
||||
@env-config @issue-6494
|
||||
@env-config @issue-6494
|
||||
Scenario Outline: upload a file with virus by setting antivirus infected file handling config to continue
|
||||
Given the config "ANTIVIRUS_INFECTED_FILE_HANDLING" has been set to "continue"
|
||||
And using <dav-path-version> DAV path
|
||||
|
||||
@@ -136,6 +136,83 @@ Feature: share a resource with a guest via email address
|
||||
}
|
||||
"""
|
||||
|
||||
|
||||
Scenario: sharer lists the permissions of a resource shared with a guest
|
||||
Given user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | guest@example.org |
|
||||
| shareType | guest |
|
||||
| permissionsRole | Viewer |
|
||||
When user "Alice" gets permissions list for file "textfile.txt" of the space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": ["value"],
|
||||
"properties": {
|
||||
"value": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["id", "roles", "grantedToV2", "invitation"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^%permissions_id_pattern%$"
|
||||
},
|
||||
"roles": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 1,
|
||||
"items": { "const": "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5" }
|
||||
},
|
||||
"grantedToV2": {
|
||||
"type": "object",
|
||||
"required": ["user"],
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.userType", "displayName", "id"],
|
||||
"properties": {
|
||||
"@libre.graph.userType": { "const": "Guest" },
|
||||
"displayName": { "const": "guest@example.org" },
|
||||
"id": { "const": "guest@example.org" }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"invitation": {
|
||||
"type": "object",
|
||||
"required": ["invitedBy"],
|
||||
"properties": {
|
||||
"invitedBy": {
|
||||
"type": "object",
|
||||
"required": ["user"],
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": ["@libre.graph.userType", "displayName", "id"],
|
||||
"properties": {
|
||||
"@libre.graph.userType": { "const": "Member" },
|
||||
"displayName": { "const": "Alice Hansen" },
|
||||
"id": { "type": "string", "pattern": "^%user_id_pattern%$" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@email
|
||||
Scenario: guest receives an email with a guest link
|
||||
When user "Alice" sends the following resource share invitation using the Graph API:
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
@email
|
||||
Feature: share types of resources shared with a guest
|
||||
As a user
|
||||
I want to see which of my resources are shared with a guest
|
||||
So that I know who has access to them
|
||||
|
||||
Background:
|
||||
Given using SharingNG
|
||||
And user "Alice" has been created with default attributes
|
||||
And user "Alice" has created folder "parent"
|
||||
And user "Alice" has created folder "parent/folderToShare"
|
||||
And user "Alice" has uploaded file with content "to share" to "parent/textfile.txt"
|
||||
|
||||
|
||||
Scenario Outline: check the share-types property of a resource shared with a guest
|
||||
Given user "Alice" has sent the following resource share invitation:
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | guest@example.org |
|
||||
| shareType | guest |
|
||||
| permissionsRole | Viewer |
|
||||
When user "Alice" gets the following properties of resource "<resource>" inside space "Personal" using the WebDAV API
|
||||
| propertyName |
|
||||
| oc:share-types |
|
||||
Then the HTTP status code should be "207"
|
||||
And the response should contain a share-types property with
|
||||
| 4 |
|
||||
Examples:
|
||||
| resource |
|
||||
| parent/textfile.txt |
|
||||
| parent/folderToShare |
|
||||
|
||||
|
||||
Scenario: check the share-types property of a resource shared with a user, a group and a guest
|
||||
Given user "Brian" has been created with default attributes
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | parent/textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And group "grp1" has been created
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | parent/textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | parent/textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | guest@example.org |
|
||||
| shareType | guest |
|
||||
| permissionsRole | Viewer |
|
||||
When user "Alice" gets the following properties of resource "parent/textfile.txt" inside space "Personal" using the WebDAV API
|
||||
| propertyName |
|
||||
| oc:share-types |
|
||||
Then the HTTP status code should be "207"
|
||||
And the response should contain a share-types property with
|
||||
| 0 |
|
||||
| 1 |
|
||||
| 4 |
|
||||
|
||||
|
||||
Scenario: check the share-types property of a resource after the guest share is removed
|
||||
Given user "Alice" has sent the following resource share invitation:
|
||||
| resource | parent/textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | guest@example.org |
|
||||
| shareType | guest |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Alice" has removed the access of guest "guest@example.org" from resource "parent/textfile.txt" of space "Personal"
|
||||
When user "Alice" gets the following properties of resource "parent/textfile.txt" inside space "Personal" using the WebDAV API
|
||||
| propertyName |
|
||||
| oc:share-types |
|
||||
Then the HTTP status code should be "207"
|
||||
And the response should contain an empty property "oc:share-types"
|
||||
@@ -435,7 +435,7 @@ Feature: Search
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@skip @issue-3501 @issue-9780
|
||||
@issue-3501
|
||||
Scenario Outline: report extra properties in search entries for a file
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" searches for "*insideTheFo*" using the WebDAV API requesting these properties:
|
||||
@@ -444,27 +444,23 @@ Feature: Search
|
||||
| d:getlastmodified |
|
||||
| d:getetag |
|
||||
| d:getcontenttype |
|
||||
| oc:size |
|
||||
| oc:owner-id |
|
||||
| oc:owner-display-name |
|
||||
| d:getcontentlength |
|
||||
Then the HTTP status code should be "207"
|
||||
And file "insideTheFolder.txt" in the search result of user "Alice" should contain these properties:
|
||||
| name | value |
|
||||
| oc:fileid | \d* |
|
||||
| oc:fileid | ^[0-9a-f-]+\$[0-9a-f-]+![0-9a-f-]+$ |
|
||||
| oc:permissions | ^(RDNVW\|RMDNVW)$ |
|
||||
| d:getlastmodified | ^[MTWFS][uedhfriatno]{2},\s(\d){2}\s[JFMAJSOND][anebrpyulgctov]{2}\s\d{4}\s\d{2}:\d{2}:\d{2} GMT$ |
|
||||
| d:getetag | ^\"[a-f0-9:\.]{1,32}\"$ |
|
||||
| d:getcontenttype | text\/plain |
|
||||
| oc:size | 15 |
|
||||
| oc:owner-id | %username% |
|
||||
| oc:owner-display-name | %displayname% |
|
||||
| d:getcontenttype | ^text\/plain$ |
|
||||
| d:getcontentlength | ^12$ |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@skip @issue-3501 @issue-9780
|
||||
@issue-3501
|
||||
Scenario Outline: report extra properties in search entries for a folder
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" searches for "*folderMain*" using the WebDAV API requesting these properties:
|
||||
@@ -474,18 +470,14 @@ Feature: Search
|
||||
| d:getetag |
|
||||
| d:getcontenttype |
|
||||
| oc:size |
|
||||
| oc:owner-id |
|
||||
| oc:owner-display-name |
|
||||
Then the HTTP status code should be "207"
|
||||
And folder "folderMain" in the search result of user "Alice" should contain these properties:
|
||||
| name | value |
|
||||
| oc:fileid | \d* |
|
||||
| oc:fileid | ^[0-9a-f-]+\$[0-9a-f-]+![0-9a-f-]+$ |
|
||||
| oc:permissions | ^(RDNVCK\|RMDNVCK)$ |
|
||||
| d:getlastmodified | ^[MTWFS][uedhfriatno]{2},\s(\d){2}\s[JFMAJSOND][anebrpyulgctov]{2}\s\d{4}\s\d{2}:\d{2}:\d{2} GMT$ |
|
||||
| d:getetag | ^\"[a-f0-9:\.]{1,32}\"$ |
|
||||
| oc:size | 0 |
|
||||
| oc:owner-id | %username% |
|
||||
| oc:owner-display-name | %displayname% |
|
||||
| oc:size | ^12$ |
|
||||
Examples:
|
||||
| dav-path-version |
|
||||
| old |
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
@notification
|
||||
Feature: Disable notifications for individual events
|
||||
As a user
|
||||
I want to disable notifications for specific events
|
||||
|
||||
@@ -307,7 +307,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8352
|
||||
@issue-8352
|
||||
Scenario Outline: sharer lists permissions of a shared project space
|
||||
Given using spaces DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -584,7 +584,7 @@ Feature: List a sharing permissions
|
||||
| Space Editor |
|
||||
| Manager |
|
||||
|
||||
@issues-8331
|
||||
@issue-8331
|
||||
Scenario: user lists permissions of a file in personal space
|
||||
Given user "Alice" has uploaded file with content "hello world" to "/textfile0.txt"
|
||||
When user "Alice" gets permissions list for file "textfile0.txt" of the space "Personal" using the Graph API
|
||||
@@ -681,7 +681,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8331
|
||||
@issue-8331
|
||||
Scenario: user lists permissions of a folder in project space
|
||||
Given using spaces DAV path
|
||||
And the administrator has assigned the role "Admin" to user "Alice" using the Graph API
|
||||
@@ -804,7 +804,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8331
|
||||
@issue-8331
|
||||
Scenario: user lists permissions of a file in project space
|
||||
Given using spaces DAV path
|
||||
And the administrator has assigned the role "Admin" to user "Alice" using the Graph API
|
||||
@@ -904,7 +904,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8331
|
||||
@issue-8331
|
||||
Scenario: user sends share invitation with all allowed roles for a file
|
||||
Given user "Alice" has uploaded file with content "hello text" to "textfile.txt"
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -916,7 +916,7 @@ Feature: List a sharing permissions
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
|
||||
@issues-8331
|
||||
@issue-8331
|
||||
Scenario: user sends share invitation with all allowed roles for a folder
|
||||
Given user "Alice" has created folder "folder"
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -928,7 +928,7 @@ Feature: List a sharing permissions
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
|
||||
@issues-8351
|
||||
@issue-8351
|
||||
Scenario: user lists permissions of a project space using root endpoint
|
||||
Given using spaces DAV path
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
@@ -1266,7 +1266,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8331
|
||||
@issue-8331
|
||||
Scenario: user sends share invitation with all allowed roles for a folder in project space
|
||||
Given using spaces DAV path
|
||||
And the administrator has assigned the role "Admin" to user "Alice" using the Graph API
|
||||
@@ -1792,7 +1792,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8428
|
||||
@issue-8428
|
||||
Scenario: user lists permissions of a shared folder in personal space
|
||||
Given user "Brian" has been created with default attributes
|
||||
And user "Alice" has created folder "folder"
|
||||
@@ -1897,7 +1897,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8428
|
||||
@issue-8428
|
||||
Scenario: user lists permissions of a shared file in personal space
|
||||
Given user "Brian" has been created with default attributes
|
||||
And user "Alice" has uploaded file with content "hello world" to "/textfile0.txt"
|
||||
@@ -1998,7 +1998,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8428
|
||||
@issue-8428
|
||||
Scenario: user lists permissions of a shared folder in project space
|
||||
Given using spaces DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -2106,7 +2106,7 @@ Feature: List a sharing permissions
|
||||
}
|
||||
"""
|
||||
|
||||
@issues-8428
|
||||
@issue-8428
|
||||
Scenario: user lists permissions of a shared file in project space
|
||||
Given using spaces DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
|
||||
@@ -784,7 +784,7 @@ Feature: Update a link share for a resource
|
||||
| createOnly | edit |
|
||||
| createOnly | upload |
|
||||
|
||||
@issues-8405
|
||||
@issue-8405
|
||||
Scenario Outline: remove expiration date of a resource link share using permissions endpoint
|
||||
Given user "Alice" has uploaded file with content "other data" to "textfile1.txt"
|
||||
And user "Alice" has created folder "folder"
|
||||
|
||||
@@ -347,7 +347,7 @@ Feature: Create a link share for a resource
|
||||
| upload |
|
||||
| createOnly |
|
||||
|
||||
@issue-7879 @skip-local-run
|
||||
@issue-7879
|
||||
Scenario Outline: try to create a link share of a project-space drive with a password that is listed in the Banned-Password-List using root endpoint
|
||||
Given the config "OC_PASSWORD_POLICY_BANNED_PASSWORDS_LIST" has been set to path "config/woodpecker/banned-password-list.txt"
|
||||
And using spaces DAV path
|
||||
|
||||
@@ -138,7 +138,7 @@ Feature: clean up old file versions according to a cleanup strategy
|
||||
Then the HTTP status code should be "207"
|
||||
And the number of versions should be "1"
|
||||
|
||||
@skipOnOpencloud-decomposed-Storage @skipOnOpencloud-decomposeds3-Storage
|
||||
@skipOnOpencloud-decomposed-Storage
|
||||
Scenario: clean up a folder given by its path on the POSIX filesystem
|
||||
Given user "Alice" has created folder "folder"
|
||||
And user "Alice" has uploaded file with content "version 1" to "folder/inFolder.txt"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@env-config @skipOnOpencloud-decomposed-Storage @skipOnOpencloud-decomposeds3-Storage
|
||||
@env-config @skipOnOpencloud-decomposed-Storage
|
||||
Feature: posixfs consistency CLI command
|
||||
As an administrator
|
||||
I want to check and repair the consistency of the posix filesystem metadata
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@env-config @skipOnOpencloud-decomposed-Storage @skipOnOpencloud-decomposeds3-Storage
|
||||
@env-config @skipOnOpencloud-decomposed-Storage
|
||||
Feature: posixfs scan CLI command
|
||||
As an administrator
|
||||
I want to scan the posix filesystem for files that were added outside of OpenCloud
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@env-config @skipOnOpencloud-decomposed-Storage @skipOnOpencloud-decomposeds3-Storage
|
||||
@env-config @skipOnOpencloud-decomposed-Storage
|
||||
Feature: clean up old file versions that changes on the POSIX filesystem created
|
||||
As an administrator
|
||||
I want versions created by changes on the POSIX filesystem to be cleaned up like any other version
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@env-config @skipOnOpencloud-decomposed-Storage @skipOnOpencloud-decomposeds3-Storage
|
||||
@env-config @skipOnOpencloud-decomposed-Storage
|
||||
Feature: create a resources using collaborative posixfs
|
||||
|
||||
Background:
|
||||
|
||||
@@ -3,7 +3,7 @@ Feature: auth
|
||||
I want to send delete request with wrong password
|
||||
So that I can make sure it doesn't work
|
||||
|
||||
@smokeTest @issue-1337 @issue-1319
|
||||
@issue-1337 @issue-1319
|
||||
Scenario: send DELETE requests to OCS endpoints as admin with wrong password
|
||||
When user "admin" requests these endpoints with "DELETE" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -6,7 +6,7 @@ Feature: auth
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@issue-1337 @smokeTest
|
||||
@issue-1337
|
||||
Scenario: using OCS anonymously
|
||||
When a user requests these endpoints with "GET" and no authentication
|
||||
| endpoint |
|
||||
@@ -67,7 +67,7 @@ Feature: auth
|
||||
| /ocs/v2.php/cloud/users |
|
||||
Then the HTTP status code of responses on all endpoints should be "404"
|
||||
|
||||
@issue-1338 @issue-1337 @smokeTest
|
||||
@issue-1338 @issue-1337
|
||||
Scenario: using OCS as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "GET" using password "invalid"
|
||||
| endpoint |
|
||||
|
||||
@@ -6,7 +6,7 @@ Feature: auth
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@issue-1337 @smokeTest
|
||||
@issue-1337
|
||||
Scenario: send POST requests to OCS endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "POST" including body "doesnotmatter" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -3,7 +3,7 @@ Feature: auth
|
||||
I want to send PUT request to various endpoints
|
||||
So that I can make sure the endpoints need proper authentication
|
||||
|
||||
@issue-1337 @smokeTest
|
||||
@issue-1337
|
||||
Scenario: send PUT request to OCS endpoints as admin with wrong password
|
||||
When user "admin" requests these endpoints with "PUT" including body "doesnotmatter" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -6,7 +6,7 @@ Feature: auth
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest @issue-10334
|
||||
@issue-10334
|
||||
Scenario Outline: using WebDAV anonymously
|
||||
When a user requests "<dav-path>" with "PROPFIND" and no authentication
|
||||
Then the HTTP status code should be "401"
|
||||
@@ -16,7 +16,7 @@ Feature: auth
|
||||
| /dav/files/%username% |
|
||||
| /dav/spaces/%spaceid% |
|
||||
|
||||
@smokeTest @issue-10334
|
||||
@issue-10334
|
||||
Scenario Outline: using WebDAV with basic auth
|
||||
When user "Alice" requests "<dav-path>" with "PROPFIND" using basic auth
|
||||
Then the HTTP status code should be "207"
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: COPY file/folder
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
And using new DAV path
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send COPY requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "COPY" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -28,7 +28,7 @@ Feature: COPY file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send COPY requests to webDav endpoints as normal user with no password
|
||||
When user "Alice" requests these endpoints with "COPY" using password "" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -89,7 +89,7 @@ Feature: COPY file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send COPY requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "COPY" with no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: delete file/folder
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send DELETE requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "DELETE" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -62,7 +62,7 @@ Feature: delete file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "404"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send DELETE requests to webDav endpoints using invalid username but correct password
|
||||
When user "usero" requests these endpoints with "DELETE" using the password of user "Alice"
|
||||
| endpoint |
|
||||
@@ -90,7 +90,7 @@ Feature: delete file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send DELETE requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "DELETE" with no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: LOCK file/folder
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send LOCK requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "LOCK" including body "doesnotmatter" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -28,7 +28,7 @@ Feature: LOCK file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send LOCK requests to webDav endpoints as normal user with no password
|
||||
When user "Alice" requests these endpoints with "LOCK" including body "doesnotmatter" using password "" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -94,7 +94,7 @@ Feature: LOCK file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send LOCK requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "LOCK" with body "doesnotmatter" and no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -10,7 +10,7 @@ Feature: create folder using MKCOL
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send MKCOL requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "MKCOL" including body "doesnotmatter" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -24,7 +24,7 @@ Feature: create folder using MKCOL
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send MKCOL requests to webDav endpoints as normal user with no password
|
||||
When user "Alice" requests these endpoints with "MKCOL" including body "doesnotmatter" using password "" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -111,7 +111,7 @@ Feature: create folder using MKCOL
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send MKCOL requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "MKCOL" with body "doesnotmatter" and no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -13,7 +13,7 @@ Feature: MOVE file/folder
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send MOVE requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "MOVE" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -27,7 +27,7 @@ Feature: MOVE file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send MOVE requests to webDav endpoints as normal user with no password
|
||||
When user "Alice" requests these endpoints with "MOVE" using password "" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -88,7 +88,7 @@ Feature: MOVE file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send MOVE requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "MOVE" with no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: POST file/folder
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send POST requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "POST" including body "doesnotmatter" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -28,7 +28,7 @@ Feature: POST file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send POST requests to webDav endpoints as normal user with no password
|
||||
When user "Alice" requests these endpoints with "POST" including body "doesnotmatter" using password "" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -88,7 +88,7 @@ Feature: POST file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send POST requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "POST" with body "doesnotmatter" and no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -13,7 +13,7 @@ Feature: PROPFIND file/folder
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PROPFIND requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "PROPFIND" including body "doesnotmatter" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -27,7 +27,7 @@ Feature: PROPFIND file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PROPFIND requests to webDav endpoints as normal user with no password
|
||||
When user "Alice" requests these endpoints with "PROPFIND" including body "doesnotmatter" using password "" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -87,7 +87,7 @@ Feature: PROPFIND file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PROPFIND requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "PROPFIND" with body "doesnotmatter" and no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: PROPPATCH file/folder
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PROPPATCH requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "PROPPATCH" including body "doesnotmatter" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -28,7 +28,7 @@ Feature: PROPPATCH file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PROPPATCH requests to webDav endpoints as normal user with no password
|
||||
When user "Alice" requests these endpoints with "PROPPATCH" including body "doesnotmatter" using password "" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -70,7 +70,7 @@ Feature: PROPPATCH file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PROPPATCH requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "PROPPATCH" with body "doesnotmatter" and no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: PUT file/folder
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PUT requests to webDav endpoints as normal user with wrong password
|
||||
When user "Alice" requests these endpoints with "PUT" including body "doesnotmatter" using password "invalid" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -28,7 +28,7 @@ Feature: PUT file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PUT requests to webDav endpoints as normal user with no password
|
||||
When user "Alice" requests these endpoints with "PUT" including body "doesnotmatter" using password "" about user "Alice"
|
||||
| endpoint |
|
||||
@@ -94,7 +94,7 @@ Feature: PUT file/folder
|
||||
| /dav/spaces/%spaceid%/PARENT/parent.txt |
|
||||
Then the HTTP status code of responses on all endpoints should be "401"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: send PUT requests to webDav endpoints without any authentication
|
||||
When a user requests these endpoints with "PUT" with body "doesnotmatter" and no authentication about user "Alice"
|
||||
| endpoint |
|
||||
|
||||
@@ -6,7 +6,7 @@ Feature: capabilities
|
||||
Background:
|
||||
Given using OCS API version "1"
|
||||
|
||||
@smokeTest @issue-1285
|
||||
@issue-1285
|
||||
Scenario: getting default capabilities with admin user
|
||||
When the administrator retrieves the capabilities using the capabilities API
|
||||
Then the OCS status code should be "100"
|
||||
@@ -166,7 +166,7 @@ Feature: capabilities
|
||||
}
|
||||
"""
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: getting default capabilities with version string with admin user
|
||||
When the administrator retrieves the capabilities using the capabilities API
|
||||
Then the ocs JSON data of the response should match
|
||||
|
||||
@@ -17,7 +17,7 @@ Feature: checksums
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest @issue-1291
|
||||
@issue-1291
|
||||
Scenario Outline: uploading a file with checksum should return the checksum in the propfind
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/myChecksumFile.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a"
|
||||
@@ -29,7 +29,7 @@ Feature: checksums
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest @issue-1316
|
||||
@issue-1316
|
||||
Scenario Outline: uploading a file with checksum should return the checksum in the download header
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/myChecksumFile.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a"
|
||||
@@ -273,7 +273,7 @@ Feature: checksums
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@skipOnStorage:ceph @skipOnStorage:scality @issue-1291
|
||||
@issue-1291
|
||||
Scenario Outline: uploading a file with invalid SHA1 checksum overwriting an existing file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "/textfile0.txt"
|
||||
|
||||
@@ -3,7 +3,7 @@ Feature: Status
|
||||
I want to check status of the server
|
||||
So that I can ensure that the server is working
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: Status.php is correct
|
||||
When the administrator requests status.php
|
||||
Then the status.php response should include
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@ Feature: resources shared with the same name are received with unique names
|
||||
| Brian |
|
||||
| Carol |
|
||||
|
||||
@smokeTest @issue-2131
|
||||
@issue-2131
|
||||
Scenario: unique target names for incoming shares
|
||||
Given user "Alice" has created folder "/foo"
|
||||
And user "Brian" has created folder "/foo"
|
||||
@@ -24,7 +24,7 @@ Feature: resources shared with the same name are received with unique names
|
||||
| Shares/foo |
|
||||
| /Shares/foo (1) |
|
||||
|
||||
@smokeTest @issue-2131
|
||||
@issue-2131
|
||||
Scenario: unique target names for incoming shares when auto-accepting is disabled
|
||||
Given user "Brian" has disabled auto-accepting
|
||||
And user "Alice" has created folder "/foo"
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@ Feature: sharing
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: creating a share of a file with a user, the default permissions are read(1)+update(2)
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -34,7 +34,7 @@ Feature: sharing
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest @issue-2133
|
||||
@issue-2133
|
||||
Scenario Outline: creating a share of a file containing commas in the filename, with a user, the default permissions are read(1)+update(2)+can-share(16)
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -202,7 +202,7 @@ Feature: sharing
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: share of folder to a group
|
||||
Given these users have been created with default attributes:
|
||||
| username |
|
||||
@@ -232,7 +232,7 @@ Feature: sharing
|
||||
Then user "Alice" should see the following elements
|
||||
| /Shares/PARENT |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: user included in multiple groups, shares a folder with a group
|
||||
Given these users have been created with default attributes:
|
||||
| username |
|
||||
@@ -548,7 +548,7 @@ Feature: sharing
|
||||
| old |
|
||||
| new |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: creating a share of a renamed file
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Brian" has been created with default attributes
|
||||
|
||||
+3
-3
@@ -36,7 +36,7 @@ Feature: sharing
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: delete a share
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And using SharingNG
|
||||
@@ -78,7 +78,7 @@ Feature: sharing
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: deleting a file out of a share as recipient creates a backup for the owner
|
||||
Given using <dav-path-version> DAV path
|
||||
And using OCS API version "1"
|
||||
@@ -131,7 +131,7 @@ Feature: sharing
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: unshare from self
|
||||
And group "grp1" has been created
|
||||
And these users have been created with default attributes:
|
||||
|
||||
@@ -24,7 +24,7 @@ Feature: accept/decline shares coming from internal users
|
||||
And user "Brian" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt"
|
||||
And user "Brian" has uploaded file "filesForUpload/textfile.txt" to "PARENT/parent.txt"
|
||||
|
||||
@smokeTest @issue-2540
|
||||
@issue-2540
|
||||
Scenario: share a file & folder with another internal group when auto accept is disabled
|
||||
Given user "Brian" has disabled auto-accepting
|
||||
And user "Carol" has disabled auto-accepting
|
||||
@@ -80,7 +80,7 @@ Feature: accept/decline shares coming from internal users
|
||||
| /PARENT/ |
|
||||
| /textfile0.txt |
|
||||
|
||||
@smokeTest @issue-2131
|
||||
@issue-2131
|
||||
Scenario: accept a pending share
|
||||
Given user "Brian" has disabled auto-accepting
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
@@ -150,7 +150,7 @@ Feature: accept/decline shares coming from internal users
|
||||
| path |
|
||||
| /Shares/shared/ |
|
||||
|
||||
@smokeTest @issue-2540
|
||||
@issue-2540
|
||||
Scenario: declines a pending share
|
||||
Given user "Brian" has disabled auto-accepting
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
@@ -182,7 +182,7 @@ Feature: accept/decline shares coming from internal users
|
||||
| /PARENT/ |
|
||||
| /textfile0.txt |
|
||||
|
||||
@smokeTest @issue-2128 @issue-2540
|
||||
@issue-2128 @issue-2540
|
||||
Scenario: decline an accepted share
|
||||
Given user "Brian" has disabled auto-accepting
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@skipOnReva @issue-1328 @issues-1289
|
||||
@skipOnReva @issue-1328 @issue-1289
|
||||
Feature: sharing
|
||||
|
||||
Background:
|
||||
@@ -11,7 +11,7 @@ Feature: sharing
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Brian" has disabled auto-accepting
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: merging shares for recipient when shared from outside with group and member
|
||||
Given user "Alice" has created folder "/merge-test-outside"
|
||||
When user "Alice" shares folder "/merge-test-outside" with group "grp1" using the sharing API
|
||||
|
||||
@@ -11,7 +11,7 @@ Feature: sharing
|
||||
| Brian |
|
||||
And user "Alice" has uploaded file with content "some data" to "/textfile0.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: sharee can see the share
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
@@ -31,7 +31,7 @@ Feature: sharing
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: sharee can see the filtered share
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "some data" to "/textfile1.txt"
|
||||
@@ -59,7 +59,7 @@ Feature: sharing
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest @issue-1257
|
||||
@issue-1257
|
||||
Scenario Outline: sharee can't see the share that is filtered out
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "some data" to "/textfile1.txt"
|
||||
@@ -87,7 +87,7 @@ Feature: sharing
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest @issue-1289
|
||||
@issue-1289
|
||||
Scenario Outline: sharee can see the group share
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And group "grp1" has been created
|
||||
|
||||
@@ -10,7 +10,7 @@ Feature: sharing
|
||||
| Alice |
|
||||
| Brian |
|
||||
|
||||
@smokeTest @issue-1258
|
||||
@issue-1258
|
||||
Scenario Outline: getting all shares from a user
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "some data" to "/file_to_share.txt"
|
||||
@@ -48,7 +48,7 @@ Feature: sharing
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: getting all shares of a file
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And these users have been created with default attributes:
|
||||
@@ -79,7 +79,7 @@ Feature: sharing
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest @issue-1226 @issue-1270 @issue-1271
|
||||
@issue-1226 @issue-1270 @issue-1271
|
||||
Scenario Outline: getting share info of a share
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "some data" to "/file_to_share.txt"
|
||||
@@ -160,7 +160,7 @@ Feature: sharing
|
||||
| /Shares/PARENT |
|
||||
| /Shares/PARENT/parent.txt |
|
||||
|
||||
@smokeTest @issue-1226 @issue-1270 @issue-1271 @issue-1231
|
||||
@issue-1226 @issue-1270 @issue-1271 @issue-1231
|
||||
Scenario Outline: getting share info of a share shared from inside folder
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has created folder "/PARENT"
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ Feature: sharing
|
||||
| Alice |
|
||||
| Brian |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: check webdav share-permissions for owned file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "foo" to "/tmp.txt"
|
||||
|
||||
@@ -110,7 +110,7 @@ Feature: sharing
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: uploading file to a user read/write share folder works
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -164,7 +164,7 @@ Feature: sharing
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: check quota of owners parent directory of a shared file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
|
||||
@@ -8,7 +8,7 @@ Feature: create a public link share
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest @skipOnReva
|
||||
@skipOnReva
|
||||
Scenario Outline: creating public link share of a file or a folder using the default permissions without password using the public WebDAV API
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
|
||||
@@ -26,7 +26,7 @@ Feature: create a public link share
|
||||
| 1 | 200 |
|
||||
| 2 | 400 |
|
||||
|
||||
@smokeTest @issue-10331 @issue-9724
|
||||
@issue-10331 @issue-9724
|
||||
Scenario Outline: creating a new public link share of a file with password using the public WebDAV API
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
|
||||
@@ -122,7 +122,7 @@ Feature: create a public link share
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: getting the share information of public link share from the OCS API does not expose sensitive information
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
|
||||
@@ -392,7 +392,7 @@ Feature: create a public link share
|
||||
Then the HTTP status code should be "207"
|
||||
And the value of the item "//d:href" in the response should match "/\/dav\/public-files\/%public_token%\/file.txt$/"
|
||||
|
||||
@issue-6929 @@skipOnReva
|
||||
@issue-6929 @skipOnReva
|
||||
Scenario Outline: create a password-protected public link on a file with the name same to the previously deleted one
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has uploaded file with content "test data 1" to "/test.txt"
|
||||
|
||||
@@ -7,7 +7,7 @@ Feature: multi-link sharing
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: creating three public shares of a folder
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
|
||||
@@ -52,7 +52,7 @@ Feature: update a public link share
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: change expiration date of a newly created public link share and get its info
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
|
||||
@@ -102,7 +102,7 @@ Feature: upload to a public link share
|
||||
When the public uploads file "test.txt" with password "%public%" and content "test2" using the public WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
|
||||
@smokeTest @issue-10331
|
||||
@issue-10331
|
||||
Scenario: uploading to a public upload-write and no edit and no overwrite share with public API
|
||||
Given using SharingNG
|
||||
And user "Alice" has created the following resource link share:
|
||||
@@ -114,7 +114,7 @@ Feature: upload to a public link share
|
||||
Then the HTTP status code should be "201"
|
||||
And the content of file "/FOLDER/test.txt" for user "Alice" should be "test2"
|
||||
|
||||
@smokeTest @issue-1267 @issue-10331
|
||||
@issue-1267 @issue-10331
|
||||
Scenario: uploading same file to a public upload-write and no edit and no overwrite share multiple times with new public API
|
||||
Given using SharingNG
|
||||
And user "Alice" has created the following resource link share:
|
||||
|
||||
@@ -12,7 +12,7 @@ Feature: search sharees
|
||||
And group "ShareeGroup2" has been created
|
||||
And user "Alice" has been added to group "ShareeGroup2"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: search without exact match
|
||||
Given using OCS API version "<ocs-api-version>"
|
||||
When user "Alice" gets the sharees using the sharing API with parameters
|
||||
|
||||
@@ -13,7 +13,7 @@ Feature: files and folders can be deleted from the trashbin
|
||||
And user "Alice" has uploaded file with content "to delete" to "/PARENT/parent.txt"
|
||||
And user "Alice" has uploaded file with content "to delete" to "/PARENT/CHILD/child.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: trashbin can be emptied
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "file with comma" to "sample,0.txt"
|
||||
@@ -31,7 +31,7 @@ Feature: files and folders can be deleted from the trashbin
|
||||
| spaces | textfile0.txt | textfile1.txt |
|
||||
| spaces | sample,0.txt | sample,1.txt |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: delete a single file from the trashbin
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has deleted file "/textfile0.txt"
|
||||
@@ -49,7 +49,7 @@ Feature: files and folders can be deleted from the trashbin
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: delete multiple files from the trashbin and make sure the correct ones are gone
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/PARENT/textfile0.txt"
|
||||
|
||||
@@ -8,7 +8,7 @@ Feature: files and folders exist in the trashbin after being deleted
|
||||
Given user "Alice" has been created with default attributes
|
||||
And user "Alice" has uploaded file with content "to delete" to "/textfile0.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: deleting a file moves it to trashbin
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" deletes file "/textfile0.txt" using the WebDAV API
|
||||
@@ -20,7 +20,7 @@ Feature: files and folders exist in the trashbin after being deleted
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: deleting a folder moves it to trashbin
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has created folder "/tmp"
|
||||
@@ -158,7 +158,7 @@ Feature: files and folders exist in the trashbin after being deleted
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-3561 @smokeTest
|
||||
@issue-3561
|
||||
Scenario Outline: listing other user's trashbin is prohibited with multiple files on trashbin
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "testtrashbin101" has been created with default attributes
|
||||
@@ -225,7 +225,7 @@ Feature: files and folders exist in the trashbin after being deleted
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: get trashbin content with wrong password
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
|
||||
@@ -240,7 +240,7 @@ Feature: files and folders exist in the trashbin after being deleted
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: get trashbin content without password
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
|
||||
|
||||
@@ -8,7 +8,7 @@ Feature: using trashbin together with sharing
|
||||
Given user "Alice" has been created with default attributes
|
||||
And user "Alice" has uploaded file with content "file to delete" to "/textfile0.txt"
|
||||
|
||||
@smokeTest @issue-7555
|
||||
@issue-7555
|
||||
Scenario Outline: deleting a received folder doesn't move it to trashbin
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
|
||||
@@ -8,7 +8,7 @@ Feature: restore deleted files/folders
|
||||
Given user "Alice" has been created with default attributes
|
||||
And user "Alice" has uploaded file with content "file to delete" to "/textfile0.txt"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: deleted file can be restored
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
@@ -130,7 +130,7 @@ Feature: restore deleted files/folders
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: deleted file cannot be restored by a different user
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -145,7 +145,7 @@ Feature: restore deleted files/folders
|
||||
| new | 404 |
|
||||
| spaces | 400 |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: deleted file cannot be restored with invalid password
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
@@ -160,7 +160,7 @@ Feature: restore deleted files/folders
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: deleted file cannot be restored without using a password
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
|
||||
@@ -30,7 +30,7 @@ Feature: dav-versions
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: upload a file twice and versions are available
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" uploads file "filesForUpload/davtest.txt" to "/davtest.txt" using the WebDAV API
|
||||
@@ -57,7 +57,7 @@ Feature: dav-versions
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: remove a file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file "filesForUpload/davtest.txt" to "/davtest.txt"
|
||||
@@ -73,7 +73,7 @@ Feature: dav-versions
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario: restore a file and check its content
|
||||
Given user "Alice" has uploaded file with content "Test Content." to "/davtest.txt"
|
||||
And user "Alice" has uploaded file with content "Content Test Updated." to "/davtest.txt"
|
||||
@@ -82,7 +82,7 @@ Feature: dav-versions
|
||||
Then the HTTP status code should be "204"
|
||||
And the content of file "/davtest.txt" for user "Alice" should be "Test Content."
|
||||
|
||||
@smokeTest @skipOnStorage:ceph @skipOnStorage:scality
|
||||
|
||||
Scenario: restore a file back to bigger content and check its content
|
||||
And user "Alice" has uploaded file with content "Back To The Future." to "/davtest.txt"
|
||||
And user "Alice" has uploaded file with content "Update Content." to "/davtest.txt"
|
||||
@@ -91,7 +91,7 @@ Feature: dav-versions
|
||||
Then the HTTP status code should be "204"
|
||||
And the content of file "/davtest.txt" for user "Alice" should be "Back To The Future."
|
||||
|
||||
@smokeTest @skipOnStorage:ceph
|
||||
|
||||
Scenario: uploading a chunked file does create the correct version that can be restored
|
||||
Given user "Alice" has uploaded file with content "textfile0" to "textfile0.txt"
|
||||
When user "Alice" uploads file "filesForUpload/davtest.txt" to "/textfile0.txt" in 2 chunks using the WebDAV API
|
||||
@@ -102,7 +102,7 @@ Feature: dav-versions
|
||||
Then the HTTP status code should be "204"
|
||||
And the content of file "/textfile0.txt" for user "Alice" should be "Dav-Test"
|
||||
|
||||
@skipOnStorage:ceph @skipOnStorage:scality
|
||||
|
||||
Scenario: restore a file and check the content and checksum
|
||||
Given user "Alice" has uploaded file with content "AAAAABBBBBCCCCC" and checksum "MD5:45a72715acdd5019c5be30bdbb75233e" to "/davtest.txt"
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/davtest.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a"
|
||||
@@ -194,7 +194,7 @@ Feature: dav-versions
|
||||
| Content-Disposition | attachment; filename*=UTF-8''textfile0.txt; filename="textfile0.txt" |
|
||||
And the downloaded content should be "uploaded content"
|
||||
|
||||
@skipOnStorage:ceph @skipOnStorage:scality
|
||||
|
||||
Scenario: download an old version of a restored file
|
||||
Given user "Alice" has uploaded file with content "uploaded content" to "textfile0.txt"
|
||||
And user "Alice" has uploaded file with content "version 1" to "textfile0.txt"
|
||||
@@ -486,7 +486,7 @@ Feature: dav-versions
|
||||
Then the HTTP status code should be "404"
|
||||
And the value of the item "//s:exception" in the response about user "Alice" should be "Sabre\DAV\Exception\NotFound"
|
||||
|
||||
@skipOnStorage:ceph @skipOnReva
|
||||
@skipOnReva
|
||||
Scenario: receiver tries get file versions of shared file from the sharer
|
||||
Given user "Brian" has been created with default attributes
|
||||
And user "Alice" has uploaded file with content "textfile0" to "textfile0.txt"
|
||||
|
||||
@@ -10,7 +10,7 @@ Feature: copy file
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 1" to "/textfile1.txt"
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: copying a file
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" copies file "/textfile0.txt" to "/FOLDER/textfile0.txt" using the WebDAV API
|
||||
@@ -22,7 +22,7 @@ Feature: copy file
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: copying and overwriting a file
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" copies file "/textfile0.txt" to "/textfile1.txt" using the WebDAV API
|
||||
|
||||
@@ -50,7 +50,7 @@ Feature: create files and folder
|
||||
| spaces | "'single'" |
|
||||
| spaces | '"double"' |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: get resourcetype property of a folder
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has created folder "/test_folder"
|
||||
@@ -122,7 +122,7 @@ Feature: create files and folder
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@web-issue-1893
|
||||
@issue-web-1893
|
||||
Scenario Outline: create a file
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" uploads file with content "some text" to <file-name> using the WebDAV API
|
||||
|
||||
@@ -6,7 +6,7 @@ Feature: delete file
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: delete a file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "to delete" to "/textfile0.txt"
|
||||
|
||||
@@ -7,7 +7,7 @@ Feature: delete folder
|
||||
Given user "Alice" has been created with default attributes
|
||||
And user "Alice" creates folder "/PARENT" using the WebDAV API
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: delete a folder
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" deletes folder "/PARENT" using the WebDAV API
|
||||
|
||||
@@ -8,7 +8,7 @@ Feature: propagation of etags when restoring a version of a file
|
||||
Given using OCS API version "2"
|
||||
And user "Alice" has been created with default attributes
|
||||
|
||||
@skipOnStorage:ceph @skipOnStorage:scality
|
||||
|
||||
Scenario: restoring a file changes the etags of all parents
|
||||
Given user "Alice" has created folder "/upload"
|
||||
And user "Alice" has created folder "/upload/sub"
|
||||
|
||||
@@ -7,7 +7,7 @@ Feature: move (rename) file
|
||||
Given using OCS API version "1"
|
||||
And user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: moving a file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
@@ -23,7 +23,7 @@ Feature: move (rename) file
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: moving and overwriting a file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0 v1" to "textfile0.txt"
|
||||
@@ -56,7 +56,7 @@ Feature: move (rename) file
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: moving (renaming) a file to a file with only different case to an existing file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "textfile0.txt"
|
||||
@@ -175,7 +175,7 @@ Feature: move (rename) file
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@sqliteDB
|
||||
|
||||
Scenario Outline: renaming to a file with special characters
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "textfile0.txt"
|
||||
@@ -242,7 +242,7 @@ Feature: move (rename) file
|
||||
| spaces | /... | abcd.txt |
|
||||
| spaces | /... | ... |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: user tries to move a file that doesnt exist into a folder
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
@@ -255,7 +255,7 @@ Feature: move (rename) file
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: user tries to rename a file that doesn't exist
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" moves file "/doesNotExist.txt" to "/exist.txt" using the WebDAV API
|
||||
|
||||
@@ -6,7 +6,7 @@ Feature: download file
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: download a file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "/textfile0.txt"
|
||||
@@ -215,7 +215,7 @@ Feature: download file
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest @issue-8361 @skipOnReva
|
||||
@issue-8361 @skipOnReva
|
||||
Scenario Outline: downloading a file should serve security headers
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "test file" to "/<file-name>"
|
||||
@@ -243,7 +243,7 @@ Feature: download file
|
||||
| spaces | comma,.txt | comma%2C.txt |
|
||||
| spaces | 'quote'single'.txt | %27quote%27single%27.txt |
|
||||
|
||||
@smokeTest @issue-8361 @skipOnReva
|
||||
@issue-8361 @skipOnReva
|
||||
Scenario Outline: downloading a file should serve security headers (file with double quotes)
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "test file" to '/"quote"double".txt'
|
||||
@@ -292,7 +292,7 @@ Feature: download file
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@web-issue-1893
|
||||
@issue-web-1893
|
||||
Scenario Outline: download a file with special characters in the filename
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "test file" to <file-name>
|
||||
|
||||
@@ -6,7 +6,7 @@ Feature: refuse access
|
||||
Background:
|
||||
Given using OCS API version "1"
|
||||
|
||||
@smokeTest @issue-2285
|
||||
@issue-2285
|
||||
Scenario Outline: unauthenticated call
|
||||
# cannot perform with spaces WebDAV due to the absence of user
|
||||
Given using <dav-path-version> DAV path
|
||||
|
||||
@@ -7,7 +7,7 @@ Feature: get file properties
|
||||
Given using OCS API version "1"
|
||||
And user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: user sends a PROPFIND request on various file names
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "uploaded content" to "<file-name>"
|
||||
@@ -263,7 +263,7 @@ Feature: get file properties
|
||||
| new | textfile.txt |
|
||||
| spaces | textfile.txt |
|
||||
|
||||
@smokeTest @issue-2809
|
||||
@issue-2809
|
||||
Scenario Outline: retrieving a private link
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/somefile.txt"
|
||||
|
||||
@@ -20,7 +20,7 @@ Feature: get quota
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: retrieving folder quota when quota is set
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Admin" changes the quota of the personal space of user "Alice" to "10000" using the Graph API
|
||||
|
||||
@@ -7,7 +7,7 @@ Feature: set file properties
|
||||
Given using OCS API version "1"
|
||||
And user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest @issue-1263
|
||||
@issue-1263
|
||||
Scenario Outline: setting custom DAV property and reading it
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "testcustomprop.txt"
|
||||
|
||||
@@ -7,7 +7,7 @@ Feature: upload file
|
||||
Given using OCS API version "1"
|
||||
And user "Alice" has been created with default attributes
|
||||
|
||||
@smokeTest
|
||||
|
||||
Scenario Outline: upload a file and check etag and download content
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" uploads file with content "uploaded content" to "<file-name>" using the WebDAV API
|
||||
|
||||
@@ -82,8 +82,7 @@ Feature: upload file using old chunking
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@smokeTest
|
||||
# This smokeTest scenario does ordinary checks for chunked upload,
|
||||
# This scenario does ordinary checks for chunked upload,
|
||||
# without adjusting the log level. This allows it to run in test environments
|
||||
# where the log level has been fixed and cannot be changed.
|
||||
Scenario Outline: chunked upload files with difficult name
|
||||
|
||||
Reference in new issue
Block a user