Repository navigation
[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
|
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
| And parameter "public_share_sharers_groups_allowlist" of app "files_sharing" has been set to '["grp1"]' | ||
| When user "Alice" updates the last public link share using the sharing API with | ||
| | expireDate | +3 days | | ||
| | expireDate | 2040-01-01T23:59:59+0100 | |
There was a problem hiding this comment.
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.
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.
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
|
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.featureadd ability to set expire dateGET https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares/shareIdresponse