🐛 fix: BDD tests PostgreSQL connection for native execution
- Simplify getPostgresHost() to always use localhost by default - Use DLC_DATABASE_HOST=localhost for all local execution - Container name only needed when running INSIDE Docker containers - Fix native execution PostgreSQL connection issues - Ensure BDD tests connect to localhost:5432 (mapped port) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -69,7 +69,9 @@ for i in {1..30}; do
|
||||
done
|
||||
|
||||
# Set PostgreSQL environment variables for BDD tests
|
||||
export DLC_DATABASE_HOST="dance-lessons-coach-postgres"
|
||||
# Use localhost since PostgreSQL port is mapped to host
|
||||
# Container name is only used when running INSIDE Docker containers
|
||||
export DLC_DATABASE_HOST="localhost"
|
||||
export DLC_DATABASE_PORT=5432
|
||||
export DLC_DATABASE_USER=postgres
|
||||
export DLC_DATABASE_PASSWORD=postgres
|
||||
@@ -130,7 +132,7 @@ if [ "$USE_DOCKER_CACHE" = true ]; then
|
||||
--network dance-lessons-coach-network \
|
||||
-v "$(pwd):/workspace" \
|
||||
-w /workspace \
|
||||
-e DLC_DATABASE_HOST=dance-lessons-coach-postgres \
|
||||
-e DLC_DATABASE_HOST=localhost \
|
||||
-e DLC_DATABASE_PORT=5432 \
|
||||
-e DLC_DATABASE_USER=postgres \
|
||||
-e DLC_DATABASE_PASSWORD=postgres \
|
||||
|
||||
Reference in New Issue
Block a user