From dae200d798fecf398bdfaed55154ced5987aee32 Mon Sep 17 00:00:00 2001 From: prashant-gurung899 Date: Tue, 10 Dec 2024 10:40:29 +0545 Subject: [PATCH] add test to list drives by federation user Signed-off-by: prashant-gurung899 --- .../acceptance/features/apiOcm/share.feature | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/tests/acceptance/features/apiOcm/share.feature b/tests/acceptance/features/apiOcm/share.feature index 9fd1e0db627..6f78c16bbdd 100755 --- a/tests/acceptance/features/apiOcm/share.feature +++ b/tests/acceptance/features/apiOcm/share.feature @@ -1229,3 +1229,81 @@ Feature: an user shares resources using ScienceMesh application } } """ + + @issue-10689 + Scenario: federation user lists ocm shares + Given using server "REMOTE" + And "Brian" has created the federation share invitation + And using server "LOCAL" + And "Alice" has accepted invitation + And user "Alice" has created folder "folderToShare" + And user "Alice" has sent the following resource share invitation to federated user: + | resource | folderToShare | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | + And using server "REMOTE" + When user "Brian" lists all available spaces via the Graph API + Then the HTTP status code should be "200" + And the JSON response should contain space called "Brian Murphy" and match + """ + { + "type": "object", + "required": [ + "driveType", + "driveAlias", + "name", + "id", + "quota", + "root", + "webUrl" + ], + "properties": { + "name": { + "type": "string", + "enum": ["Brian Murphy"] + }, + "driveType": { + "type": "string", + "enum": ["personal"] + }, + "driveAlias": { + "type": "string", + "enum": ["personal/brian"] + }, + "id": { + "type": "string", + "enum": ["%space_id%"] + }, + "quota": { + "type": "object", + "required": [ + "state" + ], + "properties": { + "state": { + "type": "string", + "enum": ["normal"] + } + } + }, + "root": { + "type": "object", + "required": [ + "webDavUrl" + ], + "properties": { + "webDavUrl": { + "type": "string", + "enum": ["%base_url%/dav/spaces/%space_id%"] + } + } + }, + "webUrl": { + "type": "string", + "enum": ["%base_url%/f/%space_id%"] + } + } + } + """