File size: 2,525 Bytes
b4ca43a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Test configuration for da-reporting integration tests
spring:
  application:
    name: da-reporting-test
  
  # Database configuration (using H2 for tests)
  datasource:
    type: com.zaxxer.hikari.HikariDataSource
    driver-class-name: org.h2.Driver
    url: jdbc:h2:mem:testdb;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
    username: sa
    password: password
    hikari:
      auto-commit: false
      maximum-pool-size: 10
      minimum-idle: 2
      connection-timeout: 30000
      idle-timeout: 600000
      max-lifetime: 1800000
  
  jpa:
    database-platform: org.hibernate.dialect.H2Dialect
    hibernate:
      ddl-auto: create-drop
    show-sql: false
    properties:
      hibernate:
        format_sql: false
        jdbc:
          lob:
            non_contextual_creation: true
        dialect: org.hibernate.dialect.H2Dialect

  h2:
    console:
      enabled: false
      
  # Disable Liquibase for tests
  liquibase:
    enabled: false
    
  # Disable Docker for tests
  docker:
    compose:
      enabled: false

  # Task execution configuration for tests
  task:
    execution:
      pool:
        core-size: 2
        max-size: 4
        queue-capacity: 100
      thread-name-prefix: test-task-
    
  # Cache configuration for tests
  cache:
    type: simple

# Disable Docker for tests
testcontainers:
  enabled: false

# Security configuration for tests
dalab:
  security:
    jwt:
      enabled: false
    oauth2:
      enabled: false

# Kafka configuration for tests (disabled)
spring:
  kafka:
    enabled: false
    bootstrap-servers: localhost:9092
    consumer:
      group-id: da-reporting-test
      auto-offset-reset: earliest
    producer:
      key-serializer: org.apache.kafka.common.serialization.StringSerializer
      value-serializer: org.apache.kafka.common.serialization.StringSerializer

# OpenFeign configuration for tests (mocked)
feign:
  client:
    config:
      default:
        connect-timeout: 5000
        read-timeout: 5000
        logger-level: basic

# Service URLs for testing (mocked)
dalab:
  services:
    da-catalog:
      url: http://localhost:8082
    da-policyengine:
      url: http://localhost:8083
    da-autolabel:
      url: http://localhost:8084
    da-autoarchival:
      url: http://localhost:8085
    da-autodelete:
      url: http://localhost:8086
    da-autocompliance:
      url: http://localhost:8087
    da-admin-service:
      url: http://localhost:8088
    da-discovery:
      url: http://localhost:8081