mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-08 04:20:59 -05:00
8eb7f7aa96
* do not use spacesContext * skip sharing tests in reva * update expected failure list * do not cleanup status codes * skip shares tests in reva * update expected failure list
23 lines
1010 B
Gherkin
23 lines
1010 B
Gherkin
@issue-1328 @skipOnReva
|
|
Feature: resharing can be disabled
|
|
As a user
|
|
I want to share a resource without reshare permission
|
|
So that the resource won't be accessible to unwanted individuals
|
|
|
|
|
|
Scenario Outline: ordinary sharing is allowed when allow resharing has been disabled
|
|
Given these users have been created with default attributes and without skeleton files:
|
|
| username |
|
|
| Alice |
|
|
| Brian |
|
|
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
|
|
And using OCS API version "<ocs_api_version>"
|
|
When user "Alice" shares file "/textfile0.txt" with user "Brian" with permissions "share,update,read" using the sharing API
|
|
Then the OCS status code should be "<ocs_status_code>"
|
|
And the HTTP status code should be "200"
|
|
And as "Brian" file "/Shares/textfile0.txt" should exist
|
|
Examples:
|
|
| ocs_api_version | ocs_status_code |
|
|
| 1 | 100 |
|
|
| 2 | 200 |
|