Files
opencloud/tests/acceptance/features/coreApiShareCreateSpecialToRoot2/createShareGroupAndUserWithSameName.feature
2023-01-05 09:22:52 +05:45

83 lines
3.8 KiB
Gherkin

@api @files_sharing-app-required @notToImplementOnOCIS
Feature: sharing works when a username and group name are the same
Background:
Given user "Alice" has been created with default attributes and without skeleton files
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
@skipOnLDAP
Scenario: creating a new share with user and a group having same name
Given these users have been created without skeleton files:
| username |
| Brian |
| Carol |
And group "Brian" has been created
And user "Carol" has been added to group "Brian"
And user "Alice" has shared file "randomfile.txt" with group "Brian"
When user "Alice" shares file "randomfile.txt" with user "Brian" using the sharing API
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And user "Brian" should see the following elements
| /randomfile.txt |
And user "Carol" should see the following elements
| /randomfile.txt |
And the content of file "randomfile.txt" for user "Brian" should be "Random data"
And the content of file "randomfile.txt" for user "Carol" should be "Random data"
@skipOnLDAP
Scenario: creating a new share with group and a user having same name
Given these users have been created without skeleton files:
| username |
| Brian |
| Carol |
And group "Brian" has been created
And user "Carol" has been added to group "Brian"
And user "Alice" has shared file "randomfile.txt" with user "Brian"
When user "Alice" shares file "randomfile.txt" with group "Brian" using the sharing API
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And user "Brian" should see the following elements
| /randomfile.txt |
And user "Carol" should see the following elements
| /randomfile.txt |
And the content of file "randomfile.txt" for user "Brian" should be "Random data"
And the content of file "randomfile.txt" for user "Carol" should be "Random data"
@skipOnLDAP
Scenario: creating a new share with user and a group having same name but different case
Given these users have been created without skeleton files:
| username |
| Brian |
| Carol |
And group "Brian" has been created
And user "Carol" has been added to group "Brian"
And user "Alice" has shared file "randomfile.txt" with group "Brian"
When user "Alice" shares file "randomfile.txt" with user "Brian" using the sharing API
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And user "Brian" should see the following elements
| /randomfile.txt |
And user "Carol" should see the following elements
| /randomfile.txt |
And the content of file "randomfile.txt" for user "Brian" should be "Random data"
And the content of file "randomfile.txt" for user "Carol" should be "Random data"
@skipOnLDAP
Scenario: creating a new share with group and a user having same name but different case
Given these users have been created without skeleton files:
| username |
| Brian |
| Carol |
And group "Brian" has been created
And user "Carol" has been added to group "Brian"
And user "Alice" has shared file "randomfile.txt" with user "Brian"
When user "Alice" shares file "randomfile.txt" with group "Brian" using the sharing API
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And user "Carol" should see the following elements
| /randomfile.txt |
And user "Brian" should see the following elements
| /randomfile.txt |
And the content of file "randomfile.txt" for user "Carol" should be "Random data"
And the content of file "randomfile.txt" for user "Brian" should be "Random data"