You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Роман Донченко b029bc9da8
cvat-sdk: Fix creating tasks with non-local files (#5058)
* Move the test file share contents to tests/share

This way, it can be reused between tests.

* cvat-sdk: Fix creating tasks with non-local files

Forcing the `Content-Type` for the `upload_data` API call to
`multipart/form-data` does not work, because the current logic for
converting Python values to parts (`ApiClient._convert_body_to_post_params`)
does not encode them in a way that Django REST Framework can understand (it
JSON-encodes each part).

Fortunately, we don't actually need to do that, since when we create a task
with non-local files, we don't need to upload any files, and so we can just
post the original JSON, so do just that.

I couldn't add a test for the remote image case, because CVAT rejects all URLs
with non-public IP addressses. However, I did test this case manually.
3 years ago
..
assets cvat-sdk: Fix creating tasks with non-local files (#5058) 3 years ago
case_1_create_delete_task_label_color.js Fixed Intel license headers (#119) 4 years ago
case_3_task_start_stop_step_frame.js Fixed Intel license headers (#119) 4 years ago
case_5_image_rotate.js Fixed Intel license headers (#119) 4 years ago
case_6_image_scale_fit.js Fixed Intel license headers (#119) 4 years ago
case_7_image_scale_roi.js Fixed Intel license headers (#119) 4 years ago
case_18_filters_functionality.js Cypress test. Ellipse actions. (#4215) 4 years ago
case_19_all_image_rotate_features.js Fixed Intel license headers (#119) 4 years ago
case_44_changing_default_value_for_attribute.js API versioning using accept header (#4239) 4 years ago
case_45_open_the_task_button.js Fixed Intel license headers (#119) 4 years ago
case_46_create_task_with_files_from_remote_sources.js 86 improve uiux on create task page (#7) 4 years ago
case_47_export_dataset.js Source & target storage support (#4842) 3 years ago
case_48_issue_2663_annotations_statistics.js Added support of skeletons (#1) 4 years ago
case_49_settings_show_all_interpolation_tracks.js Fixed Intel license headers (#119) 4 years ago
case_50_settings_player_speed.js Fixed Intel license headers (#119) 4 years ago
case_74_drag_canvas.js Added support of skeletons (#1) 4 years ago
case_90_context_image.js Fixed Intel license headers (#119) 4 years ago
case_105_cloud_storage.js Enhanced filtration/sorting for tasks/projects/tasks in projects/cloud storages (#4409) 4 years ago
case_107_connected_file_share.js Extend helm to support Serverless functions and Analytics (#110) 4 years ago
case_109_dummy_cloud_storage.js API versioning using accept header (#4239) 4 years ago
case_112_tus_upload.js Fixed Intel license headers (#119) 4 years ago
case_113_use_default_project_storage_for_import_export_annotations.js Cypress tests for source & target storage (#4914) 3 years ago
case_114_use_default_task_storage_for_import_export_annotations.js Cypress tests for source & target storage (#4914) 3 years ago
case_115_use_custom_storage_for_import_export_annotations.js Cypress tests for source & target storage (#4914) 3 years ago