File size: 5,126 Bytes
623efaa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# Test configuration for da-catalog integration tests
spring:
  application:
    name: da-catalog-test
  
  config:
    import: classpath:config/catalog-config.yml
    
  # 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

# Cloud provider configuration for tests
aws:
  enabled: false
  access-key: test-access-key
  secret-key: test-secret-key
  region: us-west-2
  s3:
    bucket-name: test-bucket
  dynamodb:
    table-name: test-table

azure:
  enabled: false
  client-id: test-dummy-client-id
  client-secret: test-dummy-client-secret
  tenant-id: test-dummy-tenant-id
  subscription-id: "test-dummy-subscription-id"
  resource-group-name: "test-dummy-rg"
  region: "test-dummy-region"
  storage:
    account-name: "test-dummy-storage-account"
    container-name: "test-dummy-storage-container"

gcp:
  project:
    id: test-project
  storage:
    bucket-name: test-bucket
  bigquery:
    dataset: test_dataset
    project-id: test-project

# Application settings
application:
  kafka:
    enabled: true
    bootstrap-servers: localhost:9092
    producer:
      key-serializer: org.apache.kafka.common.serialization.StringSerializer
      value-serializer: org.apache.kafka.common.serialization.StringSerializer
    consumer:
      group-id: da-catalog-test
      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
      auto-offset-reset: earliest
  scheduler:
    enabled: false
  metrics:
    enabled: false

# Catalog-specific configuration
catalog:
  search:
    max-results: 100
    default-page-size: 20
  labeling:
    auto-labeling-enabled: true
    confidence-threshold: 0.8
  lineage:
    max-depth: 5
    enabled: true

# JHipster configuration
jhipster:
  clientApp:
    name: "daCatalog"
  security:
    authentication:
      jwt:
        secret: test-jwt-secret
        base64-secret: test-secret-which-needs-to-be-at-least-512-bits-long-need-to-be-at-least-512-bits-long-really-long-ok
        token-validity-in-seconds: 86400
  audit-events:
    retention-period: 30
  logging:
    use-json-format: false
  cors:
    allowed-origins: "*"
    allowed-methods: "*"

# Test data configuration
test:
  data:
    enabled: true
    users:
      - email: "admin@test.com"
        roles: ["ADMIN", "USER"]
        department: "IT"
      - email: "cdo@test.com"
        roles: ["CDO", "USER"]
        department: "Executive"
      - email: "director@test.com"
        roles: ["DIRECTOR", "USER"]
        department: "Management"
      - email: "engineer@test.com"
        roles: ["DATA_ENGINEER", "USER"]
        department: "Engineering"
    assets:
      - uri: "gs://test-bucket/data.csv"
        cloud-provider: "GCP"
        service-type: "STORAGE"
        name: "Customer Data CSV"
      - uri: "s3://test-bucket/analytics.json"
        cloud-provider: "AWS"
        service-type: "STORAGE"
        name: "Analytics Data JSON"
      - uri: "https://test.blob.core.windows.net/models/"
        cloud-provider: "AZURE"
        service-type: "STORAGE"
        name: "ML Models Directory"
    labels:
      - name: "PII"
        category: "COMPLIANCE"
        description: "Personally Identifiable Information"
      - name: "PHI"
        category: "COMPLIANCE"
        description: "Protected Health Information"
      - name: "FINANCIAL"
        category: "COMPLIANCE"
        description: "Financial Data"
      - name: "PUBLIC"
        category: "CLASSIFICATION"
        description: "Public Data"
      - name: "INTERNAL"
        category: "CLASSIFICATION"
        description: "Internal Use Only"
      - name: "CONFIDENTIAL"
        category: "CLASSIFICATION"
        description: "Confidential Data"

# Performance test configuration
performance:
  test:
    enabled: false
    concurrent-users: 10
    ramp-up-time: 30
    test-duration: 300
    target-response-time: 2000