add tests for uploading the zero-byte via tus and webdav api
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
This commit is contained in:
@@ -144,3 +144,53 @@ Feature: upload resources using TUS protocol
|
||||
When user "Brian" uploads a file from "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside of the space "new-space" using the WebDAV API
|
||||
Then for user "Brian" the content of the file "textfile.txt" of the space "new-space" should be ""
|
||||
And for user "Alice" the content of the file "textfile.txt" of the space "new-space" should be ""
|
||||
|
||||
@issue-10649
|
||||
Scenario: public uploads a zero byte file to a public share folder
|
||||
Given using spaces DAV path
|
||||
And using SharingNG
|
||||
And user "Alice" has created folder "/uploadFolder"
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | uploadFolder |
|
||||
| space | Personal |
|
||||
| permissionsRole | createOnly |
|
||||
| password | %public% |
|
||||
When the public uploads a file from "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
|
||||
And for user "Alice" folder "uploadFolder" of the space "Personal" should contain these files:
|
||||
| textfile.txt |
|
||||
And for user "Alice" folder "uploadFolder" of the space "Personal" should not contain these files:
|
||||
| textfile (1).txt |
|
||||
|
||||
@issue-10346
|
||||
Scenario: public uploads a zero-byte file to a shared folder inside project space
|
||||
Given using spaces DAV path
|
||||
And using SharingNG
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Alice" has created a folder "/uploadFolder" in space "Project"
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | uploadFolder |
|
||||
| space | Project |
|
||||
| permissionsRole | createOnly |
|
||||
| password | %public% |
|
||||
When the public uploads a file from "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
|
||||
And for user "Alice" folder "uploadFolder" of the space "Project" should contain these files:
|
||||
| textfile.txt |
|
||||
And for user "Alice" folder "uploadFolder" of the space "Project" should not contain these files:
|
||||
| textfile (1).txt |
|
||||
|
||||
@issue-10649
|
||||
Scenario: public uploads a zero-byte file to a public share project space
|
||||
Given using spaces DAV path
|
||||
And using SharingNG
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Alice" has created the following space link share:
|
||||
| space | Project |
|
||||
| permissionsRole | createOnly |
|
||||
| password | %public% |
|
||||
When the public uploads a file from "filesForUpload/zerobyte.txt" to "textfile.txt" via TUS inside last link shared folder with password "%public%" using the WebDAV API
|
||||
Then for user "Alice" the space "Project" should contain these files:
|
||||
| textfile.txt |
|
||||
And for user "Alice" the space "Project" should not contain these files:
|
||||
| textfile (1).txt |
|
||||
|
||||
Reference in New Issue
Block a user