🧪 test: add JWT secret rotation BDD scenarios and step implementations #12

Merged
arcodange merged 72 commits from feature/jwt-secret-rotation into main 2026-04-11 17:56:47 +02:00
Showing only changes of commit 21f21a2fdd - Show all commits

View File

@@ -109,7 +109,7 @@ run_tests_with_tags() {
fi
fi
# Set database environment variables for local environment
# Set database environment variables
if [ -z "$GITHUB_ACTIONS" ] && [ -z "$GITEA_ACTIONS" ]; then
echo "🔧 Setting database environment variables for local environment..."
export DLC_DATABASE_HOST="localhost"
@@ -120,6 +120,13 @@ run_tests_with_tags() {
export DLC_DATABASE_SSL_MODE="disable"
else
echo "🏗️ CI environment detected, using service configuration"
echo "🔧 Setting database environment variables for CI environment..."
export DLC_DATABASE_HOST="postgres"
export DLC_DATABASE_PORT="5432"
export DLC_DATABASE_USER="postgres"
export DLC_DATABASE_PASSWORD="postgres"
export DLC_DATABASE_NAME="dance_lessons_coach_bdd_test"
export DLC_DATABASE_SSL_MODE="disable"
fi
# Run tests with proper coverage measurement and tag exclusion