[tests-only] adjust TUS OPTIONS test expectations to current behaiviour
This commit is contained in:
5 files changed
+39
-1
No files matched your search
+1
-1
@@ -17,7 +17,7 @@ config = {
|
|||||||
},
|
},
|
||||||
'apiTests': {
|
'apiTests': {
|
||||||
'coreBranch': 'master',
|
'coreBranch': 'master',
|
||||||
'coreCommit': '592d76b63254767ac17414475c37b48668a517b8',
|
'coreCommit': 'ed326fd54c7f9142389e49aad87653a905c6ddb7',
|
||||||
'numberOfParts': 10
|
'numberOfParts': 10
|
||||||
},
|
},
|
||||||
'uiTests': {
|
'uiTests': {
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ default:
|
|||||||
- PublicWebDavContext:
|
- PublicWebDavContext:
|
||||||
- TrashbinContext:
|
- TrashbinContext:
|
||||||
- WebDavPropertiesContext:
|
- WebDavPropertiesContext:
|
||||||
|
- TUSContext:
|
||||||
|
|
||||||
extensions:
|
extensions:
|
||||||
jarnaiz\JUnitFormatter\JUnitFormatterExtension:
|
jarnaiz\JUnitFormatter\JUnitFormatterExtension:
|
||||||
|
|||||||
@@ -2502,3 +2502,7 @@ apiWebdavUploadTUS/uploadToShare.feature:67
|
|||||||
# https://github.com/owncloud/product/issues/293 sharing with group not available
|
# https://github.com/owncloud/product/issues/293 sharing with group not available
|
||||||
apiWebdavUploadTUS/uploadToShare.feature:52
|
apiWebdavUploadTUS/uploadToShare.feature:52
|
||||||
apiWebdavUploadTUS/uploadToShare.feature:53
|
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
|
||||||
@@ -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
|
# 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:611
|
||||||
apiShareManagementBasicToShares/createShareToSharesFolder.feature:612
|
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
|
||||||
@@ -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 |
|
||||||
Reference in new issue
Block a user