ultisuite-backend/.env.test.example
R3D347HR4Y fa5394e10d feat(tests): add integration testing framework and configuration
- Introduced a new `.env.test.example` file for integration test configuration.
- Added a `Makefile` to streamline test commands for unit and integration tests.
- Implemented an integration testing harness with support for PostgreSQL, MinIO, and Redis using testcontainers.
- Created a suite of integration tests covering health checks and user management functionalities.
- Enhanced CI workflow to include integration tests with necessary environment variables.
2026-06-07 19:44:29 +02:00

37 lines
1.3 KiB
Plaintext

# =============================================================================
# Integration tests — copy to .env.test and adjust
# =============================================================================
# Master switch (required)
ULTI_TEST_INTEGRATION=1
# Core infra — leave empty to auto-start via Docker testcontainers
# ULTI_TEST_DB_URL=postgres://ulti:test@localhost:5432/ultidb_test?sslmode=disable
# ULTI_TEST_REDIS_ADDR=127.0.0.1:6379
# ULTI_TEST_S3_ENDPOINT=127.0.0.1:9000
# ULTI_TEST_S3_ACCESS_KEY=ultiadmin
# ULTI_TEST_S3_SECRET_KEY=changeme123
# ULTI_TEST_S3_USE_SSL=false
ULTI_TEST_AUTO_MIGRATE=true
ULTI_TEST_PARALLEL=4
# Mail credential encryption (test values — never use in production)
MAIL_CREDENTIAL_KEYS=v1:MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=
MAIL_ACTIVE_CREDENTIAL_KEY_ID=v1
MAIL_WEBHOOK_SHARED_SECRET=test-webhook-secret
# Optional suite modules (skipped unless enabled)
# ULTI_TEST_NEXTCLOUD=1
# ULTI_TEST_NEXTCLOUD_URL=http://localhost:8081
# ULTI_TEST_IMMICH=1
# ULTI_TEST_IMMICH_URL=http://localhost:2283/api
# ULTI_TEST_JITSI=1
# ULTI_TEST_MEILISEARCH=1
# ULTI_TEST_MEILISEARCH_URL=http://localhost:7700
# ULTI_TEST_MEILISEARCH_KEY=changeme
# Disable heavy suite integrations during core API tests
NEXTCLOUD_ENABLED=false
IMMICH_ENABLED=false
JITSI_ENABLED=false
ONLYOFFICE_ENABLED=false