2026-03-20 16:43:44 +00:00
|
|
|
version: '3.8'
|
Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management.
- Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods.
- Added tests for the Session model, focusing on session creation, validation, and invalidation.
- Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly.
- Implemented AuthService tests, validating login, token refresh, and session management.
- Added TokenService tests, covering token creation, validation, and revocation processes.
2025-11-28 15:27:04 +00:00
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
mongodb-test:
|
|
|
|
|
image: mongo:7
|
|
|
|
|
container_name: stack-gallery-test-mongo
|
|
|
|
|
ports:
|
2026-03-20 16:43:44 +00:00
|
|
|
- '27117:27017'
|
Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management.
- Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods.
- Added tests for the Session model, focusing on session creation, validation, and invalidation.
- Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly.
- Implemented AuthService tests, validating login, token refresh, and session management.
- Added TokenService tests, covering token creation, validation, and revocation processes.
2025-11-28 15:27:04 +00:00
|
|
|
environment:
|
|
|
|
|
MONGO_INITDB_ROOT_USERNAME: testadmin
|
|
|
|
|
MONGO_INITDB_ROOT_PASSWORD: testpass
|
|
|
|
|
tmpfs:
|
|
|
|
|
- /data/db
|
|
|
|
|
healthcheck:
|
2026-03-20 16:43:44 +00:00
|
|
|
test: ['CMD', 'mongosh', '--eval', "db.adminCommand('ping')"]
|
Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management.
- Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods.
- Added tests for the Session model, focusing on session creation, validation, and invalidation.
- Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly.
- Implemented AuthService tests, validating login, token refresh, and session management.
- Added TokenService tests, covering token creation, validation, and revocation processes.
2025-11-28 15:27:04 +00:00
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
|
|
|
|
minio-test:
|
|
|
|
|
image: minio/minio:latest
|
|
|
|
|
container_name: stack-gallery-test-minio
|
|
|
|
|
ports:
|
2026-03-20 16:43:44 +00:00
|
|
|
- '9100:9000'
|
|
|
|
|
- '9101:9001'
|
Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management.
- Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods.
- Added tests for the Session model, focusing on session creation, validation, and invalidation.
- Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly.
- Implemented AuthService tests, validating login, token refresh, and session management.
- Added TokenService tests, covering token creation, validation, and revocation processes.
2025-11-28 15:27:04 +00:00
|
|
|
environment:
|
|
|
|
|
MINIO_ROOT_USER: testadmin
|
|
|
|
|
MINIO_ROOT_PASSWORD: testpassword
|
|
|
|
|
command: server /data --console-address ":9001"
|
|
|
|
|
tmpfs:
|
|
|
|
|
- /data
|
|
|
|
|
healthcheck:
|
2026-03-20 16:43:44 +00:00
|
|
|
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
|
Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management.
- Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods.
- Added tests for the Session model, focusing on session creation, validation, and invalidation.
- Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly.
- Implemented AuthService tests, validating login, token refresh, and session management.
- Added TokenService tests, covering token creation, validation, and revocation processes.
2025-11-28 15:27:04 +00:00
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
|
|
|
|
minio-setup:
|
|
|
|
|
image: minio/mc:latest
|
|
|
|
|
depends_on:
|
|
|
|
|
minio-test:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
entrypoint: >
|
|
|
|
|
/bin/sh -c "
|
|
|
|
|
mc alias set testminio http://minio-test:9000 testadmin testpassword;
|
|
|
|
|
mc mb testminio/test-registry --ignore-existing;
|
|
|
|
|
exit 0;
|
|
|
|
|
"
|