update test to check mimetype of federated share image file

Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
prashant-gurung899
2024-11-29 16:27:34 +05:45
parent a265fcbe46
commit 147864d6a4
+52 -14
View File
@@ -612,26 +612,26 @@ Feature: an user shares resources using ScienceMesh application
}
"""
@issue-10222
@issue-10222 @issue-10495
Scenario: local user lists multiple federation shares
Given using server "LOCAL"
And "Alice" has created the federation share invitation
And using server "REMOTE"
And "Brian" has accepted invitation
And user "Brian" has uploaded file with content "ocm test" to "/textfile.txt"
And user "Brian" has uploaded file "filesForUpload/testavatar.jpg" to "testavatar.jpg"
And user "Brian" has created folder "folderToShare"
And user "Brian" has sent the following resource share invitation to federated user:
| resource | folderToShare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
| resource | folderToShare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
And user "Brian" has sent the following resource share invitation to federated user:
| resource | textfile.txt |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
| resource | testavatar.jpg |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
And using server "LOCAL"
When user "Alice" lists the shares shared with her using the Graph API
Then the HTTP status code should be "200"
@@ -682,11 +682,49 @@ Feature: an user shares resources using ScienceMesh application
"lastModifiedDateTime",
"name",
"parentReference",
"remoteItem"
"remoteItem",
"size"
],
"properties": {
"name": {
"const": "textfile.txt"
"const": "testavatar.jpg"
},
"file": {
"type": "object",
"required": [
"mimeType"
],
"properties": {
"mimeType": {
"const": "image/jpeg"
}
}
},
"remoteItem": {
"type": "object",
"required": [
"createdBy",
"eTag",
"file",
"id",
"lastModifiedDateTime",
"name",
"permissions",
"size"
],
"properties": {
"file": {
"type": "object",
"required": [
"mimeType"
],
"properties": {
"mimeType": {
"const": "image/jpeg"
}
}
}
}
}
}
}