[tests-only] adjust TUS OPTIONS test expectations to current behaiviour

This commit is contained in:
Artur Neumann
2020-12-03 15:30:27 +05:45
parent fc9e7f7cc9
commit 5655ea4e05
5 changed files with 39 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ config = {
},
'apiTests': {
'coreBranch': 'master',
'coreCommit': '592d76b63254767ac17414475c37b48668a517b8',
'coreCommit': 'ed326fd54c7f9142389e49aad87653a905c6ddb7',
'numberOfParts': 10
},
'uiTests': {

View File

@@ -44,6 +44,7 @@ default:
- PublicWebDavContext:
- TrashbinContext:
- WebDavPropertiesContext:
- TUSContext:
extensions:
jarnaiz\JUnitFormatter\JUnitFormatterExtension:

View File

@@ -2502,3 +2502,7 @@ apiWebdavUploadTUS/uploadToShare.feature:67
# https://github.com/owncloud/product/issues/293 sharing with group not available
apiWebdavUploadTUS/uploadToShare.feature:52
apiWebdavUploadTUS/uploadToShare.feature:53
# https://github.com/owncloud/ocis/issues/1012 TUS OPTIONS requests does not reply with TUS headers when invalid password
apiWebdavUploadTUS/optionsRequest.feature:29
apiWebdavUploadTUS/optionsRequest.feature:40

View File

@@ -2410,3 +2410,7 @@ apiVersions/fileVersionsSharingToShares.feature:279
# https://github.com/owncloud/ocis/issues/719 when a share exists its impossible to share a renamed folder
apiShareManagementBasicToShares/createShareToSharesFolder.feature:611
apiShareManagementBasicToShares/createShareToSharesFolder.feature:612
# https://github.com/owncloud/ocis/issues/1012 TUS OPTIONS requests does not reply with TUS headers when invalid password
apiWebdavUploadTUS/optionsRequest.feature:29
apiWebdavUploadTUS/optionsRequest.feature:40

View File

@@ -0,0 +1,29 @@
@api @issue-ocis-1012
# after fixing all issues delete these Scenarios and use the one from oC10 core
Feature: OPTIONS request
Background:
Given user "Alice" has been created with default attributes and without skeleton files
Scenario: send OPTIONS request to webDav endpoints using the TUS protocol with valid username and wrong password
When user "Alice" requests these endpoints with "OPTIONS" including body "doesnotmatter" using password "invalid" about user "Alice"
| endpoint |
| /remote.php/webdav/ |
| /remote.php/dav/files/%username%/ |
Then the following headers should not be set
| header |
| Tus-Resumable |
| Tus-Version |
| Tus-Extension |
Scenario: send OPTIONS requests to webDav endpoints using valid password and username of different user
Given user "Brian" has been created with default attributes and without skeleton files
When user "Brian" requests these endpoints with "OPTIONS" including body "doesnotmatter" using the password of user "Alice"
| endpoint |
| /remote.php/webdav/ |
| /remote.php/dav/files/%username%/ |
Then the following headers should not be set
| header |
| Tus-Resumable |
| Tus-Version |
| Tus-Extension |