mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-11 11:47:51 -04:00
73 lines
5.0 KiB
Gherkin
73 lines
5.0 KiB
Gherkin
@api @files_sharing-app-required @notToImplementOnOCIS
|
|
Feature: share with groups, group names are case-sensitive
|
|
|
|
Background:
|
|
Given user "Alice" has been created with default attributes and without skeleton files
|
|
And user "Alice" has uploaded file with content "ownCloud test text file 1" to "/textfile1.txt"
|
|
And user "Alice" has uploaded file with content "ownCloud test text file 2" to "/textfile2.txt"
|
|
And user "Alice" has uploaded file with content "ownCloud test text file 3" to "/textfile3.txt"
|
|
|
|
@skipOnLDAP @issue-ldap-250
|
|
Scenario Outline: group names are case-sensitive, sharing with groups with different upper and lower case names
|
|
Given using OCS API version "<ocs_api_version>"
|
|
And group "<group_id1>" has been created
|
|
And group "<group_id2>" has been created
|
|
And group "<group_id3>" has been created
|
|
And these users have been created with default attributes and without skeleton files:
|
|
| username |
|
|
| Brian |
|
|
| Carol |
|
|
| David |
|
|
And user "Brian" has been added to group "<group_id1>"
|
|
And user "Carol" has been added to group "<group_id2>"
|
|
And user "David" has been added to group "<group_id3>"
|
|
When user "Alice" shares file "textfile1.txt" with group "<group_id1>" using the sharing API
|
|
And user "Alice" shares file "textfile2.txt" with group "<group_id2>" using the sharing API
|
|
And user "Alice" shares file "textfile3.txt" with group "<group_id3>" using the sharing API
|
|
Then the OCS status code of responses on all endpoints should be "<ocs_status_code>"
|
|
And the HTTP status code of responses on all endpoints should be "200"
|
|
And the content of file "textfile1.txt" for user "Brian" should be "ownCloud test text file 1"
|
|
And the content of file "textfile2.txt" for user "Carol" should be "ownCloud test text file 2"
|
|
And the content of file "textfile3.txt" for user "David" should be "ownCloud test text file 3"
|
|
Examples:
|
|
| ocs_api_version | group_id1 | group_id2 | group_id3 | ocs_status_code |
|
|
| 1 | case-sensitive-group | Case-Sensitive-Group | CASE-SENSITIVE-GROUP | 100 |
|
|
| 1 | Case-Sensitive-Group | CASE-SENSITIVE-GROUP | case-sensitive-group | 100 |
|
|
| 1 | CASE-SENSITIVE-GROUP | case-sensitive-group | Case-Sensitive-Group | 100 |
|
|
| 2 | case-sensitive-group | Case-Sensitive-Group | CASE-SENSITIVE-GROUP | 200 |
|
|
| 2 | Case-Sensitive-Group | CASE-SENSITIVE-GROUP | case-sensitive-group | 200 |
|
|
| 2 | CASE-SENSITIVE-GROUP | case-sensitive-group | Case-Sensitive-Group | 200 |
|
|
|
|
@skipOnLDAP @issue-ldap-250
|
|
Scenario Outline: group names are case-sensitive, sharing with nonexistent groups with different upper and lower case names
|
|
Given using OCS API version "<ocs_api_version>"
|
|
And these users have been created with default attributes and without skeleton files:
|
|
| username |
|
|
| Brian |
|
|
And group "<group_id1>" has been created
|
|
And user "Brian" has been added to group "<group_id1>"
|
|
When user "Alice" shares file "textfile1.txt" with group "<group_id1>" using the sharing API
|
|
Then the OCS status code should be "<ocs_status_code>"
|
|
And the HTTP status code should be "200"
|
|
And the fields of the last response to user "Alice" should include
|
|
| share_with | <group_id1> |
|
|
| file_target | /textfile1.txt |
|
|
| path | /textfile1.txt |
|
|
| permissions | share,read,update |
|
|
| uid_owner | %username% |
|
|
And the content of file "textfile1.txt" for user "Brian" should be "ownCloud test text file 1"
|
|
When user "Alice" shares file "textfile2.txt" with group "<group_id2>" using the sharing API
|
|
Then the OCS status code should be "404"
|
|
And the HTTP status code should be "<http_status_code>"
|
|
When user "Alice" shares file "textfile3.txt" with group "<group_id3>" using the sharing API
|
|
Then the OCS status code should be "404"
|
|
And the HTTP status code should be "<http_status_code>"
|
|
Examples:
|
|
| ocs_api_version | group_id1 | group_id2 | group_id3 | ocs_status_code | http_status_code |
|
|
| 1 | case-sensitive-group | Case-Sensitive-Group | CASE-SENSITIVE-GROUP | 100 | 200 |
|
|
| 1 | Case-Sensitive-Group | CASE-SENSITIVE-GROUP | case-sensitive-group | 100 | 200 |
|
|
| 1 | CASE-SENSITIVE-GROUP | case-sensitive-group | Case-Sensitive-Group | 100 | 200 |
|
|
| 2 | case-sensitive-group | Case-Sensitive-Group | CASE-SENSITIVE-GROUP | 200 | 404 |
|
|
| 2 | Case-Sensitive-Group | CASE-SENSITIVE-GROUP | case-sensitive-group | 200 | 404 |
|
|
| 2 | CASE-SENSITIVE-GROUP | case-sensitive-group | Case-Sensitive-Group | 200 | 404 |
|