Skip to content

Commit f881038

Browse files
committed
adding test coverage for sharing file with ocm
1 parent a7e8069 commit f881038

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

tests/acceptance/features/apiOcm/share.feature

+85
Original file line numberDiff line numberDiff line change
@@ -611,3 +611,88 @@ Feature: an user shares resources using ScienceMesh application
611611
}
612612
}
613613
"""
614+
615+
@issue-10222
616+
Scenario: local user lists multiple federation shares
617+
Given using server "LOCAL"
618+
And "Alice" has created the federation share invitation
619+
And using server "REMOTE"
620+
And "Brian" has accepted invitation
621+
And user "Brian" has uploaded file with content "ocm test" to "/textfile.txt"
622+
And user "Brian" has created folder "folderToShare"
623+
And user "Brian" has sent the following resource share invitation to federated user:
624+
| resource | folderToShare |
625+
| space | Personal |
626+
| sharee | Alice |
627+
| shareType | user |
628+
| permissionsRole | Viewer |
629+
And user "Brian" has sent the following resource share invitation to federated user:
630+
| resource | textfile.txt |
631+
| space | Personal |
632+
| sharee | Alice |
633+
| shareType | user |
634+
| permissionsRole | Viewer |
635+
And using server "LOCAL"
636+
When user "Alice" lists the shares shared with her using the Graph API
637+
Then the HTTP status code should be "200"
638+
And the JSON data of the response should match
639+
"""
640+
{
641+
"type": "object",
642+
"required": [
643+
"value"
644+
],
645+
"properties": {
646+
"value": {
647+
"type": "array",
648+
"minItems": 2,
649+
"maxItems": 2,
650+
"uniqueItems": true,
651+
"items": {
652+
"oneOf":[
653+
{
654+
"type": "object",
655+
"required": [
656+
"@UI.Hidden",
657+
"@client.synchronize",
658+
"createdBy",
659+
"eTag",
660+
"folder",
661+
"id",
662+
"lastModifiedDateTime",
663+
"name",
664+
"parentReference",
665+
"remoteItem"
666+
],
667+
"properties": {
668+
"name": {
669+
"const": "folderToShare"
670+
}
671+
}
672+
},
673+
{
674+
"type": "object",
675+
"required": [
676+
"@UI.Hidden",
677+
"@client.synchronize",
678+
"createdBy",
679+
"eTag",
680+
"file",
681+
"id",
682+
"lastModifiedDateTime",
683+
"name",
684+
"parentReference",
685+
"remoteItem"
686+
],
687+
"properties": {
688+
"name": {
689+
"const": "textfile.txt"
690+
}
691+
}
692+
}
693+
]
694+
}
695+
}
696+
}
697+
}
698+
"""

0 commit comments

Comments
 (0)