# Профиль для @SpringBootTest e2e тестов. Тушит весь cloud-config / vault /
# OTel / outbox publishing — оставляем чистый Spring Boot + Postgres + Kafka
# Testcontainers.

spring:
  cloud:
    config:
      enabled: false
    vault:
      enabled: false
  autoconfigure:
    exclude:
      - org.springframework.cloud.vault.config.VaultAutoConfiguration
      - org.springframework.cloud.vault.config.VaultObservationAutoConfiguration
      - org.springframework.cloud.vault.config.VaultReactiveAutoConfiguration
  jpa:
    hibernate:
      ddl-auto: none
    properties:
      hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
      hibernate.jdbc.lob.non_contextual_creation: true
    open-in-view: false
  liquibase:
    change-log: db/changelog/master.xml
    enabled: true
  kafka:
    producer:
      acks: all
      key-serializer: org.apache.kafka.common.serialization.StringSerializer
      value-serializer: org.apache.kafka.common.serialization.StringSerializer

ordinis:
  auth:
    issuer-uri: ""
    require-authentication: false
    allow-query-scope: true
  outbox:
    enabled: ${ORDINIS_OUTBOX_ENABLED:false}
  bundle:
    cuod:
      auto-import: ${ORDINIS_BUNDLE_AUTOIMPORT:false}

otel:
  sdk:
    disabled: true

management:
  metrics:
    export:
      prometheus:
        enabled: false

logging:
  level:
    root: WARN
    cloud.nstart.terravault.ordinis: INFO
    cloud.nstart.terravault.ordinis.outbox: DEBUG
    liquibase: WARN
    org.hibernate.SQL: WARN
