blob: 1a08e542b6f33f0d64cc65a71e4161c9dc4bf1b9 [file] [log] [blame]
lukegleeson665e2242023-01-11 09:45:53 +00001# ============LICENSE_START=======================================================
danielhanrahan36b81b22023-08-17 14:58:30 +01002# Copyright (C) 2023-2024 Nordix Foundation.
lukegleeson665e2242023-01-11 09:45:53 +00003# ================================================================================
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
danielhanrahan741fafc2024-02-13 11:12:29 +000018rest:
19 api:
20 cps-base-path: /cps/api
21 ncmp-base-path: /ncmp
22 ncmp-inventory-base-path: /ncmpInventory
23
lukegleeson665e2242023-01-11 09:45:53 +000024spring:
danielhanrahan741fafc2024-02-13 11:12:29 +000025 main:
26 banner-mode: off
27
28 application:
29 name: cps-integration-test
30
lukegleeson665e2242023-01-11 09:45:53 +000031 jpa:
lukegleeson665e2242023-01-11 09:45:53 +000032 properties:
danielhanrahan36b81b22023-08-17 14:58:30 +010033 hibernate.enable_lazy_load_no_trans: true
34 hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
danielhanrahan741fafc2024-02-13 11:12:29 +000035 hibernate.format_sql: false
danielhanrahan36b81b22023-08-17 14:58:30 +010036 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
lukegleeson665e2242023-01-11 09:45:53 +000040
41 datasource:
42 url: ${DB_URL}
43 username: ${DB_USERNAME}
44 password: ${DB_PASSWORD}
45 driverClassName: org.postgresql.Driver
46 initialization-mode: always
danielhanrahan741fafc2024-02-13 11:12:29 +000047 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
lukegleeson665e2242023-01-11 09:45:53 +000060
61 liquibase:
danielhanrahane6fe08b2024-02-13 09:53:07 +000062 change-log: classpath:changelog/changelog-master.yaml
danielhanrahan741fafc2024-02-13 11:12:29 +000063
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
79notification:
80 enabled: false
81
82springdoc:
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
94security:
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
102management:
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
114logging:
115 format: text
116 level:
117 org:
118 springframework: INFO
119 onap:
120 cps: INFO
121
122hazelcast:
123 cluster-name: cps-and-ncmp-test-caches
124 mode:
125 kubernetes:
126 enabled: false
127 service-name: cps-and-ncmp-service