From d36a52dab8af8a6a641e48b7f3b417f394e61bb1 Mon Sep 17 00:00:00 2001 From: Salipa-Gurung Date: Fri, 17 May 2024 15:12:26 +0545 Subject: [PATCH] update given step using sharingNg in uploadToShare.feature --- .../uploadToShare.feature | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/features/coreApiShareOperationsToShares2/uploadToShare.feature b/tests/acceptance/features/coreApiShareOperationsToShares2/uploadToShare.feature index 8e3e43e001..6ffae78876 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares2/uploadToShare.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares2/uploadToShare.feature @@ -146,7 +146,12 @@ Feature: sharing And user "Brian" has been created with default attributes and without skeleton files And user "Admin" has changed the quota of the personal space of "Brian Murphy" space to "0" And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/myfile.txt" - And user "Alice" has shared file "myfile.txt" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | myfile.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | File Editor | When user "Brian" uploads file "filesForUpload/textfile.txt" to "/Shares/myfile.txt" using the WebDAV API Then the HTTP status code should be "204" And the following headers should match these regular expressions for user "Brian" @@ -266,7 +271,12 @@ Feature: sharing Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Brian" has created folder "/folder-to-share" - And user "Brian" has shared folder "/folder-to-share" with user "Alice" + And user "Brian" has sent the following resource share invitation: + | resource | folder-to-share | + | space | Personal | + | sharee | Alice | + | shareType | user | + | permissionsRole | Editor | When user "Alice" uploads file "filesForUpload/zerobyte.txt" to "/Shares/folder-to-share/zerobyte.txt" using the WebDAV API Then the HTTP status code should be "201" And as "Alice" file "/Shares/folder-to-share/zerobyte.txt" should exist