forked from cvat-ai/cvat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add REST API GET, POST, PATCH tests for cloud storage (cvat-ai#4353)
Co-authored-by: kirill.sizov <[email protected]>
- Loading branch information
1 parent
96af4f1
commit 575fd7e
Showing
16 changed files
with
465 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
cvat/apps/engine/migrations/0052_alter_cloudstorage_specific_attributes.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.12 on 2022-03-14 10:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('engine', '0051_auto_20220220_1824'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='cloudstorage', | ||
name='specific_attributes', | ||
field=models.CharField(blank=True, max_length=1024), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"count": 2, | ||
"next": null, | ||
"previous": null, | ||
"results": [ | ||
{ | ||
"created_date": "2022-03-17T07:23:59.305000Z", | ||
"credentials_type": "KEY_SECRET_KEY_PAIR", | ||
"description": "", | ||
"display_name": "Bucket 2", | ||
"id": 2, | ||
"manifests": [ | ||
"manifest.jsonl" | ||
], | ||
"organization": 2, | ||
"owner": { | ||
"first_name": "Business", | ||
"id": 11, | ||
"last_name": "Second", | ||
"url": "http://localhost:8080/api/users/11", | ||
"username": "business2" | ||
}, | ||
"provider_type": "AWS_S3_BUCKET", | ||
"resource": "private", | ||
"specific_attributes": "endpoint_url=http%3A%2F%2Fminio%3A9000", | ||
"updated_date": "2022-03-17T07:23:59.309000Z" | ||
}, | ||
{ | ||
"created_date": "2022-03-17T07:22:49.519000Z", | ||
"credentials_type": "ANONYMOUS_ACCESS", | ||
"description": "", | ||
"display_name": "Bucket 1", | ||
"id": 1, | ||
"manifests": [ | ||
"manifest.jsonl" | ||
], | ||
"organization": null, | ||
"owner": { | ||
"first_name": "User", | ||
"id": 2, | ||
"last_name": "First", | ||
"url": "http://localhost:8080/api/users/2", | ||
"username": "user1" | ||
}, | ||
"provider_type": "AWS_S3_BUCKET", | ||
"resource": "public", | ||
"specific_attributes": "endpoint_url=http%3A%2F%2Fminio%3A9000", | ||
"updated_date": "2022-03-17T07:22:49.529000Z" | ||
} | ||
] | ||
} |
Binary file not shown.
Oops, something went wrong.