lukegleeson | 665e224 | 2023-01-11 09:45:53 +0000 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
danielhanrahan | 36b81b2 | 2023-08-17 14:58:30 +0100 | [diff] [blame] | 2 | # Copyright (C) 2023-2024 Nordix Foundation. |
lukegleeson | 665e224 | 2023-01-11 09:45:53 +0000 | [diff] [blame] | 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 | |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame^] | 18 | rest: |
| 19 | api: |
| 20 | cps-base-path: /cps/api |
| 21 | ncmp-base-path: /ncmp |
| 22 | ncmp-inventory-base-path: /ncmpInventory |
| 23 | |
lukegleeson | 665e224 | 2023-01-11 09:45:53 +0000 | [diff] [blame] | 24 | spring: |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame^] | 25 | main: |
| 26 | banner-mode: off |
| 27 | |
| 28 | application: |
| 29 | name: cps-integration-test |
| 30 | |
lukegleeson | 665e224 | 2023-01-11 09:45:53 +0000 | [diff] [blame] | 31 | jpa: |
lukegleeson | 665e224 | 2023-01-11 09:45:53 +0000 | [diff] [blame] | 32 | properties: |
danielhanrahan | 36b81b2 | 2023-08-17 14:58:30 +0100 | [diff] [blame] | 33 | hibernate.enable_lazy_load_no_trans: true |
| 34 | hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame^] | 35 | hibernate.format_sql: false |
danielhanrahan | 36b81b2 | 2023-08-17 14:58:30 +0100 | [diff] [blame] | 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 |
lukegleeson | 665e224 | 2023-01-11 09:45:53 +0000 | [diff] [blame] | 40 | |
| 41 | datasource: |
| 42 | url: ${DB_URL} |
| 43 | username: ${DB_USERNAME} |
| 44 | password: ${DB_PASSWORD} |
| 45 | driverClassName: org.postgresql.Driver |
| 46 | initialization-mode: always |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame^] | 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 |
lukegleeson | 665e224 | 2023-01-11 09:45:53 +0000 | [diff] [blame] | 60 | |
| 61 | liquibase: |
danielhanrahan | e6fe08b | 2024-02-13 09:53:07 +0000 | [diff] [blame] | 62 | change-log: classpath:changelog/changelog-master.yaml |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame^] | 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 |