|
1 | 1 | @env-config @cli-uploads-sessions |
2 | 2 | Feature: List upload sessions via CLI command |
3 | | - As a user |
| 3 | + As an administrator |
4 | 4 | I want to list the upload sessions |
5 | 5 | So that I can manage the upload sessions |
6 | 6 |
|
@@ -106,7 +106,7 @@ Feature: List upload sessions via CLI command |
106 | 106 | When the administrator waits for "3" seconds |
107 | 107 | Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing |
108 | 108 | And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing |
109 | | - When the administrator restarts the upload sessions of file "file1.txt" |
| 109 | + When the administrator restarts the upload session of file "file1.txt" using the CLI |
110 | 110 | Then the command should be successful |
111 | 111 | And the CLI response should contain these entries: |
112 | 112 | | file1.txt | |
@@ -179,6 +179,27 @@ Feature: List upload sessions via CLI command |
179 | 179 | Then the content of file "file.txt" for user "Alice" should be "upload content" |
180 | 180 |
|
181 | 181 |
|
| 182 | + Scenario: resume upload session of a single file |
| 183 | + Given the config "POSTPROCESSING_DELAY" has been set to "3s" |
| 184 | + And user "Alice" has uploaded file with content "uploaded content" to "file1.txt" |
| 185 | + And user "Alice" has uploaded file with content "uploaded content" to "file2.txt" |
| 186 | + And the administrator has waited for "1" seconds |
| 187 | + And the administrator has stopped the server |
| 188 | + And the administrator has started the server |
| 189 | + When the administrator waits for "3" seconds |
| 190 | + Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing |
| 191 | + And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing |
| 192 | + When the administrator resumes the upload session of file "file1.txt" using the CLI |
| 193 | + Then the command should be successful |
| 194 | + And the CLI response should contain these entries: |
| 195 | + | file1.txt | |
| 196 | + And the CLI response should not contain these entries: |
| 197 | + | file2.txt | |
| 198 | + When the administrator waits for "3" seconds |
| 199 | + Then for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing |
| 200 | + And the content of file "file1.txt" for user "Alice" should be "uploaded content" |
| 201 | + |
| 202 | + |
182 | 203 | Scenario: restart expired upload sessions |
183 | 204 | Given a file "large.zip" with the size of "2GB" has been created locally |
184 | 205 | And the config "STORAGE_USERS_UPLOAD_EXPIRATION" has been set to "1" |
|
0 commit comments