From 4dc1aaebf2933865e2d3eff2cd16bcd3c4949aa0 Mon Sep 17 00:00:00 2001 From: Roshan Lamichhane Date: Fri, 13 Jan 2023 16:57:25 +0545 Subject: [PATCH] Added test scenario for upadting role of a public link to internal --- .../updatePublicLinkShare.feature | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature index f1dc0b51f57..848da56477d 100644 --- a/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature @@ -610,3 +610,28 @@ Feature: update a public link share | dav-path | ocs_api_version | ocs_status_code | | spaces | 1 | 100 | | spaces | 2 | 200 | + + + Scenario Outline: Updating the role of a public link to internal + Given using OCS API version "" + And using DAV path + And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile.txt" + And user "Alice" has created a public link share with settings + | path | /textfile.txt | + | permissions | read | + When user "Alice" updates the last public link share using the sharing API with + | permissions | 0 | + Then the OCS status code should be "" + And the HTTP status code should be "200" + Examples: + | dav-path | ocs_api_version | ocs_status_code | + | old | 1 | 100 | + | old | 2 | 200 | + | new | 1 | 100 | + | new | 2 | 200 | + + @personalSpace + Examples: + | dav-path | ocs_api_version | ocs_status_code | + | spaces | 1 | 100 | + | spaces | 2 | 200 |