add ocm test to activities of resource shared to federated user
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
@ocm
|
||||
Feature: an user shares resources usin ScienceMesh application
|
||||
Feature: an user shares resources using ScienceMesh application
|
||||
As a user
|
||||
I want to share resources between different ocis instances
|
||||
|
||||
@@ -100,6 +100,82 @@ Feature: an user shares resources usin ScienceMesh application
|
||||
| folderToShare |
|
||||
| textfile.txt |
|
||||
|
||||
|
||||
Scenario: local user shares resources from project space to federation user
|
||||
Given using server "LOCAL"
|
||||
And "Alice" has created the federation share invitation
|
||||
And using server "REMOTE"
|
||||
And "Brian" has accepted invitation
|
||||
And using server "LOCAL"
|
||||
And using spaces DAV path
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "projectSpace" with the default quota using the Graph API
|
||||
And user "Alice" has created a folder "folderToShare" in space "projectSpace"
|
||||
When user "Alice" sends the following resource share invitation to federated user using the Graph API:
|
||||
| resource | folderToShare |
|
||||
| space | projectSpace |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| federatedServer | @federation-ocis-server:10200 |
|
||||
Then the HTTP status code should be "200"
|
||||
When using server "REMOTE"
|
||||
And user "Brian" lists the shares shared with him without retry using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [ "value" ],
|
||||
"properties": {
|
||||
"value": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@UI.Hidden",
|
||||
"@client.synchronize",
|
||||
"createdBy",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"@UI.Hidden": {
|
||||
"const": false
|
||||
},
|
||||
"@client.synchronize": {
|
||||
"const": false
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "object",
|
||||
"required": [ "user" ],
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": [ "displayName", "id" ],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Alice Hansen"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^%federated_user_id_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": {
|
||||
"const": "folderToShare"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@issue-9534
|
||||
Scenario Outline: federation user shares resource to local user after accepting invitation
|
||||
Given using server "LOCAL"
|
||||
|
||||
Reference in New Issue
Block a user