1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2021 Bell Canada.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
24 base-path: /cps-temporal/api
29 username: ${DB_USERNAME}
30 password: ${DB_PASSWORD}
32 change-log: classpath:/db/changelog/changelog-master.xml
35 hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
36 hibernate.format_sql: true
37 hibernate.generate_statistics: false
39 bootstrap-servers: localhost:9092
43 group-id: cps-temporal-group
44 # Configures the Spring Kafka ErrorHandlingDeserializer that delegates to the 'real' deserializers
45 # See https://docs.spring.io/spring-kafka/docs/2.5.11.RELEASE/reference/html/#error-handling-deserializer
46 # and https://www.confluent.io/blog/spring-kafka-can-your-kafka-consumers-handle-a-poison-pill/
47 key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
48 value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
49 auto-offset-reset: earliest
51 spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
52 spring.deserializer.value.delegate.class: org.springframework.kafka.support.serializer.JsonDeserializer
53 spring.json.value.default.type: org.onap.cps.event.model.CpsDataUpdatedEvent
54 # Following is not cps-temporal configuration. It is configuration for the producer used for integration tests
56 key-serializer: org.apache.kafka.common.serialization.StringSerializer
57 value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
62 topic: cps.cfg-state-events