-
Notifications
You must be signed in to change notification settings - Fork 202
[tests-only][full-ci] added test to restart and resume all stale uploads #11308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,27 @@ Feature: stale upload via CLI command | |
Total stale nodes: 1 | ||
""" | ||
And there should be "0" stale uploads of space "Personal" owned by user "Alice" | ||
|
||
@issue-11296 | ||
Scenario: resume all stale uploads | ||
Given the config "POSTPROCESSING_DELAY" has been set to "10s" | ||
And user "Alice" has uploaded file with content "some content" to "textfile.txt" | ||
And the administrator has stopped the server | ||
And the administrator has created stale upload | ||
And the administrator has started the server | ||
When the administrator resumes all the stale uploads | ||
Then the command should be successful | ||
And the CLI response should contain these entries: | ||
| textfile.txt | | ||
|
||
@issue-11296 | ||
Scenario: restart all stale uploads | ||
Given the config "POSTPROCESSING_DELAY" has been set to "10s" | ||
And user "Alice" has uploaded file with content "some content" to "textfile.txt" | ||
And the administrator has stopped the server | ||
And the administrator has created stale upload | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An unfinished upload and a stale upload are different things. I have created a stale upload by deleting the .info file, and I doubt it is possible to resume/restart the upload file from which the .info file has been deleted. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That could be the reason why the table in the response is empty. Maybe resume and restart is not possible for stale uploads. |
||
And the administrator has started the server | ||
When the administrator restarts all the stale uploads | ||
Then the command should be successful | ||
And the CLI response should contain these entries: | ||
| textfile.txt | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you using this step ? IMO you are testing resume command?