Skip to content

Commit

Permalink
Add side of the recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaier1 committed May 5, 2020
1 parent 393b4c3 commit 840767d
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 1 deletion.
4 changes: 4 additions & 0 deletions features/resources/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}
70 changes: 70 additions & 0 deletions features/resources/accessing_a_resource_as_a_collaborator.feature
Original file line number Diff line number Diff line change
@@ -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'
2 changes: 1 addition & 1 deletion features/sharing/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Sharing
geekdocRepo: https://github.com/owncloud/product
geekdocEditPath: edit/master/docs
geekdocFilePath: sharing.md
geekdocFilePath: _index.md
---

Sharing.
3 changes: 3 additions & 0 deletions features/sharing/collaborators.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 840767d

Please sign in to comment.