Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests-Only] Adds test for sharing resource with sharee that has an existing resource with diff. case name #38950

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
@api @files_sharing-app-required @notToImplementOnOCIS
Feature: Sharing resources with different case names with the sharee and checking the coexistence of resources on sharee/receviers side

Background:
Given using OCS API version "1"
And these users have been created with default attributes and without skeleton files:
| username |
| Alice |
| Brian |


Scenario: sharing file with an internal user that has existing files with different case names
Given user "Alice" has uploaded the following files with content "some data"
| path |
| textfile.txt |
| text_file.txt |
| 123textfile.txt |
| textfile.XYZ.txt |
And user "Brian" has uploaded the following files with content "some data"
| path |
| TEXTFILE.txt |
| TEXT_FILE.txt |
| 123TEXTFILE.txt |
| TEXTFILE.xyz.txt |
When user "Alice" shares the following files with user "Brian" using the sharing API
| path |
| textfile.txt |
| text_file.txt |
| 123textfile.txt |
| textfile.XYZ.txt |
Then as "Brian" the following files should exist
| path |
| TEXTFILE.txt |
| TEXT_FILE.txt |
| 123TEXTFILE.txt |
| TEXTFILE.xyz.txt |
| textfile.txt |
| text_file.txt |
| 123textfile.txt |
| textfile.XYZ.txt |


Scenario: sharing folder with an internal user that has existing folders with different case names
Given user "Alice" has created the following folders
| path |
| /FO/ |
| /F_O/ |
| /123FO/ |
| /FO.XYZ/ |
And user "Brian" has created the following folders
| path |
| /fo/ |
| /f_o/ |
| /123fo/ |
| /fo.xyz/ |
When user "Alice" shares the following folders with user "Brian" using the sharing API
| path |
| /FO/ |
| /F_O/ |
| /123FO/ |
| /FO.XYZ/ |
Then as "Brian" the following folders should exist
| path |
| /FO/ |
| /F_O/ |
| /123FO/ |
| /FO.XYZ/ |
| /fo/ |
| /f_o/ |
| /123fo/ |
| /fo.xyz/ |


Scenario: sharing file with an internal user that has existing folders with different case names
Given user "Alice" has uploaded the following files with content "some data"
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |
And user "Brian" has created the following folders
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
When user "Alice" shares the following files with user "Brian" using the sharing API
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |
Then as "Brian" the following folders should exist
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
And as "Brian" the following files should exist
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |


Scenario: sharing folder with an internal user that has existing files with different case names
Given user "Alice" has created the following folders
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
And user "Brian" has uploaded the following files with content "some data"
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |
When user "Alice" shares the following folders with user "Brian" using the sharing API
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
Then as "Brian" the following files should exist
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |
And as "Brian" the following folders should exist
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |


Scenario: sharing file with group members that has existing files with different case names
Given group "grp1" has been created
And user "Brian" has been added to group "grp1"
And user "Alice" has uploaded the following files with content "some data"
| path |
| textfile.txt |
| text_file.txt |
| 123textfile.txt |
| textfile.XYZ.txt |
And user "Brian" has uploaded the following files with content "some data"
| path |
| TEXTFILE.txt |
| TEXT_FILE.txt |
| 123TEXTFILE.txt |
| TEXTFILE.xyz.txt |
When user "Alice" shares the following files with group "grp1" using the sharing API
| path |
| textfile.txt |
| text_file.txt |
| 123textfile.txt |
| textfile.XYZ.txt |
Then as "Brian" the following files should exist
| path |
| TEXTFILE.txt |
| TEXT_FILE.txt |
| 123TEXTFILE.txt |
| TEXTFILE.xyz.txt |
| textfile.txt |
| text_file.txt |
| 123textfile.txt |
| textfile.XYZ.txt |


Scenario: sharing folder with group members that has existing folders with different case names
Given group "grp1" has been created
And user "Brian" has been added to group "grp1"
And user "Alice" has created the following folders
| path |
| /FO/ |
| /F_O/ |
| /123FO/ |
| /FO.XYZ/ |
And user "Brian" has created the following folders
| path |
| /fo/ |
| /f_o/ |
| /123fo/ |
| /fo.xyz/ |
When user "Alice" shares the following folders with group "grp1" using the sharing API
| path |
| /FO/ |
| /F_O/ |
| /123FO/ |
| /FO.XYZ/ |
Then as "Brian" the following folders should exist
| path |
| /fo/ |
| /f_o/ |
| /123fo/ |
| /fo.xyz/ |
| /FO/ |
| /F_O/ |
| /123FO/ |
| /FO.XYZ/ |


Scenario: sharing file with group members that has existing folders with different case names
Given group "grp1" has been created
And user "Brian" has been added to group "grp1"
Given user "Alice" has uploaded the following files with content "some data"
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |
And user "Brian" has created the following folders
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
When user "Alice" shares the following files with group "grp1" using the sharing API
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |
Then as "Brian" the following folders should exist
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
And as "Brian" the following files should exist
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |

Scenario: sharing folder with group members that has existing files with different case names
Given group "grp1" has been created
And user "Brian" has been added to group "grp1"
And user "Alice" has created the following folders
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
And user "Brian" has uploaded the following files with content "some data"
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |
When user "Alice" shares the following folders with group "grp1" using the sharing API
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
Then as "Brian" the following files should exist
| path |
| casesensitive.txt |
| case_sensitive.txt |
| 123CASE_SENSITIVE.txt |
| casesensitive.xyz.txt |
And as "Brian" the following folders should exist
| path |
| /CASESENSITIVE/ |
| /CASE_SENSITIVE/ |
| /123case_sensitive/ |
| /CASESENSITIVE.xyz/ |
Loading