# 测试环境配置
# Test Environment Configuration

server:
  port: 19089

spring:
  # 数据库配置 - 测试MySQL
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://101.200.208.45:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
    username: root
    password: EmotionMuseum2025*#
    hikari:
      minimum-idle: 5
      maximum-pool-size: 30
      auto-commit: true
      idle-timeout: 300000
      pool-name: EmotionHikariCP-Test
      max-lifetime: 1800000
      connection-timeout: 30000
      validation-timeout: 3000
      leak-detection-threshold: 60000
  
  # Redis配置 - 测试Redis
  redis:
    host: 101.200.208.45
    port: 6379
    password: EmotionMuseum2025*#
    timeout: 3000ms
    database: 1
    lettuce:
      pool:
        max-active: 10
        max-wait: -1ms
        max-idle: 8
        min-idle: 2
        time-between-eviction-runs: 30s
      client-name: emotion-museum-client

# 日志配置 - 测试环境
logging:
  level:
    com.emotion: debug
    org.springframework.security: info
    org.springframework.web: info
    org.mybatis: info
    root: info
  file:
    name: /data/logs/emotion-museum/emotion-single-test.log
    max-size: 100MB
    max-history: 30

# 测试环境特定配置
emotion:
  # 文件上传路径 - 测试环境
  upload:
    path: /data/uploads/emotion-museum-test
  
  # 测试模式配置
  test:
    mock-enabled: false
    debug-mode: true
    performance-monitoring: true

  # 雪花算法配置
  snowflake:
    machine-id: 2