-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding test for file version of a share in a projectspace
- Loading branch information
1 parent
3976063
commit fefc5ce
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/acceptance/features/apiSpacesDavOperation/fileVersionByFileID.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: Share a file or folder that is inside a space and check the file version | ||
|
||
Scenario: file version | ||
Given these users have been created with default attributes and without skeleton files: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
And using spaces DAV path | ||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API | ||
And user "Alice" has created a space "version check" with the default quota using the Graph API | ||
And user "Alice" has uploaded a file inside space "version check" with content "hello world version 1" to "text.txt" | ||
And we save it into "FILEID" | ||
And user "Alice" has uploaded a file inside space "version check" with content "hello world version 1.1" to "text.txt" | ||
When user "Alice" creates a share inside of space "version check" with settings: | ||
| path | text.txt | | ||
| shareWith | Brian | | ||
| role | editor | | ||
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" | ||
Then the number of versions should be "1" | ||
When user "Brian" gets the number of versions of file "/text.txt" using file-id path "/meta/<<FILEID>>/v" | ||
Then the HTTP status code should be "403" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters