From 01bbf358e58a71fc13877aafee795ac89a0d5634 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Mon, 18 Mar 2024 12:02:08 +0545 Subject: [PATCH 1/2] Added tests for PROPFIND as sharee for folder --- .../apiSharingNg/propfindShares.feature | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/tests/acceptance/features/apiSharingNg/propfindShares.feature b/tests/acceptance/features/apiSharingNg/propfindShares.feature index 13938fdcf..8befa10f2 100644 --- a/tests/acceptance/features/apiSharingNg/propfindShares.feature +++ b/tests/acceptance/features/apiSharingNg/propfindShares.feature @@ -11,35 +11,37 @@ Feature: propfind a shares | Carol | @issue-4421 - Scenario: sharee PROPFIND a shares when multiple user shares resources with same name + Scenario Outline: sharee PROPFIND a shares when multiple users share resource with same name Given user "Alice" has uploaded file with content "to share" to "textfile.txt" + And user "Alice" has created folder "folderToShare" And user "Carol" has uploaded file with content "to share" to "textfile.txt" + And user "Carol" has created folder "folderToShare" And user "Alice" has sent the following share invitation: - | resource | textfile.txt | - | space | Personal | - | sharee | Brian | - | shareType | user | - | permissionsRole | Viewer | + | resource | | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | And user "Carol" has sent the following share invitation: - | resource | textfile.txt | - | space | Personal | - | sharee | Brian | - | shareType | user | - | permissionsRole | Viewer | + | resource | | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | When user "Brian" sends PROPFIND request to space "Shares" using the WebDAV API Then the HTTP status code should be "207" And the "PROPFIND" response to user "Brian" should contain a space "Shares" with these key and value pairs: | key | value | | oc:fileid | UUIDof:Shares | And the "PROPFIND" response to user "Brian" should contain a mountpoint "Shares" with these key and value pairs: - | key | value | - | oc:name | textfile.txt | - | oc:permissions | SR | - | oc:size | 8 | - | d:getcontenttype | text/plain | + | key | value | + | oc:name | | + | oc:permissions | SR | And the "PROPFIND" response to user "Brian" should contain a mountpoint "Shares" with these key and value pairs: - | key | value | - | oc:name | textfile (1).txt | - | oc:permissions | SR | - | oc:size | 8 | - | d:getcontenttype | text/plain | + | key | value | + | oc:name | | + | oc:permissions | SR | + Examples: + | path | path2 | + | textfile.txt | textfile (1).txt | + | folderToShare | folderToShare (1) | From d5f480315805d2f9c387b6d6c6a8ff4fd9ceed38 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Mon, 18 Mar 2024 15:27:25 +0545 Subject: [PATCH 2/2] Addressed reviews --- tests/acceptance/features/apiSharingNg/propfindShares.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/apiSharingNg/propfindShares.feature b/tests/acceptance/features/apiSharingNg/propfindShares.feature index 8befa10f2..5897c8040 100644 --- a/tests/acceptance/features/apiSharingNg/propfindShares.feature +++ b/tests/acceptance/features/apiSharingNg/propfindShares.feature @@ -11,7 +11,7 @@ Feature: propfind a shares | Carol | @issue-4421 - Scenario Outline: sharee PROPFIND a shares when multiple users share resource with same name + Scenario Outline: sharee PROPFIND same name shares shared by multiple users Given user "Alice" has uploaded file with content "to share" to "textfile.txt" And user "Alice" has created folder "folderToShare" And user "Carol" has uploaded file with content "to share" to "textfile.txt"