Skip to content

Commit

Permalink
Rebase and refactor from copy request
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed Jul 21, 2022
1 parent 5308c7e commit 3a2d4c2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/acceptance/features/apiSpaces/moveSpaces.feature
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ Feature: move (rename) file
And user "Brian" has shared a space "Project2" to user "Alice" with role "<to_role>"
And user "Brian" has shared a space "Project1" to user "Alice" with role "<from_role>"
When user "Alice" moves file "project1.txt" from space "Project1" to "project1.txt" inside space "Project2" using the WebDAV API
Then the HTTP status code should be "502"
Then the HTTP status code should be "<https_status_code>"
Examples:
| from_role | to_role |
| manager | manager |
| editor | manager |
| manager | editor |
| editor | editor |
| manager | viewer |
| editor | viewer |
| from_role | to_role | https_status_code |
| manager | manager | 502 |
| editor | manager | 502 |
| manager | editor | 502 |
| editor | editor | 502 |
| manager | viewer | 403 |
| editor | viewer | 403 |


Scenario Outline: User move a file from a space project with viewer role to a space project with different role
Expand Down Expand Up @@ -127,12 +127,12 @@ Feature: move (rename) file
And user "Brian" has shared a space "Project" to user "Alice" with role "<role>"
And user "Alice" has uploaded file with content "personal space content" to "/personal.txt"
When user "Alice" moves file "personal.txt" from space "Personal" to "personal.txt" inside space "Project" using the WebDAV API
Then the HTTP status code should be "502"
Then the HTTP status code should be "<https_status_code>"
Examples:
| role |
| manager |
| editor |
| viewer |
| role | https_status_code |
| manager | 502 |
| editor | 502 |
| viewer | 403 |


Scenario Outline: User move a file from space personal to space shares jail with different role (permission)
Expand Down

0 comments on commit 3a2d4c2

Please sign in to comment.