🧪 test: add JWT edge case scenarios with validation endpoint

- Add expired JWT token scenario

- Add wrong secret JWT token scenario

- Add malformed JWT token scenario

- Implement /api/v1/auth/validate endpoint

- Add JWT parsing and validation to BDD steps

Generated by Mistral Vibe.

Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-04-07 18:21:56 +02:00
parent 81e0afe1c7
commit f39a0df338
15 changed files with 1012 additions and 405 deletions

View File

@@ -55,4 +55,36 @@ telemetry:
# Sampling ratio (0.0 to 1.0, default: 1.0)
# Only used with traceidratio and parentbased_traceidratio samplers
ratio: 1.0
ratio: 1.0
# Database configuration (PostgreSQL)
database:
# PostgreSQL host address (default: "localhost")
host: "localhost"
# PostgreSQL port (default: 5432)
port: 5432
# PostgreSQL username (default: "postgres")
user: "postgres"
# PostgreSQL password (default: "postgres")
# Change this for production!
password: "postgres"
# Database name (default: "dance_lessons_coach")
name: "dance_lessons_coach"
# SSL mode (default: "disable")
# Options: "disable", "allow", "prefer", "require", "verify-ca", "verify-full"
ssl_mode: "disable"
# Maximum number of open connections (default: 25)
max_open_conns: 25
# Maximum number of idle connections (default: 5)
max_idle_conns: 5
# Maximum lifetime of connections (default: "1h")
# Format: number + unit (s, m, h)
conn_max_lifetime: 1h