@@ -211,3 +211,37 @@ Feature: List upload sessions via CLI command
211211 | large .zip |
212212 And the CLI response should not contain these entries:
213213 | file .txt |
214+
215+
216+ Scenario : resume a specific upload session using postprocessing command
217+ Given the config "POSTPROCESSING_DELAY" has been set to "3s"
218+ And user "Alice" has uploaded file with content "uploaded content" to "file1.txt"
219+ And user "Alice" has uploaded file with content "uploaded content" to "file2.txt"
220+ And the administrator has waited for "1" seconds
221+ And the administrator has stopped the server
222+ And the administrator has started the server
223+ When the administrator waits for "3" seconds
224+ Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing
225+ And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
226+ When the administrator resumes the upload session of file "file1.txt" using postprocessing command
227+ Then the command should be successful
228+ When the administrator waits for "3" seconds
229+ Then for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
230+ And the content of file "file1.txt" for user "Alice" should be "uploaded content"
231+
232+
233+ Scenario : restart a specific upload session using postprocessing command
234+ Given the config "POSTPROCESSING_DELAY" has been set to "3s"
235+ And user "Alice" has uploaded file with content "uploaded content" to "file1.txt"
236+ And user "Alice" has uploaded file with content "uploaded content" to "file2.txt"
237+ And the administrator has waited for "1" seconds
238+ And the administrator has stopped the server
239+ And the administrator has started the server
240+ When the administrator waits for "3" seconds
241+ Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing
242+ And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
243+ When the administrator restarts the upload session of file "file1.txt" using postprocessing command
244+ Then the command should be successful
245+ When the administrator waits for "3" seconds
246+ Then for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
247+ And the content of file "file1.txt" for user "Alice" should be "uploaded content"
0 commit comments