mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-18 19:12:35 -05:00
add owncloud-selector cookie working tests remove unused files build ocis from source branch check users in ldap, oc10 and ocis update proxy config use ocis selector initially build ocis from source use ocis latest image buil ocis from source refactor fix test run script user 33 and alpine image for ocis server delete local compose files run tests with ocis latest refactor drone config [volumes] Run each suite in a pipeline refactor namings use run.sh to run tests move TestHelpers folder reuse behat context params refactor to use contexts and helpers from core repo remove contexts and helpers added bootstrap file to bootstrap core's test files add api tag remove unnecessary code implement expected-failures file remove unnecessary confgs fix starlark style rename context file add nightly trigger refactor drone config generate trigger as per the event remove keycloak services
30 lines
1.3 KiB
Gherkin
30 lines
1.3 KiB
Gherkin
# Sharing tests currently doesn't work
|
|
# Accessing oc10 shares from ocis still WIP in PR #2232
|
|
# https://github.com/owncloud/ocis/pull/2232
|
|
@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 the administrator has set the default folder for received shares to "Shares"
|
|
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
|
|
When user "Brian" accepts share "/textfile.txt" offered by user "Alice" using the sharing API
|
|
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 |
|
|
| /Shares/textfile.txt | |