spring:
  application:
    name: ai-service-test

  # Redis Configuration (테스트용)
  data:
    redis:
      host: ${REDIS_HOST:20.214.210.71}
      port: ${REDIS_PORT:6379}
      password: ${REDIS_PASSWORD:Hi5Jessica!}
      database: ${REDIS_DATABASE:3}
      timeout: 3000

  # Kafka Configuration (테스트용)
  kafka:
    bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:20.249.182.13:9095,4.217.131.59:9095}
    consumer:
      group-id: ai-service-test-consumers
      auto-offset-reset: earliest
      enable-auto-commit: false
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
      properties:
        spring.json.trusted.packages: "*"
    listener:
      ack-mode: manual

# Server Configuration
server:
  port: 0  # 랜덤 포트 사용

# JWT Configuration (테스트용)
jwt:
  secret: test-jwt-secret-key-for-testing-only
  access-token-validity: 1800
  refresh-token-validity: 86400

# Kafka Topics
kafka:
  topics:
    ai-job: ai-event-generation-job
    ai-job-dlq: ai-event-generation-job-dlq

# AI API Configuration (테스트용 - Mock 사용)
ai:
  provider: CLAUDE
  claude:
    api-url: ${CLAUDE_API_URL:https://api.anthropic.com/v1/messages}
    api-key: ${CLAUDE_API_KEY:test-key}
    anthropic-version: 2023-06-01
    model: claude-3-5-sonnet-20241022
    max-tokens: 4096
    temperature: 0.7
    timeout: 300000

# Cache TTL
cache:
  ttl:
    recommendation: 86400
    job-status: 86400
    trend: 3600
    fallback: 604800

# Logging
logging:
  level:
    root: INFO
    com.kt.ai: DEBUG
    org.springframework.kafka: DEBUG
