Skip to content

Commit

Permalink
add tests for any user trying to check api activities
Browse files Browse the repository at this point in the history
Signed-off-by: prashant-gurung899 <[email protected]>
  • Loading branch information
prashant-gurung899 committed Oct 2, 2024
1 parent 879dfa7 commit b533ca9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/acceptance/features/apiActivities/activities.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Feature: check activities
So that I can track modifications

Background:
Given user "Alice" has been created with default attributes and without skeleton files
Given these users have been created with default attributes and without skeleton files:
| username |
| Alice |
| Brian |

@issue-9712
Scenario: check activities after uploading a file and a folder
Expand Down Expand Up @@ -2028,3 +2031,10 @@ Feature: check activities
}
}
"""

@issue-9860
Scenario: 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"
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"

0 comments on commit b533ca9

Please sign in to comment.