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] added different roles for sharee #6635

Merged
merged 1 commit into from
Jun 27, 2023
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
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@api
@api
Feature: change shared resource
As a user
As a user
I want to change the shared resource
So that I can organize them as per my necessity
So that I can organize them as per my necessity

Background:
Given using spaces DAV path
Expand Down Expand Up @@ -30,8 +30,9 @@ Feature: change shared resource
| from_alice.txt |


Scenario: overwrite a received file share
Given user "Alice" has uploaded file with content "old content version 1" to "/textfile1.txt"
Scenario Outline: overwrite a received file share
Given the administrator has assigned the role "<userRole>" to user "Brian" using the Graph API
And user "Alice" has uploaded file with content "old content version 1" to "/textfile1.txt"
And user "Alice" has uploaded file with content "old content version 2" to "/textfile1.txt"
And user "Alice" has shared file "/textfile1.txt" with user "Brian"
And user "Brian" has accepted share "/textfile1.txt" offered by user "Alice"
Expand All @@ -49,3 +50,9 @@ Feature: change shared resource
And the downloaded content should be "old content version 2"
When user "Brian" tries to get version of the file "/textfile1.txt" with the index "1" of the space "Shares" using the WebDAV API
Then the HTTP status code should be "403"
Examples:
| userRole |
| Admin |
| Space Admin |
| User |
| User Light |