Skip to content

Commit

Permalink
Merge pull request #1013 from owncloud/bump-core-commit-tus-option-ex…
Browse files Browse the repository at this point in the history
…pectations

[tests-only] adjust TUS OPTIONS test expectations to current behaiviour
  • Loading branch information
individual-it authored Dec 3, 2020
2 parents fc9e7f7 + 5655ea4 commit e0e4585
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ config = {
},
'apiTests': {
'coreBranch': 'master',
'coreCommit': '592d76b63254767ac17414475c37b48668a517b8',
'coreCommit': 'ed326fd54c7f9142389e49aad87653a905c6ddb7',
'numberOfParts': 10
},
'uiTests': {
Expand Down
1 change: 1 addition & 0 deletions tests/acceptance/config/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ default:
- PublicWebDavContext:
- TrashbinContext:
- WebDavPropertiesContext:
- TUSContext:

extensions:
jarnaiz\JUnitFormatter\JUnitFormatterExtension:
Expand Down
4 changes: 4 additions & 0 deletions tests/acceptance/expected-failures-on-OCIS-storage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions tests/acceptance/expected-failures-on-OWNCLOUD-storage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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 |

0 comments on commit e0e4585

Please sign in to comment.