From e8a31b87e83c055a8c959ed35fc79d4142fb9437 Mon Sep 17 00:00:00 2001 From: Kirill Lakhov Date: Tue, 13 Jun 2023 19:40:09 +0300 Subject: [PATCH] Test for exporting annotations into CS folder (#6301) ### Motivation and context Test for #6265 ### How has this been tested? ### Checklist - [ ] I submit my changes into the `develop` branch - [ ] I have added a description of my changes into the [CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md) file - [ ] I have updated the documentation accordingly - [ ] I have added tests to cover my changes - [ ] I have linked related issues (see [GitHub docs]( https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)) - [ ] I have increased versions of npm packages if it is necessary ([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning), [cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning), [cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning) and [cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning)) ### License - [ ] I submit _my code changes_ under the same [MIT License]( https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern. --- ...ustom_storage_for_import_export_annotations.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/cypress/e2e/actions_tasks3/case_115_use_custom_storage_for_import_export_annotations.js b/tests/cypress/e2e/actions_tasks3/case_115_use_custom_storage_for_import_export_annotations.js index e0e8b14a5961..353e4f27526e 100644 --- a/tests/cypress/e2e/actions_tasks3/case_115_use_custom_storage_for_import_export_annotations.js +++ b/tests/cypress/e2e/actions_tasks3/case_115_use_custom_storage_for_import_export_annotations.js @@ -126,6 +126,21 @@ context('Import and export annotations: specify source and target storage in mod }; cy.exportJob(exportParams); cy.waitForFileUploadToCloudStorage(); + }); + + it('Export job annotations to custom minio bucket with folder path', () => { + const exportParams = { + type: 'annotations', + format, + archiveCustomName: 'some/folder/job_annotations', + targetStorage: { + location: 'Cloud storage', + cloudStorageId: createdCloudStorageId, + }, + useDefaultLocation: false, + }; + cy.exportJob(exportParams); + cy.waitForFileUploadToCloudStorage(); // remove annotations cy.removeAnnotations();