Skip to content

Commit

Permalink
adding test for sharing personal space with user
Browse files Browse the repository at this point in the history
  • Loading branch information
nirajacharya2 committed Mar 20, 2024
1 parent 09fad45 commit 09b3782
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions tests/acceptance/features/apiSharingNg/shareInvitations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2283,3 +2283,51 @@ Feature: Send a sharing invitations
| Viewer | FolderToShare |
| Editor | FolderToShare |
| Uploader | FolderToShare |

@issue-8494
Scenario Outline: send share invitation for personal space to user with different roles
When user "Alice" sends the following share invitation for space using the Graph API:
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions-role> |
Then the HTTP status code should be "400"
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"innererror",
"message"
],
"properties": {
"code": {
"const": "invalidRequest"
},
"innererror": {
"type": "object",
"required": [
"date",
"request-id"
]
},
"message": {
"const": "space type is not eligible for sharing"
}
}
}
}
}
"""
Examples:
| permissions-role |
| Space Viewer |
| Space Editor |
| Manager |

0 comments on commit 09b3782

Please sign in to comment.