From bb403c8f117efc9257d6b426ac87279c04a7866a Mon Sep 17 00:00:00 2001 From: prashant-gurung899 Date: Mon, 23 Sep 2024 14:31:45 +0545 Subject: [PATCH] add tests for any user trying to check api activities Signed-off-by: prashant-gurung899 --- .../features/apiActivities/shareActivities.feature | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/acceptance/features/apiActivities/shareActivities.feature b/tests/acceptance/features/apiActivities/shareActivities.feature index 6234ea7e84c..ff9a039a0d3 100644 --- a/tests/acceptance/features/apiActivities/shareActivities.feature +++ b/tests/acceptance/features/apiActivities/shareActivities.feature @@ -1120,3 +1120,9 @@ Feature: check share activity | permissionsRole | Viewer | When user "Brian" tries to list the activities of file "anotherTextfile.txt" from space "Personal" owned by user "Alice" using the Graph API Then the HTTP status code should be "403" + + + Scenario: any user tries to check activities of another user's file + Given user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt" + When user "Brian" tries to list the activities of file "textfile.txt" from space "Personal" owned by user "Alice" using the Graph API + Then the HTTP status code should be "403"