-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
backup task created from cloud #8972
base: develop
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
@@ -3959,6 +3959,33 @@ def test_cannot_export_backup_for_task_without_data(self, tasks): | |||
assert exc.status == HTTPStatus.BAD_REQUEST | |||
assert "Backup of a task without data is not allowed" == exc.body.encode() | |||
|
|||
def test_can_export_and_import_backup_task_with_cloud_storage(self, tasks): |
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.
Could you add tests for video and 3d data, with and without static chunks? Maybe it will be more convenient to do this in server unit tests.
assert not hasattr(self._db_data, 'video'), "Only images can be stored in cloud storage" | ||
media_files = [im.path for im in self._db_data.images.all()] | ||
cloud_storage_instance = db_storage_to_storage_instance(self._db_data.cloud_storage) | ||
with tempfile.TemporaryDirectory() as tmp_dir: |
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.
Images can be:
- 2d and 3d
- raw and archive
There can also be related images. Probably, they are not included.
Please check these cases.
Motivation and context
Making a backup for tasks/projects created from cloud storage
How has this been tested?
Checklist
develop
branchLicense
Feel free to contact the maintainers if that's a concern.