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][full-ci] check same name resources shared by different users #8630

Merged
merged 2 commits into from
Mar 21, 2024
Merged
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
92 changes: 91 additions & 1 deletion tests/acceptance/features/apiSharingNg/sharedWithMe.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4691,4 +4691,94 @@ Feature: an user gets the resources shared to them
}
}
}
"""
"""

@issue-8471
Scenario: user list resources with same name shared from different users
Given using spaces DAV path
And user "Carol" has been created with default attributes and without skeleton files
And user "Brian" has created folder "folder"
And user "Brian" has uploaded file with content "hello world" to "/textfile.txt"
And user "Carol" has created folder "folder"
And user "Carol" has uploaded file with content "hello world" to "/textfile.txt"
And user "Brian" has sent the following share invitation:
| resource | textfile.txt |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
And user "Brian" has sent the following share invitation:
| resource | folder |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
And user "Carol" has sent the following share invitation:
| resource | textfile.txt |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
And user "Carol" has sent the following share invitation:
| resource | folder |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
When user "Alice" lists the shares shared with him using the Graph API
Then the HTTP status code should be "200"
And the JSON data of the response should match
"""
SagarGi marked this conversation as resolved.
Show resolved Hide resolved
{
"type": "object",
"required": ["value"],
"properties": {
"value": {
"type": "array",
"maxItems": 4,
"minItems": 4,
"uniqueItems": true,
"items": {
"oneOf": [
{
"type": "object",
"required": ["name"],
"properties": {
"name": {
"const": "folder"
}
}
},
{
"type": "object",
"required": ["name"],
"properties": {
"name": {
"const": "folder (1)"
}
}
},
{
"type": "object",
"required": ["name"],
"properties": {
"name": {
"const": "textfile.txt"
}
}
},
{
"type": "object",
"required": ["name"],
"properties": {
"name": {
"const": "textfile (1).txt"
}
}
}
]
}
}
}
}
"""