From 840767d395f7e666bfa98f03dac7732cafee71ed Mon Sep 17 00:00:00 2001 From: Patrick Maier Date: Tue, 5 May 2020 16:40:47 +0200 Subject: [PATCH] Add side of the recipient --- features/resources/_index.md | 4 ++ ...ssing_a_resource_as_a_collaborator.feature | 70 +++++++++++++++++++ features/sharing/_index.md | 2 +- features/sharing/collaborators.md | 3 + 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 features/resources/accessing_a_resource_as_a_collaborator.feature diff --git a/features/resources/_index.md b/features/resources/_index.md index 01c90eb..0e54c21 100644 --- a/features/resources/_index.md +++ b/features/resources/_index.md @@ -9,6 +9,10 @@ geekdocFilePath: _index.md ## Requirements +### Accessing a resource as a collaborator + +{{< include file="features/resources/accessing_a_resource_as_a_collaborator.feature" language="gherkin" >}} + ### Accessing a resource via a link {{< include file="features/resources/accessing_a_resource_via_link.feature" language="gherkin" >}} diff --git a/features/resources/accessing_a_resource_as_a_collaborator.feature b/features/resources/accessing_a_resource_as_a_collaborator.feature new file mode 100644 index 0000000..435aec4 --- /dev/null +++ b/features/resources/accessing_a_resource_as_a_collaborator.feature @@ -0,0 +1,70 @@ +Feature: Accessing a resource as a collaborator + +Scenario: Accessing a resource as a collaborator with the 'Viewer' role + GIVEN I'm a logged in user who is a collaborator of a resource + AND I have the role 'Viewer' +# AND I have added the resource to my personal space as in 'Feature: Overview of received shared resources' / 'Feature: Pending Shares' + WHEN accessing this resource + THEN I can list the resource and its contents + AND I can download the resource and its contents + AND I can view the resource and its contents as in 'Feature: Accessing a resource' + AND I can rename the resource as in 'Scenario: Renaming a shared resource in a users' personal space' + AND I can move the resource as in 'Scenario: Moving a shared resource within a users' personal space' + AND I can remove the resource from my personal space as in 'Feature: Removing a shared resource from a users' personal space' + +Scenario: Accessing a resource as a collaborator with the 'Editor' role + GIVEN I'm a logged in user who is a collaborator of a resource + AND I have the role 'Editor' +# AND I have added the resource to my personal space as in 'Feature: Overview of received shared resources' / 'Feature: Pending Shares' + WHEN accessing this resource + THEN I can list the resource and its contents + AND I can download the resource and its contents + AND I can view the resource and its contents as in 'Feature: Accessing a resource' + AND I can rename the resource as in 'Scenario: Renaming a shared resource in a users' personal space' + AND I can move the resource as in 'Scenario: Moving a shared resource within a users' personal space' + AND I can remove the resource from my personal space as in 'Feature: Removing a shared resource from a users' personal space' + AND I can rename the contents of the resource as in 'Feature: Renaming a resource' + AND I can delete the contents of the resource as in 'Feature: Deleting a resource' + AND I can move the contents of the resource as in 'Feature: Moving a resource' + AND I can move resources into the resource as in 'Feature: Moving a resource' + AND I can move resources out of the resource as in 'Feature: Moving a resource' + AND I can create resources within the resource as in 'Feature: Creating a resource' + AND I can upload resources into the resource as in 'Feature: Uploading a resource' + AND I can edit/change/update the resource and its contents + +Scenario: Accessing a resource as a collaborator with the 'Advanced permissions' role + GIVEN I'm a logged in user who is a collaborator of a resource + AND I have the role 'Advanced permissions' +# AND I have added the resource to my personal space as in 'Feature: Overview of received shared resources' / 'Feature: Pending Shares' + WHEN accessing this resource + THEN I can list the resource and its contents + AND I can download the resource and its contents + AND I can view the resource and its contents as in 'Feature: Accessing a resource' + AND I can rename the resource as in 'Scenario: Renaming a shared resource in a users' personal space' + AND I can move the resource as in 'Scenario: Moving a shared resource within a users' personal space' + AND I can remove the resource from my personal space as in 'Feature: Removing a shared resource from a users' personal space' + AND I can use the resource based on the additionally granted detailed permissions described below + AND the granted detailed permissions can stack/complement each other + + WHEN accessing this resources without any of the detailed permissions + THEN the behavior equals 'Scenario: Accessing a resource as a collaborator with the 'Viewer' role' + + WHEN accessing this resource only with the permission "Edit" (single file) + THEN I can edit/change/update the resource + + WHEN accessing this resource only with the permission "Create" (folder) + THEN I can move resources into the resource as in 'Feature: Moving a resource' + AND I can create resources within the resource as in 'Feature: Creating a resource' + AND I can upload resources into the resource as in 'Feature: Uploading a resource' + + WHEN accessing this resource only with the permission "Change" (folder) + THEN I can rename the contents of the resource as in 'Feature: Renaming a resource' + AND I can edit/change/update the resource and its contents + + WHEN accessing this resource only with the permission "Delete" (folder) + THEN I can delete the contents of the resource as in 'Feature: Deleting a resource' + AND I can move resources out of the resource as in 'Feature: Moving a resource' + + WHEN accessing this resource only with the permission "Manage" + THEN I can add collaborators to the resource as in 'Feature: Adding collaborators to a resource' + AND I can manage the collaborators of the resource as in 'Feature: Managing collaborators of a resource' diff --git a/features/sharing/_index.md b/features/sharing/_index.md index 51aa60c..2d5489d 100644 --- a/features/sharing/_index.md +++ b/features/sharing/_index.md @@ -2,7 +2,7 @@ title: Sharing geekdocRepo: https://github.com/owncloud/product geekdocEditPath: edit/master/docs -geekdocFilePath: sharing.md +geekdocFilePath: _index.md --- Sharing. diff --git a/features/sharing/collaborators.md b/features/sharing/collaborators.md index 97cbdbb..ce9ad16 100644 --- a/features/sharing/collaborators.md +++ b/features/sharing/collaborators.md @@ -9,6 +9,9 @@ This document describes the features around 'Collaborators' from the perspective ## User stories +1. Adding single collaborators to a resource (user share) +* Use case: As a user I want to exchange data with internal single users for that they get access and can collaborate with me + ## Requirements ### Adding collaborators to a resource