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 |
danielhanrahan | bbfb061 | 2024-04-16 22:04:44 +0100 | [diff] [blame] | 51 | connectionTimeout: 30000 |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 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 | |
danielhanrahan | fc00c0c | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 70 | kafka: |
| 71 | bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092} |
| 72 | security: |
| 73 | protocol: PLAINTEXT |
| 74 | producer: |
| 75 | value-serializer: io.cloudevents.kafka.CloudEventSerializer |
| 76 | client-id: cps-core |
| 77 | consumer: |
| 78 | group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group} |
| 79 | key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer |
| 80 | value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer |
| 81 | properties: |
| 82 | spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer |
| 83 | spring.deserializer.value.delegate.class: io.cloudevents.kafka.CloudEventDeserializer |
| 84 | spring.json.use.type.headers: false |
| 85 | |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 86 | jackson: |
| 87 | default-property-inclusion: NON_NULL |
| 88 | serialization: |
| 89 | FAIL_ON_EMPTY_BEANS: false |
| 90 | |
| 91 | sql: |
| 92 | init: |
| 93 | mode: ALWAYS |
| 94 | |
danielhanrahan | fc00c0c | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 95 | app: |
| 96 | ncmp: |
| 97 | async-m2m: |
| 98 | topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m} |
| 99 | avc: |
mpriyank | f0f657c | 2024-05-16 16:35:49 +0100 | [diff] [blame] | 100 | cm-subscription-ncmp-in: ${CM_SUBSCRIPTION_NCMP_IN_TOPIC:subscription} |
| 101 | cm-subscription-dmi-in: ${CM_SUBSCRIPTION_DMI_IN_TOPIC:ncmp-dmi-cm-avc-subscription} |
| 102 | cm-subscription-dmi-out: ${CM_SUBSCRIPTION_DMI_OUT_TOPIC:dmi-ncmp-cm-avc-subscription} |
| 103 | cm-subscription-ncmp-out: ${CM_SUBSCRIPTION_NCMP_OUT_TOPIC:subscription-response} |
danielhanrahan | fc00c0c | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 104 | cm-events-topic: ${NCMP_CM_EVENTS_TOPIC:cm-events} |
| 105 | lcm: |
| 106 | events: |
| 107 | topic: ${LCM_EVENTS_TOPIC:ncmp-events} |
| 108 | dmi: |
| 109 | cm-events: |
| 110 | topic: ${DMI_CM_EVENTS_TOPIC:dmi-cm-events} |
| 111 | device-heartbeat: |
| 112 | topic: ${DMI_DEVICE_HEARTBEAT_TOPIC:dmi-device-heartbeat} |
| 113 | |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 114 | notification: |
danielhanrahan | 47c294d | 2024-03-01 10:56:19 +0000 | [diff] [blame] | 115 | enabled: true |
danielhanrahan | fc00c0c | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 116 | async: |
| 117 | executor: |
| 118 | core-pool-size: 2 |
| 119 | max-pool-size: 10 |
| 120 | queue-capacity: 500 |
| 121 | wait-for-tasks-to-complete-on-shutdown: true |
| 122 | thread-name-prefix: Async- |
danielhanrahan | bbfb061 | 2024-04-16 22:04:44 +0100 | [diff] [blame] | 123 | time-out-value-in-ms: 60000 |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 124 | |
| 125 | springdoc: |
| 126 | swagger-ui: |
| 127 | disable-swagger-default-url: true |
| 128 | urlsPrimaryName: cps-core |
| 129 | urls: |
| 130 | - name: cps-core |
| 131 | url: /api-docs/cps-core/openapi.yaml |
| 132 | - name: cps-ncmp |
| 133 | url: /api-docs/cps-ncmp/openapi.yaml |
| 134 | - name: cps-ncmp-inventory |
| 135 | url: /api-docs/cps-ncmp/openapi-inventory.yaml |
| 136 | |
| 137 | security: |
| 138 | # comma-separated uri patterns which do not require authorization |
| 139 | permit-uri: /actuator/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**,/v3/api-docs/** |
| 140 | auth: |
| 141 | username: cps |
| 142 | password: cpsr0cks! |
| 143 | |
| 144 | # Actuator |
| 145 | management: |
| 146 | endpoints: |
| 147 | web: |
| 148 | exposure: |
| 149 | include: info,health,loggers,prometheus |
| 150 | endpoint: |
| 151 | health: |
| 152 | show-details: always |
| 153 | # kubernetes probes: liveness and readiness |
| 154 | probes: |
| 155 | enabled: false |
| 156 | |
| 157 | logging: |
| 158 | format: text |
| 159 | level: |
| 160 | org: |
| 161 | springframework: INFO |
| 162 | onap: |
| 163 | cps: INFO |
| 164 | |
danielhanrahan | fc00c0c | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 165 | ncmp: |
| 166 | dmi: |
| 167 | httpclient: |
danielhanrahan | bbfb061 | 2024-04-16 22:04:44 +0100 | [diff] [blame] | 168 | connectionTimeoutInSeconds: 30 |
danielhanrahan | fc00c0c | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 169 | maximumConnectionsPerRoute: 50 |
| 170 | maximumConnectionsTotal: 100 |
| 171 | idleConnectionEvictionThresholdInSeconds: 5 |
sourabh_sourabh | 3ad3931 | 2024-05-07 12:31:44 +0100 | [diff] [blame] | 172 | maximumInMemorySizeInMegabytes: 16 |
danielhanrahan | fc00c0c | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 173 | auth: |
| 174 | username: dmi |
| 175 | password: dmi |
| 176 | enabled: false |
| 177 | api: |
| 178 | base-path: dmi |
| 179 | |
| 180 | timers: |
| 181 | advised-modules-sync: |
| 182 | sleep-time-ms: 100000 |
| 183 | locked-modules-sync: |
| 184 | sleep-time-ms: 300000 |
| 185 | cm-handle-data-sync: |
| 186 | sleep-time-ms: 30000 |
| 187 | subscription-forwarding: |
| 188 | dmi-response-timeout-ms: 30000 |
| 189 | model-loader: |
| 190 | retry-time-ms: 1000 |
| 191 | trust-level: |
| 192 | dmi-availability-watchdog-ms: 30000 |
| 193 | |
| 194 | modules-sync-watchdog: |
| 195 | async-executor: |
| 196 | parallelism-level: 1 |
| 197 | |
| 198 | model-loader: |
danielhanrahan | fc00c0c | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 199 | maximum-attempt-count: 20 |
| 200 | |
| 201 | servlet: |
| 202 | multipart: |
| 203 | enabled: true |
| 204 | max-file-size: 100MB |
| 205 | max-request-size: 100MB |
| 206 | |
| 207 | jackson: |
| 208 | default-property-inclusion: NON_NULL |
| 209 | serialization: |
| 210 | FAIL_ON_EMPTY_BEANS: false |
| 211 | |
| 212 | sql: |
| 213 | init: |
| 214 | mode: ALWAYS |
| 215 | |
danielhanrahan | 741fafc | 2024-02-13 11:12:29 +0000 | [diff] [blame] | 216 | hazelcast: |
| 217 | cluster-name: cps-and-ncmp-test-caches |
| 218 | mode: |
| 219 | kubernetes: |
| 220 | enabled: false |
| 221 | service-name: cps-and-ncmp-service |
david.mcweeney | 2293486 | 2024-04-25 14:37:33 +0100 | [diff] [blame] | 222 | |
| 223 | cps: |
| 224 | tracing: |
| 225 | enabled: false |
| 226 | exporter: |
| 227 | protocol: grpc |