Skip to content

Commit

Permalink
adding test for listing permission of a project drive by a member wit…
Browse files Browse the repository at this point in the history
…h viewer permission (#8910)
  • Loading branch information
nirajacharya2 committed Apr 25, 2024
1 parent baaf630 commit 46b4366
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tests/acceptance/features/apiSharingNg/listPermissions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1300,4 +1300,44 @@ Feature: List a sharing permissions
}
}
}
"""


Scenario: try to list the permissions of a user's personal space by a different member
Given using spaces DAV path
And user "Brian" has been created with default attributes and without skeleton files
When user "Brian" tries to list the permissions of space "Personal" owned by "Alice" using permissions endpoint of the Graph API
Then the HTTP status code should be "404"
And the JSON data of the response should match
"""
{
"type": "object",
"required": ["error"],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"innererror",
"message"
],
"properties": {
"code": {
"const": "itemNotFound"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"type": "string",
"pattern": "stat: error: not found: %file_id_pattern%$"
}
}
}
}
}
"""

0 comments on commit 46b4366

Please sign in to comment.