# Test configuration for Auth Server
auth:
  jwt:
    secret: test-secret-for-testing-only-at-least-512-bits-long-for-hmac512-algorithm
    issuer: test-issuer
    audience: test-audience
    expiration: 60

# Database Configuration
spring:
  datasource:
    url: jdbc:h2:mem:testdb
    driver-class-name: org.h2.Driver
  jpa:
    hibernate:
      ddl-auto: create-drop
    show-sql: false
  # Security Configuration - simplified for tests
  security:
    oauth2:
      resourceserver:
        jwt:
          issuer-uri: http://localhost:8080/realms/test
  # Disable banner for cleaner test output
  main:
    banner-mode: off
  # Autoconfiguration exclusions for integration tests
  autoconfigure:
    exclude:
      - org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration
      - org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration

# Actuator Configuration
management:
  endpoints:
    web:
      exposure:
        include: health,info,metrics,prometheus
  endpoint:
    health:
      show-details: always
  health:
    defaults:
      enabled: true

# Logging Configuration
logging:
  level:
    org.springframework.security: DEBUG
    org.springframework.boot.autoconfigure: WARN
