@@ -190,3 +190,37 @@ Feature: List upload sessions via CLI command
190190 | large .zip |
191191 And the CLI response should not contain these entries:
192192 | file .txt |
193+
194+
195+ Scenario : resume a specific upload session using postprocessing command
196+ Given the config "POSTPROCESSING_DELAY" has been set to "3s"
197+ And user "Alice" has uploaded file with content "uploaded content" to "file1.txt"
198+ And user "Alice" has uploaded file with content "uploaded content" to "file2.txt"
199+ And the administrator has waited for "1" seconds
200+ And the administrator has stopped the server
201+ And the administrator has started the server
202+ When the administrator waits for "3" seconds
203+ Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing
204+ And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
205+ When the administrator resumes the upload session of file "file1.txt" using postprocessing command
206+ Then the command should be successful
207+ When the administrator waits for "3" seconds
208+ Then for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
209+ And the content of file "file1.txt" for user "Alice" should be "uploaded content"
210+
211+
212+ Scenario : restart a specific upload session using postprocessing command
213+ Given the config "POSTPROCESSING_DELAY" has been set to "3s"
214+ And user "Alice" has uploaded file with content "uploaded content" to "file1.txt"
215+ And user "Alice" has uploaded file with content "uploaded content" to "file2.txt"
216+ And the administrator has waited for "1" seconds
217+ And the administrator has stopped the server
218+ And the administrator has started the server
219+ When the administrator waits for "3" seconds
220+ Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing
221+ And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
222+ When the administrator restarts the upload session of file "file1.txt" using postprocessing command
223+ Then the command should be successful
224+ When the administrator waits for "3" seconds
225+ Then for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
226+ And the content of file "file1.txt" for user "Alice" should be "uploaded content"
0 commit comments