Added test to send share invitation with group for deleted file

This commit is contained in:
Prarup Gurung
2024-01-31 12:27:21 +05:45
parent 743364403b
commit e42e0c2d6f
@@ -1989,3 +1989,53 @@ Feature: Send a sharing invitations
}
}
"""
Scenario: send share invitation to group for deleted file
Given user "Carol" has been created with default attributes and without skeleton files
And group "grp1" has been created
And the following users have been added to the following groups
| username | groupname |
| Brian | grp1 |
| Carol | grp1 |
And user "Alice" has uploaded file with content "to share" to "textfile1.txt"
And we save it into "FILEID"
And user "Alice" has deleted file "textfile1.txt"
When user "Alice" sends the following share invitation with file-id "<<FILEID>>" using the Graph API:
| space | Personal |
| sharee | grp1 |
| shareType | group |
| permissionsRole | Viewer |
Then the HTTP status code should be "404"
And for user "Brian" the space Shares should not contain these entries:
| textfile1.txt |
And for user "Carol" the space Shares should not contain these entries:
| textfile1.txt |
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"enum": ["itemNotFound"]
},
"message": {
"type": "string",
"enum": ["stat: error: not found: "]
}
}
}
}
}
"""