2023-10-27 12:37:09 +05:45
|
|
|
@skipOnReva
|
2023-01-02 17:26:54 +05:45
|
|
|
Feature: sharing works when a username and group name are the same
|
2023-04-27 15:20:13 +05:45
|
|
|
As a user
|
|
|
|
|
I want to share resources with group and users having same name
|
|
|
|
|
So that I can make sure that the sharing works
|
2023-01-02 17:26:54 +05:45
|
|
|
|
|
|
|
|
Background:
|
2024-11-29 09:39:21 +05:45
|
|
|
Given user "Alice" has been created with default attributes
|
2023-01-02 17:26:54 +05:45
|
|
|
|
2023-05-04 17:01:13 +05:45
|
|
|
|
2023-01-02 17:26:54 +05:45
|
|
|
Scenario: creating a new share with user and a group having same name
|
2024-11-29 09:39:21 +05:45
|
|
|
Given these users have been created with default attributes:
|
2023-01-02 17:26:54 +05:45
|
|
|
| username |
|
|
|
|
|
| Brian |
|
|
|
|
|
| Carol |
|
|
|
|
|
And group "Brian" has been created
|
|
|
|
|
And user "Carol" has been added to group "Brian"
|
|
|
|
|
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
|
2024-05-20 16:48:29 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
|
|
|
|
| resource | randomfile.txt |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | group |
|
|
|
|
|
| permissionsRole | File Editor |
|
2024-07-22 15:00:11 +05:45
|
|
|
And user "Carol" has a share "randomfile.txt" synced
|
2023-01-02 17:26:54 +05:45
|
|
|
When user "Alice" shares file "randomfile.txt" with user "Brian" using the sharing API
|
2023-10-17 16:29:05 +02:00
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
|
And the OCS status code should be "100"
|
2023-01-02 17:26:54 +05:45
|
|
|
And user "Brian" should see the following elements
|
|
|
|
|
| /Shares/randomfile.txt |
|
|
|
|
|
And user "Carol" should see the following elements
|
|
|
|
|
| /Shares/randomfile.txt |
|
|
|
|
|
And the content of file "/Shares/randomfile.txt" for user "Brian" should be "Random data"
|
|
|
|
|
And the content of file "/Shares/randomfile.txt" for user "Carol" should be "Random data"
|
|
|
|
|
|
2023-05-04 17:01:13 +05:45
|
|
|
|
2023-01-02 17:26:54 +05:45
|
|
|
Scenario: creating a new share with group and a user having same name
|
2024-11-29 09:39:21 +05:45
|
|
|
Given these users have been created with default attributes:
|
2023-01-02 17:26:54 +05:45
|
|
|
| username |
|
|
|
|
|
| Brian |
|
|
|
|
|
| Carol |
|
|
|
|
|
And group "Brian" has been created
|
|
|
|
|
And user "Carol" has been added to group "Brian"
|
|
|
|
|
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
|
2024-05-20 16:48:29 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
|
|
|
|
| resource | randomfile.txt |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | File Editor |
|
2024-07-22 15:00:11 +05:45
|
|
|
And user "Brian" has a share "randomfile.txt" synced
|
2023-01-02 17:26:54 +05:45
|
|
|
When user "Alice" shares file "randomfile.txt" with group "Brian" using the sharing API
|
2023-10-17 16:29:05 +02:00
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
|
And the OCS status code should be "100"
|
2023-01-02 17:26:54 +05:45
|
|
|
And user "Brian" should see the following elements
|
|
|
|
|
| /Shares/randomfile.txt |
|
|
|
|
|
And user "Carol" should see the following elements
|
|
|
|
|
| /Shares/randomfile.txt |
|
|
|
|
|
And the content of file "/Shares/randomfile.txt" for user "Brian" should be "Random data"
|
|
|
|
|
And the content of file "/Shares/randomfile.txt" for user "Carol" should be "Random data"
|
|
|
|
|
|
2023-05-04 17:01:13 +05:45
|
|
|
|
2023-01-02 17:26:54 +05:45
|
|
|
Scenario: creating a new share with user and a group having same name but different case
|
2024-11-29 09:39:21 +05:45
|
|
|
Given these users have been created with default attributes:
|
2023-01-02 17:26:54 +05:45
|
|
|
| username |
|
|
|
|
|
| Brian |
|
|
|
|
|
| Carol |
|
|
|
|
|
And group "brian" has been created
|
|
|
|
|
And user "Carol" has been added to group "brian"
|
|
|
|
|
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
|
2024-05-20 16:48:29 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
|
|
|
|
| resource | randomfile.txt |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | brian |
|
|
|
|
|
| shareType | group |
|
|
|
|
|
| permissionsRole | File Editor |
|
2024-07-22 15:00:11 +05:45
|
|
|
And user "Carol" has a share "randomfile.txt" synced
|
2023-01-02 17:26:54 +05:45
|
|
|
When user "Alice" shares file "randomfile.txt" with user "Brian" using the sharing API
|
2023-10-17 16:29:05 +02:00
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
|
And the OCS status code should be "100"
|
2023-01-02 17:26:54 +05:45
|
|
|
And user "Brian" should see the following elements
|
|
|
|
|
| /Shares/randomfile.txt |
|
|
|
|
|
And user "Carol" should see the following elements
|
|
|
|
|
| /Shares/randomfile.txt |
|
|
|
|
|
And the content of file "/Shares/randomfile.txt" for user "Brian" should be "Random data"
|
|
|
|
|
And the content of file "/Shares/randomfile.txt" for user "Carol" should be "Random data"
|
|
|
|
|
|
2023-05-04 17:01:13 +05:45
|
|
|
|
2023-01-02 17:26:54 +05:45
|
|
|
Scenario: creating a new share with group and a user having same name but different case
|
2024-11-29 09:39:21 +05:45
|
|
|
Given these users have been created with default attributes:
|
2023-01-02 17:26:54 +05:45
|
|
|
| username |
|
|
|
|
|
| Brian |
|
|
|
|
|
| Carol |
|
|
|
|
|
And group "brian" has been created
|
|
|
|
|
And user "Carol" has been added to group "brian"
|
|
|
|
|
And user "Alice" has uploaded file with content "Random data" to "/randomfile.txt"
|
2024-05-20 16:48:29 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
|
|
|
|
| resource | randomfile.txt |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
2024-07-22 15:00:11 +05:45
|
|
|
| shareType | user |
|
2024-05-20 16:48:29 +05:45
|
|
|
| permissionsRole | File Editor |
|
2024-07-22 15:00:11 +05:45
|
|
|
And user "Brian" has a share "randomfile.txt" synced
|
2023-01-02 17:26:54 +05:45
|
|
|
When user "Alice" shares file "randomfile.txt" with group "brian" using the sharing API
|
2023-10-17 16:29:05 +02:00
|
|
|
Then the HTTP status code should be "200"
|
|
|
|
|
And the OCS status code should be "100"
|
2023-01-02 17:26:54 +05:45
|
|
|
And user "Carol" should see the following elements
|
|
|
|
|
| /Shares/randomfile.txt |
|
|
|
|
|
And user "Brian" should see the following elements
|
|
|
|
|
| /Shares/randomfile.txt |
|
|
|
|
|
And the content of file "/Shares/randomfile.txt" for user "Carol" should be "Random data"
|
|
|
|
|
And the content of file "/Shares/randomfile.txt" for user "Brian" should be "Random data"
|