From 9082a51664a6cbc03cf00086e4af3fa3c499b0d4 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 --- .../acceptance/features/apiActivities/activities.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/acceptance/features/apiActivities/activities.feature b/tests/acceptance/features/apiActivities/activities.feature index 0bce0c6767d..ca012782a8e 100644 --- a/tests/acceptance/features/apiActivities/activities.feature +++ b/tests/acceptance/features/apiActivities/activities.feature @@ -2028,3 +2028,11 @@ Feature: check activities } } """ + + @issue-9860 + Scenario: user tries to check activities of another user's file + Given user "Brian" has been created with default attributes and without skeleton files + And user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt" + And user "Alice" has uploaded file with content "updated 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"