From 1c4b5ef9cc3a68c29d5e37c83d62bf87f3b05592 Mon Sep 17 00:00:00 2001 From: Salipa-Gurung Date: Tue, 21 May 2024 09:59:57 +0545 Subject: [PATCH] update given step using sharingNg in updateShareGroupAndUserWithSameName.feature --- ...pdateShareGroupAndUserWithSameName.feature | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/tests/acceptance/features/coreApiShareUpdateToShares/updateShareGroupAndUserWithSameName.feature b/tests/acceptance/features/coreApiShareUpdateToShares/updateShareGroupAndUserWithSameName.feature index f32b237253..fcdbf3cd4a 100644 --- a/tests/acceptance/features/coreApiShareUpdateToShares/updateShareGroupAndUserWithSameName.feature +++ b/tests/acceptance/features/coreApiShareUpdateToShares/updateShareGroupAndUserWithSameName.feature @@ -18,8 +18,19 @@ Feature: updating shares to users and groups that have the same name Scenario Outline: update permissions of a user share with a user and a group having the same name Given using OCS API version "" - And user "Alice" has shared folder "/TMP" with group "Brian" - And user "Alice" has shared folder "/TMP" with user "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | TMP | + | space | Personal | + | sharee | Brian | + | shareType | group | + | permissionsRole | Editor | + And user "Alice" has sent the following resource share invitation: + | resource | TMP | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | + And using SharingNG When user "Alice" updates the last share using the sharing API with | permissions | read | Then the HTTP status code should be "200" @@ -36,8 +47,19 @@ Feature: updating shares to users and groups that have the same name Scenario Outline: update permissions of a group share with a user and a group having the same name Given using OCS API version "" - And user "Alice" has shared folder "/TMP" with user "Brian" - And user "Alice" has shared folder "/TMP" with group "Brian" + And user "Alice" has sent the following resource share invitation: + | resource | TMP | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | + And user "Alice" has sent the following resource share invitation: + | resource | TMP | + | space | Personal | + | sharee | Brian | + | shareType | group | + | permissionsRole | Editor | + And using SharingNG When user "Alice" updates the last share using the sharing API with | permissions | read | Then the HTTP status code should be "200"