From 0d0f296b7655b668fc8f40d929afe75f3b3c55bf Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> Date: Mon, 16 Jan 2023 13:06:51 +0545 Subject: [PATCH] Check herf of the public link file (#5401) --- .../createPublicLinkShare.feature | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature index 24667dd5347..b02ef09f1d1 100644 --- a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature @@ -639,3 +639,19 @@ Feature: create a public link share | ocs_api_version | ocs_status_code | http_status_code | | 1 | 100 | 200 | | 2 | 200 | 200 | + + @issue-4758 + Scenario: check the href of a public link file + Given using new DAV path + And user "Alice" has uploaded file with content "Random data" to "/file.txt" + And user "Alice" has created a public link share with settings + | path | file.txt | + | permissions | read | + When the public lists the resources in the last created public link with depth "1" using the WebDAV API + Then the HTTP status code should be "207" + And the value of the item "//d:response[2]//d:href" in the response should match "/%base_path%\/remote.php\/dav\/public-files\/%public_token%\/file.txt$/" + When the public gets the following properties of entry "/file.txt" in the last created public link using the WebDAV API + | propertyName | + | d:href | + Then the HTTP status code should be "207" + And the value of the item "//d:href" in the response should match "/%base_path%\/remote.php\/dav\/public-files\/%public_token%\/file.txt$/"