2021-11-19 12:59:30 +05:45
|
|
|
@api
|
|
|
|
|
Feature: sharing files and folders
|
|
|
|
|
As a user
|
|
|
|
|
I want to share files/folders with other users
|
|
|
|
|
So that I can give access to my files/folders to others
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Background:
|
|
|
|
|
Given using "oc10" as owncloud selector
|
|
|
|
|
And auto-accept shares has been disabled
|
|
|
|
|
And using OCS API version "1"
|
|
|
|
|
And using new DAV path
|
|
|
|
|
And user "Alice" has been created with default attributes and without skeleton files
|
|
|
|
|
And user "Brian" has been created with default attributes and without skeleton files
|
|
|
|
|
And user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: accept a pending share
|
|
|
|
|
Given user "Alice" has shared folder "/textfile.txt" with user "Brian"
|
|
|
|
|
And using "ocis" as owncloud selector
|
2022-02-01 15:35:29 +05:45
|
|
|
When user "Brian" accepts share "/Shares/textfile.txt" offered by user "Alice" using the sharing API
|
2021-11-19 12:59:30 +05:45
|
|
|
Then the OCS status code should be "100"
|
|
|
|
|
And the HTTP status code should be "200"
|
|
|
|
|
And the sharing API should report to user "Brian" that these shares are in the accepted state
|
|
|
|
|
| path |
|
2023-02-23 10:15:38 +05:45
|
|
|
| /Shares/textfile.txt |
|