Skip to content

Commit

Permalink
test(refactor): refactor scenarios after fix #10627
Browse files Browse the repository at this point in the history
  • Loading branch information
anon-pradip committed Dec 12, 2024
1 parent 2b0c6f9 commit 77fbcb5
Showing 1 changed file with 17 additions and 24 deletions.
41 changes: 17 additions & 24 deletions tests/acceptance/features/apiSharingNg1/sharedWithMe.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5234,43 +5234,36 @@ Feature: an user gets the resources shared to them
| FolderToShare |

@env-config
Scenario Outline: check the permission access while sharing a resource with denied permission role (Personal Space)
Scenario: share a folder with denied permission role (Personal Space)
Given using spaces DAV path
And the administrator has enabled the permissions role "Denied"
And user "Alice" has created folder "FolderToShare"
And user "Alice" has uploaded file with content "personal space" to "/textfile.txt"
And user "Alice" has uploaded file with content "hello world" to "FolderToShare/lorem.txt"
And user "Alice" has sent the following resource share invitation:
| resource | <resource> |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Denied |
| resource | FolderToShare |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Denied |
When user "Brian" lists the shares shared with him using the Graph API
Then the HTTP status code should be "200"
And user "Brian" should not have a share "<resource>" shared by user "Alice"
Examples:
| resource |
| FolderToShare |
| textfile.txt |
And user "Brian" should not have a share "FolderToShare" shared by user "Alice" from space "Personal"
And user "Brian" should not be able to download file "FolderToShare/lorem.txt" from space "Personal"

@env-config
Scenario Outline: check the response while sharing a resource with denied permission role (Project Space)
Scenario: share a folder with denied permission role (Project Space)
Given using spaces DAV path
And the administrator has enabled the permissions role "Denied"
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "NewSpace" with the default quota using the Graph API
And user "Alice" has created a folder "FolderToShare" in space "NewSpace"
And user "Alice" has uploaded a file inside space "NewSpace" with content "project space" to "textfile.txt"
And user "Alice" has sent the following resource share invitation:
| resource | <resource> |
| space | NewSpace |
| sharee | Brian |
| shareType | user |
| permissionsRole | Denied |
| resource | FolderToShare |
| space | NewSpace |
| sharee | Brian |
| shareType | user |
| permissionsRole | Denied |
When user "Brian" lists the shares shared with him using the Graph API
Then the HTTP status code should be "200"
And user "Brian" should not have a share "<resource>" shared by user "Alice"
Examples:
| resource |
| FolderToShare |
| textfile.txt |
And user "Brian" should not have a share "FolderToShare" shared by user "Alice" from space "NewSpace"
And user "Brian" should not be able to download file "FolderToShare/lorem.txt" from space "NewSpace"

0 comments on commit 77fbcb5

Please sign in to comment.