-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test-only][full-ci] added tests for reading content of a file by fileId using WebDav API #6958
[test-only][full-ci] added tests for reading content of a file by fileId using WebDav API #6958
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
e5bcc53
to
ed03c7f
Compare
ed03c7f
to
809ff98
Compare
809ff98
to
f78b85e
Compare
f78b85e
to
e48828b
Compare
e48828b
to
49f37e5
Compare
49f37e5
to
d6e897b
Compare
|
||
Scenario Outline: get content of a file | ||
Given user "Alice" has uploaded file with content "some data" to "/textfile.txt" | ||
When user "Alice" gets the content of file "/textfile.txt" with path "<dav-path>" using WebDav API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any good suggestions here?
When user "Alice" gets the content of file "/textfile.txt" with path "<dav-path>" using WebDav API | |
When user "Alice" gets the content of file "/textfile.txt" from fileId and path "<dav-path>" using WebDav API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When user "Alice" gets the content of file "/textfile.txt" with path "<dav-path>" using WebDav API | |
When user "Alice" sends HTTP "GET" request to file "/textfile.txt" with path "<dav-path>" | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think instead of adding this new step we can use the existing step When user "Alice" sends HTTP method "GET" to URL "<dav-path>"
.
@saw-jan @SwikritiT @amrita-shrestha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be great 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any good suggestions here?
re-using the already present step is great but that doesn't really answer this IMO and I'm just thinking out loud here, I don't have any suggestions, maybe the feature file's name should be explanation enough that the request is done through the fileId ?
d132e35
to
0e118f6
Compare
0e118f6
to
45042be
Compare
tests/acceptance/features/apiWebDavOperations/getFileByFileId.feature
Outdated
Show resolved
Hide resolved
45042be
to
8c5de07
Compare
8c5de07
to
9fad8cf
Compare
9fad8cf
to
affbd47
Compare
tests/acceptance/features/apiSpacesDavOperation/getFileByFileId.feature
Outdated
Show resolved
Hide resolved
affbd47
to
f1200f7
Compare
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
This PR adds the test scenarios for reading the content of a file inside personal space, project space, inside sub-folder, and shared files/folders.
The added test is done with and without
remote.php
, in the destination URL./remote.php/dav/spaces/<fileId>
/dav/spaces/<fileId>
Backport to stable-3.0: [tests-only] [full-ci] Backport access file using file id #7064
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: