# Veza Test Environment Configuration
# Copy this file to .env and update with your LAB values

# Base URLs (LAB Incus+OVN)
APP_ORIGIN=https://app.lab.veza
API_ORIGIN=https://api.lab.veza
CHAT_ORIGIN=wss://chat.lab.veza
STREAM_ORIGIN=https://stream.lab.veza
DOCS_ORIGIN=https://docs.lab.veza

# Test accounts (will be generated if not exists)
# Use +alias for easy cleanup
TEST_EMAIL_PREFIX=user+test
TEST_EMAIL_DOMAIN=lab.veza
TEST_PASSWORD_PREFIX=V3za!lab-

# Random suffix for unique accounts
# Will be generated at runtime if not set
# RAND=

# JWT Storage
SESSION_FILE=.session.json

# Test data paths
TEST_DATA_DIR=./data
TEST_USERS_FILE=./data/users.csv
TEST_AUDIO_FILE=./data/audio/demo-track-10s.mp3
TEST_IMAGE_FILE=./data/images/avatar.jpg

# Performance thresholds (milliseconds)
PERF_AUTH_LOGIN_P95=300
PERF_API_ME_P95=200
PERF_CHAT_CONNECT_P95=500

# Test configuration
TEST_TIMEOUT=30s
TEST_RETRY_COUNT=3
TEST_RETRY_DELAY=2s

# k6 configuration
K6_VUS_AUTH=10
K6_ITERATIONS_AUTH=200
K6_VUS_CHAT=50
K6_RPS_STREAM=20

# CI/CD
CI=${CI:-false}
CI_ARTIFACTS_DIR=./artifacts

# Debug
DEBUG=${DEBUG:-false}
VERBOSE=${VERBOSE:-false}

# Security testing
RATE_LIMIT_THRESHOLD=10
XSS_TEST_PAYLOAD="<script>alert('XSS')</script>"

# WebSocket testing
WS_PING_INTERVAL=30s
WS_RECONNECT_DELAY=5s
WS_MAX_RECONNECT_ATTEMPTS=3

# File upload limits
MAX_FILE_SIZE_MB=10
ALLOWED_IMAGE_TYPES="image/jpeg,image/png,image/gif"
ALLOWED_AUDIO_TYPES="audio/mpeg,audio/wav,audio/ogg"