Skip to content

Commit

Permalink
adding test for listing file version of a file inside project space
Browse files Browse the repository at this point in the history
  • Loading branch information
nirajacharya2 committed Dec 14, 2023
1 parent 8c61c63 commit 12e6b53
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Feature: checking file versions using file id
| all |


Scenario Outline: check the file versions of a shared file
Scenario Outline: check the file versions of a file in a shared space
Given these users have been created with default attributes and without skeleton files:
| username |
| Alice |
Expand All @@ -46,18 +46,14 @@ Feature: checking file versions using file id
And user "Alice" has shared a space "Project1" with settings:
| shareWith | Brian |
| role | <role> |
# And user "Alice" has created a share inside of space "Project1" with settings:
# | path | text.txt |
# | shareWith | Brian |
# | role | <role> |
And using new DAV path
When user "Alice" gets the number of versions of file "/text.txt" using file-id path "/meta/<<FILEID>>/v"
Then the HTTP status code should be "207"
And the number of versions should be "1"
When user "Brian" tries to get the number of versions of file "/text.txt" using file-id path "/meta/<<FILEID>>/v"
Then the HTTP status code should be "<status_code>"
Examples:
| role | status_code|
| editor |207 |
| viewer |403|
| all |207|
| role | status_code |
| editor | 207 |
| viewer | 403 |
| manager | 207 |

0 comments on commit 12e6b53

Please sign in to comment.