-
Notifications
You must be signed in to change notification settings - Fork 187
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] ApiTest. creating a shared resource with an expiration date #5424
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. |
💥 Acceptance test Core-API-Tests-ocis-storage-4 failed. Further test are cancelled... |
8ac521b
to
71abe89
Compare
69ca246
to
af30a39
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.
Indentation only
tests/acceptance/features/apiSpacesShares/shareSubItemOfSpace.feature
Outdated
Show resolved
Hide resolved
when creating the test, I noticed a difference in the expiration date between share and share public link method actual expiration date in response in some body request |
e4c86f4
to
3b959b9
Compare
| expireDate | +3 days | | ||
| expireDate | 2040-01-01T23:59:59+0100 | |
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.
Was this necessary?
Can we only assert the date (2040-01-01
) but not the time in order to cope with the differences? That way we may use incremental days +3
.
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 did this for more transparency. If we use this aproach In the test, we can see what date format we use in the body of the request and what date format we get in the response. Unfortunately, we have a difference in this (I created a bug), and I have to postpone PR until it's clearer how it's supposed to work
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.
we get a different date format in the response, so I:
- created error Sharing to a group with an expiration date does not work #5442
- check the date format (2040-01-01)
71b2e3a
to
b6d5a4e
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
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! |
Author: Viktor Scharf <[email protected]> Date: Wed Feb 1 09:55:51 2023 +0100 create share with expirate date. refactoring code (#5424)
shareSubItemOfSpace.feature
add ability to set expire dateGET https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares/shareId
response