-
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
Add REST API GET, POST, PATCH tests for cloud storage #4353
Conversation
@Marishka17 , could you please merge develop and share your experience about the process? I see that you have conflicts with cvat_data.tar.bz2, cvat_db.sql. |
@kirill-sizov , could you please review the patch and provide your suggestions. |
@Marishka17 When I run these tests locally they fails, for example this test failed due to status code is
Am I doing something wrong? Maybe I need to change something in my setup? Have you met this problem? |
You need to export |
@pytest.mark.parametrize('org_id', [2]) | ||
@pytest.mark.parametrize('storage_id', [2]) | ||
@pytest.mark.parametrize('role, is_owner, is_allow', [ | ||
#('worker', True, True), |
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.
Is there any reason to skip this test?
@kirill-sizov, Could you please help and resolve conflicts with assets? |
@nmanovic, I've changed approach with test cloud storage functionality. Main idea is use Multi-Cloud Object Storage. Now, before running REST API tests MinIO server is started and MinIO client creates several buckets locally that are used in tests. |
Yes sure, I will resolve conflicts. |
ff0087b
to
8091cd9
Compare
8091cd9
to
4292b34
Compare
…oolkit/cvat into mk/cloud_storage_tests
Co-authored-by: Kirill Sizov <[email protected]>
Co-authored-by: Kirill Sizov <[email protected]>
…oolkit/cvat into mk/cloud_storage_tests
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.
Looks good to me.
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.
@Marishka17 , great job!
Co-authored-by: kirill.sizov <[email protected]>
Motivation and context
PR contains REST API tests for cloud storage functionality
Resolves #3996
How has this been tested?
Checklist
develop
branch- [ ] I have updated the documentation accordingly- [ ] I have linked related issues (read github docs)- [ ] I have increased versions of npm packages if it is necessary (cvat-canvas,cvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.