update tests

This commit is contained in:
root
2026-06-08 22:06:30 -04:00
parent 79024235ef
commit 60ecacb7f8
54 changed files with 13243 additions and 5561 deletions
+21
View File
@@ -0,0 +1,21 @@
services:
test-db:
image: mysql:8.0
container_name: alrahma_test_db
command:
- --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: ${TEST_DB_DATABASE:-school_api_test}
MYSQL_USER: ${TEST_DB_USERNAME:-school}
MYSQL_PASSWORD: ${TEST_DB_PASSWORD:-school}
MYSQL_ROOT_PASSWORD: ${TEST_DB_ROOT_PASSWORD:-root}
ports:
- "${TEST_DB_PORT:-33106}:3306"
# Store data in RAM so the test database is fast and ephemeral.
tmpfs:
- /var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-uroot", "-p${TEST_DB_ROOT_PASSWORD:-root}"]
interval: 3s
timeout: 3s
retries: 30