Use DB for checking Alternate IDs
[cps.git] / integration-test / src / test / resources / application.yml
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2023-2024 Nordix Foundation.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #        http://www.apache.org/licenses/LICENSE-2.0
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14 #
15 #  SPDX-License-Identifier: Apache-2.0
16 #  ============LICENSE_END=========================================================
17
18 rest:
19   api:
20     cps-base-path: /cps/api
21     ncmp-base-path: /ncmp
22     ncmp-inventory-base-path: /ncmpInventory
23
24 spring:
25   main:
26     banner-mode: off
27
28   application:
29     name: cps-integration-test
30
31   jpa:
32     properties:
33       hibernate.enable_lazy_load_no_trans: true
34       hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
35       hibernate.format_sql: false
36       hibernate.show_sql: false
37       # Please ensure these values match those used in cps-application/src/main/resources/application.yml
38       hibernate.id.new_generator_mappings: true
39       hibernate.jdbc.batch_size: 100
40
41   datasource:
42     url: ${DB_URL}
43     username: ${DB_USERNAME}
44     password: ${DB_PASSWORD}
45     driverClassName: org.postgresql.Driver
46     initialization-mode: always
47     hikari:
48       minimumIdle: 5
49       maximumPoolSize: 80
50       idleTimeout: 60000
51       connectionTimeout: 120000
52       leakDetectionThreshold: 30000
53       pool-name: CpsDatabasePool
54
55   cache:
56     type: caffeine
57     cache-names: yangSchema
58     caffeine:
59       spec: maximumSize=10000,expireAfterAccess=10m
60
61   liquibase:
62     change-log: classpath:changelog/changelog-master.yaml
63
64   servlet:
65     multipart:
66       enabled: true
67       max-file-size: 100MB
68       max-request-size: 100MB
69
70   jackson:
71     default-property-inclusion: NON_NULL
72     serialization:
73       FAIL_ON_EMPTY_BEANS: false
74
75   sql:
76     init:
77       mode: ALWAYS
78
79 notification:
80   enabled: false
81
82 springdoc:
83   swagger-ui:
84     disable-swagger-default-url: true
85     urlsPrimaryName: cps-core
86     urls:
87       - name: cps-core
88         url: /api-docs/cps-core/openapi.yaml
89       - name: cps-ncmp
90         url: /api-docs/cps-ncmp/openapi.yaml
91       - name: cps-ncmp-inventory
92         url: /api-docs/cps-ncmp/openapi-inventory.yaml
93
94 security:
95   # comma-separated uri patterns which do not require authorization
96   permit-uri: /actuator/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**,/v3/api-docs/**
97   auth:
98     username: cps
99     password: cpsr0cks!
100
101 # Actuator
102 management:
103   endpoints:
104     web:
105       exposure:
106         include: info,health,loggers,prometheus
107   endpoint:
108     health:
109       show-details: always
110       # kubernetes probes: liveness and readiness
111       probes:
112         enabled: false
113
114 logging:
115   format: text
116   level:
117     org:
118       springframework: INFO
119       onap:
120         cps: INFO
121
122 hazelcast:
123   cluster-name: cps-and-ncmp-test-caches
124   mode:
125     kubernetes:
126       enabled: false
127       service-name: cps-and-ncmp-service