Add E2E tests, fix bugs

Made-with: Cursor
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-13 05:17:48 +03:00
parent 1f98b5e958
commit 8f7deb3fca
71 changed files with 4740 additions and 29 deletions
@@ -0,0 +1,44 @@
# Input Data Parameters
## API Request Schemas
### Login
- `email`: string — user email address
- `password`: string — user password (plaintext)
### Load Resource
- `filename`: string — resource name (without `.big`/`.small` suffix)
- `folder`: string — resource folder/bucket name
### Upload Resource
- `data`: binary file (multipart upload)
- `filename`: string — resource name (path parameter)
- `folder`: string — destination folder (form field, defaults to `"models"`)
### Unlock
- `email`: string — user email
- `password`: string — user password
## Configuration Files
### cdn.yaml (downloaded encrypted from API)
- `host`: string — S3 endpoint URL
- `downloader_access_key`: string — read-only S3 access key
- `downloader_access_secret`: string — read-only S3 secret key
- `uploader_access_key`: string — write S3 access key
- `uploader_access_secret`: string — write S3 secret key
## JWT Token Claims
- `nameid`: string — user GUID
- `unique_name`: string — user email
- `role`: string — one of: ApiAdmin, Admin, ResourceUploader, Validator, Operator
## External Data Sources
| Source | Data | Format | Direction |
|--------|------|--------|-----------|
| Azaion Resource API | JWT tokens, encrypted resources (small parts), CDN config, key fragments | JSON / binary | Download |
| S3 CDN | Large resource parts (.big files) | Binary | Upload / Download |
| Local filesystem | Encrypted Docker archive (`images.enc`), cached `.big` files | Binary | Read / Write |
| Docker daemon | Image loading, image inspection | CLI stdout | Read |
| Host OS | Hardware fingerprint (CPU, GPU, RAM, drive serial) | Text (subprocess) | Read |