@@ -245,3 +245,58 @@ Feature: List upload sessions via CLI command
245245 When the administrator waits for "3" seconds
246246 Then for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
247247 And the content of file "file1.txt" for user "Alice" should be "uploaded content"
248+
249+
250+ Scenario : resume all failed upload using postprocessing command
251+ Given the config "POSTPROCESSING_DELAY" has been set to "3s"
252+ And user "Alice" has uploaded file with content "uploaded content" to "file1.txt"
253+ And user "Alice" has uploaded file with content "uploaded content" to "file2.txt"
254+ And the administrator has waited for "1" seconds
255+ And the administrator has stopped the server
256+ And the administrator has started the server
257+ When the administrator waits for "3" seconds
258+ Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing
259+ And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
260+ When the administrator resumes all uploads session using post processing command
261+ Then the command should be successful
262+ When the administrator waits for "3" seconds
263+ And the content of file "file1.txt" for user "Alice" should be "uploaded content"
264+ And the content of file "file2.txt" for user "Alice" should be "uploaded content"
265+
266+
267+ Scenario : resume all failed upload on finished step using postprocessing command
268+ Given the config "POSTPROCESSING_DELAY" has been set to "3s"
269+ And user "Alice" has uploaded file with content "uploaded content" to "file1.txt"
270+ And user "Alice" has uploaded file with content "uploaded content" to "file2.txt"
271+ And the administrator has waited for "1" seconds
272+ And the administrator has stopped the server
273+ And the administrator has started the server
274+ When the administrator waits for "3" seconds
275+ Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing
276+ And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
277+ When the administrator resumes all uploads session in finished step using post processing command
278+ Then the command should be successful
279+ When the administrator waits for "3" seconds
280+ And the content of file "file1.txt" for user "Alice" should be "uploaded content"
281+ And the content of file "file2.txt" for user "Alice" should be "uploaded content"
282+
283+
284+ # Scenario: resume all failed upload on virus scan step using postprocessing command
285+ # Given the following configs have been set:
286+ # | config | value |
287+ # | POSTPROCESSING_STEPS | virusscan |
288+ # | ANTIVIRUS_INFECTED_FILE_HANDLING | abort |
289+ # | POSTPROCESSING_DELAY | 10s |
290+ # And user "Alice" has uploaded file with content "uploaded content" to "file1.txt"
291+ # And user "Alice" has uploaded file with content "uploaded content" to "file2.txt"
292+ # And the administrator has waited for "1" seconds
293+ # And the administrator has stopped the server
294+ # And the administrator has started the server
295+ # When the administrator waits for "3" seconds
296+ # Then for user "Alice" file "file1.txt" of space "Personal" should be in postprocessing
297+ # And for user "Alice" file "file2.txt" of space "Personal" should be in postprocessing
298+ # When the administrator resumes all uploads session in virusscan step using post processing command
299+ # Then the command should be successful
300+ # When the administrator waits for "3" seconds
301+ # And the content of file "file1.txt" for user "Alice" should be "uploaded content"
302+ # And the content of file "file2.txt" for user "Alice" should be "uploaded content"
0 commit comments