Skip to content
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]Added test to update role and expiration date for share link (v1beta1) #8071

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

SagarGi
Copy link
Member

@SagarGi SagarGi commented Dec 27, 2023

Description

This PR adds test scenarios for updating roles and expiration date for the created share link

Scenario Outline: update role of a file's link share
Scenario: update expiration date of a file's link share

Related Issue:

#7968

@SagarGi SagarGi changed the title [tests-only][full-ci]Added test to update role and expiration date [tests-only][full-ci]Added test to update role and expiration date for share link (v1beta1) Dec 27, 2023
@SagarGi SagarGi self-assigned this Dec 28, 2023
@SagarGi SagarGi marked this pull request as ready for review December 28, 2023 08:35
@SagarGi SagarGi force-pushed the CreateShare/updateLink branch 2 times, most recently from 98c00d2 to a8de3c3 Compare January 1, 2024 06:05
@grgprarup grgprarup requested a review from saw-jan January 1, 2024 06:07
@SagarGi SagarGi force-pushed the CreateShare/updateLink branch 3 times, most recently from 8f0ce34 to 16c5822 Compare January 1, 2024 08:54
},
"expirationDateTime": {
"type": "string",
"enum": ["2201-07-15T23:59:59Z"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the expected expiry date?
When the share invitation for a resource (file/folder) is sent with an expiry date 2200-07-15T14:00:00.000Z, then the date in response is 2200-07-15T14:00:00Z.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes its the updated expiry date!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My question here is why the expiration date is set differently for a public link. Isn't the time must be set to 14:00:00 instead of 23:59:59?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is expected.

from https://matrix.to/#/!QxIasTYvslDCVqoPzC:matrix.org/$fBktWHnp3ed_mdEokzmlHXkoHReuO3F5MpLpMWrnLDk?via=matrix.org&via=openproject.org&via=matrix.datenschmutz.space

Niraj Acharya(Jankari Tech): when i create a share link for a file and set the expiration date to some thing like Friday, December 15, 2023 12:00:00 AM the experation date is set to Friday, December 15, 2023 11:59:59 PM. does the createLink endpoint set the expiration date to the last second of the day and not the given date?
https://owncloud.dev/libre-graph-api/#/drives.permissions/CreateLink

Michael Barz: Yes that is correct. The OCS was behaving exactly like that.

@SagarGi SagarGi force-pushed the CreateShare/updateLink branch from 16c5822 to b501cb5 Compare January 1, 2024 10:13
@SagarGi SagarGi requested a review from grgprarup January 1, 2024 10:15
@SagarGi SagarGi force-pushed the CreateShare/updateLink branch from b501cb5 to 00d6d37 Compare January 2, 2024 03:45
@SagarGi SagarGi requested a review from saw-jan January 2, 2024 03:45
Copy link

sonarqubecloud bot commented Jan 2, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Member

@saw-jan saw-jan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 ✨

@SwikritiT SwikritiT merged commit 6e9b599 into master Jan 2, 2024
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the CreateShare/updateLink branch January 2, 2024 11:08
SagarGi added a commit that referenced this pull request Jan 2, 2024
…r share link (v1beta1) (#8071)

* Added test to update role and expiration date for share link

Signed-off-by: [email protected] <[email protected]>

* Review address

---------

Signed-off-by: [email protected] <[email protected]>
ownclouders pushed a commit that referenced this pull request Jan 2, 2024
…r share link (v1beta1) (#8071)

* Added test to update role and expiration date for share link

Signed-off-by: [email protected] <[email protected]>

* Review address

---------

Signed-off-by: [email protected] <[email protected]>
saw-jan pushed a commit that referenced this pull request Jan 2, 2024
…r share link (v1beta1) (#8071) (#8103)

* Added test to update role and expiration date for share link



* Review address

---------

Signed-off-by: [email protected] <[email protected]>
ownclouders pushed a commit that referenced this pull request Jan 2, 2024
…r share link (v1beta1) (#8071) (#8103)

* Added test to update role and expiration date for share link

* Review address

---------

Signed-off-by: [email protected] <[email protected]>
ownclouders pushed a commit that referenced this pull request Jan 3, 2024
…r share link (v1beta1) (#8071) (#8103)

* Added test to update role and expiration date for share link

* Review address

---------

Signed-off-by: [email protected] <[email protected]>
nirajacharya2 pushed a commit that referenced this pull request Jan 22, 2024
…r share link (v1beta1) (#8071) (#8103)

* Added test to update role and expiration date for share link

* Review address

---------

Signed-off-by: [email protected] <[email protected]>
2403905 pushed a commit to 2403905/ocis that referenced this pull request Jan 24, 2024
…r share link (v1beta1) (owncloud#8071)

* Added test to update role and expiration date for share link

Signed-off-by: [email protected] <[email protected]>

* Review address

---------

Signed-off-by: [email protected] <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants