-
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
9a90e72
commit 27d0458
Showing
3 changed files
with
50 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
26 changes: 26 additions & 0 deletions
26
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,26 @@ | ||
Feature: checking file versions using file id | ||
As a user | ||
I want to share file outside of the space | ||
So that other users can access the file | ||
|
||
Scenario: check the file versions of a shared file | ||
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 "Project1" with the default quota using the Graph API | ||
And user "Alice" has uploaded a file inside space "Project1" with content "hello world version 1" to "text.txt" | ||
And we save it into "FILEID" | ||
And user "Alice" has uploaded a file inside space "Project1" with content "hello world version 1.1" to "text.txt" | ||
And user "Alice" has created a share inside of space "Project1" with settings: | ||
| path | text.txt | | ||
| shareWith | Brian | | ||
| role | editor | | ||
And using new DAV path | ||
When user "Alice" 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 "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 "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