api-test: upload-rename-download file with back slash (#2239)
This commit is contained in:
+3
@@ -438,6 +438,7 @@ Feature: move (rename) file
|
||||
| old | "strängé नेपाली.txt" | "testfile.txt" |
|
||||
| old | "file,comma.txt" | "testfile.txt" |
|
||||
| old | " start with space.txt" | "testfile.txt" |
|
||||
| old | "testfile.txt" | "with\backslash" |
|
||||
| new | "testfile.txt" | "'single'quotes.txt" |
|
||||
| new | "testfile.txt" | '"double"quotes.txt' |
|
||||
| new | "testfile.txt" | "strängé नेपाली.txt" |
|
||||
@@ -448,6 +449,7 @@ Feature: move (rename) file
|
||||
| new | "strängé नेपाली.txt" | "testfile.txt" |
|
||||
| new | "file,comma.txt" | "testfile.txt" |
|
||||
| new | " start with space.txt" | "testfile.txt" |
|
||||
| new | "testfile.txt" | "with\backslash" |
|
||||
| spaces | "testfile.txt" | "'single'quotes.txt" |
|
||||
| spaces | "testfile.txt" | '"double"quotes.txt' |
|
||||
| spaces | "testfile.txt" | "strängé नेपाली.txt" |
|
||||
@@ -458,6 +460,7 @@ Feature: move (rename) file
|
||||
| spaces | "strängé नेपाली.txt" | "testfile.txt" |
|
||||
| spaces | "file,comma.txt" | "testfile.txt" |
|
||||
| spaces | " start with space.txt" | "testfile.txt" |
|
||||
| spaces | "testfile.txt" | "with\backslash" |
|
||||
|
||||
|
||||
Scenario Outline: try to rename file to name having white space at the end
|
||||
+3
@@ -161,6 +161,7 @@ Feature: move (rename) folder
|
||||
| old | "Sample,Folder,With,Comma" | "testFolder" |
|
||||
| old | " start with space" | "testFolder" |
|
||||
| old | "renamed.part" | "testFolder" |
|
||||
| old | "testFolder" | "with\backslash" |
|
||||
| new | "testFolder" | "'single'quotes" |
|
||||
| new | "testFolder" | '"double"quotes' |
|
||||
| new | "testFolder" | "strängé नेपाली folder" |
|
||||
@@ -175,6 +176,7 @@ Feature: move (rename) folder
|
||||
| new | "Sample,Folder,With,Comma" | "testFolder" |
|
||||
| new | " start with space" | "testFolder" |
|
||||
| new | "renamed.part" | "testFolder" |
|
||||
| new | "testFolder" | "with\backslash" |
|
||||
| spaces | "testFolder" | "'single'quotes" |
|
||||
| spaces | "testFolder" | '"double"quotes' |
|
||||
| spaces | "testFolder" | "strängé नेपाली folder" |
|
||||
@@ -189,6 +191,7 @@ Feature: move (rename) folder
|
||||
| spaces | "Sample,Folder,With,Comma" | "testFolder" |
|
||||
| spaces | " start with space" | "testFolder" |
|
||||
| spaces | "renamed.part" | "testFolder" |
|
||||
| spaces | "testFolder" | "with\backslash" |
|
||||
|
||||
|
||||
Scenario Outline: try to rename folder to name having white space at the end
|
||||
@@ -5,12 +5,11 @@ Feature: download file
|
||||
|
||||
Background:
|
||||
Given user "Alice" has been created with default attributes
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "/textfile0.txt"
|
||||
And user "Alice" has uploaded file with content "Welcome this is just an example file for developers." to "/welcome.txt"
|
||||
|
||||
@smokeTest
|
||||
Scenario Outline: download a file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "/textfile0.txt"
|
||||
When user "Alice" downloads file "/textfile0.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "200"
|
||||
And the downloaded content should be "OpenCloud test text file 0"
|
||||
@@ -23,6 +22,7 @@ Feature: download file
|
||||
@issue-1346
|
||||
Scenario Outline: download a file with range
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "Welcome this is just an example file for developers." to "/welcome.txt"
|
||||
When user "Alice" downloads file "/welcome.txt" with range "bytes=24-50" using the WebDAV API
|
||||
Then the HTTP status code should be "206"
|
||||
And the downloaded content should be "example file for developers"
|
||||
@@ -112,6 +112,7 @@ Feature: download file
|
||||
|
||||
Scenario Outline: download a file with single part ranges
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "Welcome this is just an example file for developers." to "/welcome.txt"
|
||||
When user "Alice" downloads file "/welcome.txt" with range "bytes=0-51" using the WebDAV API
|
||||
Then the HTTP status code should be "206"
|
||||
And the following headers should be set
|
||||
@@ -128,6 +129,7 @@ Feature: download file
|
||||
|
||||
Scenario Outline: download a file with multipart ranges
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "Welcome this is just an example file for developers." to "/welcome.txt"
|
||||
When user "Alice" downloads file "/welcome.txt" with range "bytes=0-6, 40-51" using the WebDAV API
|
||||
Then the HTTP status code should be "206" or "200"
|
||||
And if the HTTP status code was "206" then the following headers should match these regular expressions
|
||||
@@ -155,6 +157,7 @@ Feature: download file
|
||||
|
||||
Scenario Outline: download a file with last byte range out of bounds
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "Welcome this is just an example file for developers." to "/welcome.txt"
|
||||
When user "Alice" downloads file "/welcome.txt" with range "bytes=0-55" using the WebDAV API
|
||||
Then the HTTP status code should be "206"
|
||||
And the downloaded content should be "Welcome this is just an example file for developers."
|
||||
@@ -167,6 +170,7 @@ Feature: download file
|
||||
|
||||
Scenario Outline: download a range at the end of a file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "Welcome this is just an example file for developers." to "/welcome.txt"
|
||||
When user "Alice" downloads file "/welcome.txt" with range "bytes=-11" using the WebDAV API
|
||||
Then the HTTP status code should be "206"
|
||||
And the downloaded content should be "developers."
|
||||
@@ -179,6 +183,7 @@ Feature: download file
|
||||
|
||||
Scenario Outline: download a file with range out of bounds
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "Welcome this is just an example file for developers." to "/welcome.txt"
|
||||
When user "Alice" downloads file "/welcome.txt" with range "bytes=55-60" using the WebDAV API
|
||||
Then the HTTP status code should be "416"
|
||||
Examples:
|
||||
@@ -276,6 +281,7 @@ Feature: download file
|
||||
|
||||
Scenario Outline: try to download recently deleted file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "OpenCloud test text file 0" to "/textfile0.txt"
|
||||
When user "Alice" deletes file "textfile0.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
When user "Alice" tries to download file "textfile0.txt" using the WebDAV API
|
||||
@@ -285,3 +291,31 @@ Feature: download file
|
||||
| old |
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@web-issue-1893
|
||||
Scenario Outline: download a file with special characters in the filename
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded file with content "test file" to <file-name>
|
||||
When user "Alice" downloads file <file-name> using the WebDAV API
|
||||
Then the HTTP status code should be "200"
|
||||
And the downloaded content should be "test file"
|
||||
Examples:
|
||||
| dav-path-version | file-name |
|
||||
| old | "😀 🤖.txt" |
|
||||
| old | "नेपाली" |
|
||||
| old | "C++ file.cpp" |
|
||||
| old | "with\backslash" |
|
||||
| old | "file #2.txt" |
|
||||
| old | "file ?2.pdf" |
|
||||
| new | "😀 🤖.txt" |
|
||||
| new | "नेपाली" |
|
||||
| new | "C++ file.cpp" |
|
||||
| new | "with\backslash" |
|
||||
| new | "file #2.txt" |
|
||||
| new | "file ?2.pdf" |
|
||||
| spaces | "😀 🤖.txt" |
|
||||
| spaces | "नेपाली" |
|
||||
| spaces | "C++ file.cpp" |
|
||||
| spaces | "with\backslash" |
|
||||
| spaces | "file #2.txt" |
|
||||
| spaces | "file ?2.pdf" |
|
||||
|
||||
@@ -26,6 +26,7 @@ Feature: create files and folder
|
||||
| old | "Sample,comma" |
|
||||
| old | "'single'" |
|
||||
| old | '"double"' |
|
||||
| old | "with\backslash" |
|
||||
| new | "upload" |
|
||||
| new | "strängé folder" |
|
||||
| new | "C++ folder.cpp" |
|
||||
@@ -38,6 +39,7 @@ Feature: create files and folder
|
||||
| new | "'single'" |
|
||||
| new | '"double"' |
|
||||
| new | "नेपाली" |
|
||||
| new | "with\backslash" |
|
||||
| spaces | "upload" |
|
||||
| spaces | "strängé folder" |
|
||||
| spaces | "C++ folder.cpp" |
|
||||
@@ -49,6 +51,7 @@ Feature: create files and folder
|
||||
| spaces | "Sample,comma" |
|
||||
| spaces | "'single'" |
|
||||
| spaces | '"double"' |
|
||||
| spaces | "with\backslash" |
|
||||
|
||||
@smokeTest
|
||||
Scenario Outline: get resourcetype property of a folder
|
||||
@@ -122,7 +125,7 @@ Feature: create files and folder
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
|
||||
@web-issue-1893
|
||||
Scenario Outline: create a file
|
||||
Given using <dav-path-version> DAV path
|
||||
When user "Alice" uploads file with content "some text" to <file-name> using the WebDAV API
|
||||
@@ -142,6 +145,7 @@ Feature: create files and folder
|
||||
| old | "Sample,comma.txt" |
|
||||
| old | "'single'.txt" |
|
||||
| old | '"double".txt' |
|
||||
| old | "with\backslash" |
|
||||
| new | "upload.txt" |
|
||||
| new | "strängéfile.txt" |
|
||||
| new | "C++ file.cpp" |
|
||||
@@ -153,6 +157,7 @@ Feature: create files and folder
|
||||
| new | "Sample,comma.txt" |
|
||||
| new | "'single'.txt" |
|
||||
| new | '"double".txt' |
|
||||
| new | "with\backslash" |
|
||||
| spaces | "upload.txt" |
|
||||
| spaces | "strängéfile.txt" |
|
||||
| spaces | "C++ file.cpp" |
|
||||
@@ -164,6 +169,7 @@ Feature: create files and folder
|
||||
| spaces | "Sample,comma.txt" |
|
||||
| spaces | "'single'.txt" |
|
||||
| spaces | '"double".txt' |
|
||||
| spaces | "with\backslash" |
|
||||
|
||||
@issue-10339 @issue-9568
|
||||
Scenario Outline: try to create file with '.', '..' and 'empty'
|
||||
|
||||
Reference in New Issue
Block a user