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
..
cypress cvat-sdk: Fix creating tasks with non-local files (#5058) 3 years ago
mounted_file_share cvat-sdk: Fix creating tasks with non-local files (#5058) 3 years ago
python cvat-sdk: Fix creating tasks with non-local files (#5058) 3 years ago
.eslintrc.js Add webhooks (#4863) 3 years ago
cypress.json Add webhooks (#4863) 3 years ago
cypress_canvas3d.json Cypress. New organization pipeline. (#4143) 4 years ago
docker-compose.email.yml Extend helm to support Serverless functions and Analytics (#110) 4 years ago
docker-compose.file_share.yml cvat-sdk: Fix creating tasks with non-local files (#5058) 3 years ago
docker-compose.minio.yml Tests for Webhook sender (#5017) 3 years ago
docker-compose.webhook.yml Add webhooks (#4863) 3 years ago
json_to_html.py Fixed Intel license headers (#119) 4 years ago
nightly_cypress.json Refactor CI (#26) 4 years ago
package.json Fixed eslint config (#131) 4 years ago
pr_cypress.json Refactor CI (#26) 4 years ago
pr_cypress_canvas3d.json Refactor CI (#26) 4 years ago
yarn.lock Fixed eslint config (#131) 4 years ago