@@ -100,6 +100,96 @@ Feature: an user shares resources usin ScienceMesh application
100
100
| folderToShare |
101
101
| textfile .txt |
102
102
103
+
104
+ Scenario : local user shares resources from project space to federation user
105
+ Given using server "LOCAL"
106
+ And "Alice" has created the federation share invitation
107
+ And using server "REMOTE"
108
+ And "Brian" has accepted invitation
109
+ And using server "LOCAL"
110
+ And using spaces DAV path
111
+ And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
112
+ And user "Alice" has created a space "projectSpace" with the default quota using the Graph API
113
+ And user "Alice" has created a folder "folderToShare" in space "projectSpace"
114
+ When user "Alice" sends the following resource share invitation to federated user using the Graph API:
115
+ | resource | folderToShare |
116
+ | space | projectSpace |
117
+ | sharee | Brian |
118
+ | shareType | user |
119
+ | permissionsRole | Viewer |
120
+ | federatedServer | @federation -ocis -server :10200 |
121
+ Then the HTTP status code should be "200"
122
+ When using server "REMOTE"
123
+ And user "Brian" lists the shares shared with him without retry using the Graph API
124
+ Then the HTTP status code should be "200"
125
+ And the JSON data of the response should match
126
+ """
127
+ {
128
+ "type": "object",
129
+ "required": [
130
+ "value"
131
+ ],
132
+ "properties": {
133
+ "value": {
134
+ "type": "array",
135
+ "minItems": 1,
136
+ "maxItems": 1,
137
+ "items": {
138
+ "type": "object",
139
+ "required": [
140
+ "@UI.Hidden",
141
+ "@client.synchronize",
142
+ "createdBy",
143
+ "name"
144
+ ],
145
+ "properties": {
146
+ "@UI.Hidden": {
147
+ "type": "boolean",
148
+ "enum": [
149
+ false
150
+ ]
151
+ },
152
+ "@client.synchronize": {
153
+ "type": "boolean",
154
+ "enum": [
155
+ false
156
+ ]
157
+ },
158
+ "createdBy": {
159
+ "type": "object",
160
+ "required": [
161
+ "user"
162
+ ],
163
+ "properties": {
164
+ "user": {
165
+ "type": "object",
166
+ "required": [
167
+ "displayName",
168
+ "id"
169
+ ],
170
+ "properties": {
171
+ "displayName": {
172
+ "type": "string",
173
+ "const": "Alice Hansen"
174
+ },
175
+ "id": {
176
+ "type": "string",
177
+ "pattern": "^%federated_user_id_pattern%$"
178
+ }
179
+ }
180
+ }
181
+ }
182
+ },
183
+ "name": {
184
+ "const": "folderToShare"
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ """
192
+
103
193
@issue-9534
104
194
Scenario Outline : federation user shares resource to local user after accepting invitation
105
195
Given using server "LOCAL"
0 commit comments