-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[tests-only][full-ci]Refactor closed issue related scenarios #40392
Conversation
a8daac9
to
161f70f
Compare
d4e3f25
to
64a2be1
Compare
64a2be1
to
4fdfb71
Compare
be367d5
to
7f5f119
Compare
tests/acceptance/features/apiWebdavOperations/downloadFile.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiWebdavOperations/downloadFile.feature
Outdated
Show resolved
Hide resolved
tests/acceptance/features/apiWebdavOperations/downloadFile.feature
Outdated
Show resolved
Hide resolved
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.
rest 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.
Download API may end with 200(Complete) or 206(Partial). for these two cases, the downloaded content is different. the scenarios tries to cope with both cases,
- if status code is 206, the content check step for status 200 is skipped and vice versa
- content check step requires the status because it differs with the HTTP status received in the download request.
Please refactor you code accordingly. The step words a is bit confusing (at least for me). Adding some comments may help others coming here.
1fdb2ff
to
738f89b
Compare
738f89b
to
a302f53
Compare
a302f53
to
acda461
Compare
acda461
to
eab5338
Compare
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
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 👍
Description
This PR refactor scenario in closed issue to work
Point to note
robots.txt file is generated at the time of ocis build in ocis but ore-exist in the core. Currently, we cache ocis binary only. That's why this scenario
Scenario: robots.txt file should be accessible
passes in the core but fails in ocis
(This step checks the content of the robot.txt file in the services/web/assets/robot.txt path which is not cached currently)
.In CI, we store ocis binary in the cache. This scenario requests for robots.txt content through an API request. It was decided that we can check the content of robots.txt by passing value from step. If in the future robots.txt value changes then this scenario starts to fail.As discussed in can't access public link resources with spaces webdav API ocis#3085 (comment), public-link will not be implemented using space WebDAV so removing it
Related Issue
Searching sharee with displayname
still exist in expected-to-failure ocis#4684No robots.txt available
still exist in expected-to-failure ocis#4685can't access public link resources with spaces webdav API
still exist in expected-to-failure ocis#4687Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: