mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 13:49:36 +01:00
init e2e ui tests base skeleton
This commit is contained in:
parent
83c7321c8f
commit
c84629cc4e
16 changed files with 1219 additions and 0 deletions
54
test-automation/docker-compose.e2e.yml
Normal file
54
test-automation/docker-compose.e2e.yml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
version: '3.8'
|
||||
|
||||
# WICHTIG: Nur im Branch experiment/test-automation verwenden.
|
||||
# Merge in main nur mit ausdrücklicher menschlicher Bestätigung.
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
environment:
|
||||
POSTGRES_DB: effigenix
|
||||
POSTGRES_USER: effigenix
|
||||
POSTGRES_PASSWORD: effigenix
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U effigenix"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ../backend
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
SPRING_PROFILES_ACTIVE: test
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/effigenix
|
||||
SPRING_DATASOURCE_USERNAME: effigenix
|
||||
SPRING_DATASOURCE_PASSWORD: effigenix
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:8080/actuator/health || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
ports:
|
||||
- "8080:8080"
|
||||
|
||||
e2e-runner:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: test-automation/web-ui/Dockerfile
|
||||
environment:
|
||||
BASE_URL: http://backend:8080
|
||||
TEST_USER_ADMIN: admin
|
||||
TEST_USER_ADMIN_PASS: admin123
|
||||
TEST_USER_VIEWER: viewer
|
||||
TEST_USER_VIEWER_PASS: viewer123
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- ./e2e-results:/app/test-automation/web-ui/playwright-report
|
||||
- ./e2e-results:/app/test-automation/web-ui/test-results
|
||||
Loading…
Add table
Add a link
Reference in a new issue