-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1013 from owncloud/bump-core-commit-tus-option-ex…
…pectations [tests-only] adjust TUS OPTIONS test expectations to current behaiviour
- Loading branch information
Showing
5 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/acceptance/features/apiOcisSpecific/apiWebdavUploadTUS-optionsRequest.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |