4 Commits (0ab445b7a8ab42dc43754d32afc72c8d72f6bc13)

Author SHA1 Message Date
Роман Донченко 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
Dmitry Kruchinin e45d57b9e0
Cypress. Dummy cloud storages. (#3988)
* Creted dummy cloud storages.

* Add dummy per CS. Writing new test.

* Disabling for Firefox

* Code refactoring.

* Some rework

* Apply comments

* Apply comments

* Rename function. Add check tooltip text.

Co-authored-by: dvkruchinin <dvkruchinin@gmail.com>
4 years ago
Dmitry Kruchinin e8b3284882
Cypress test. Connected file share. (#3764)
* Cypress test case 106. docker-compose for file share.

* Continue writing the test

* Added class to reducer

* Case 106. Added check issue 3733

* Updated yml files

* debug

* Fix renaming a image

* Remove debug

* Update the test

* Added comment

* Rename test case/file/images

* Added assert.

* Applying comments

* Apply comments
4 years ago
Dmitry Kruchinin 4960260e35
Cypress test. Context images for 2D tasks. (#3257) 5 years ago