generating swagger-ui and controller interface using openapi.yml
[cps/cps-temporal.git] / src / test / resources / application.yml
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
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18
19 server:
20     port: 8080
21
22 rest:
23     api:
24         base-path: /cps-temporal/api
25
26 spring:
27     datasource:
28         url: ${DB_URL}
29         username: ${DB_USERNAME}
30         password: ${DB_PASSWORD}
31     liquibase:
32         change-log: classpath:/db/changelog/changelog-master.xml
33     jpa:
34         properties:
35             hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
36             hibernate.format_sql: true
37             hibernate.generate_statistics: false
38     kafka:
39         bootstrap-servers: localhost:9092
40         security:
41             protocol: PLAINTEXT
42         consumer:
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
50             properties:
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
55         producer:
56             key-serializer: org.apache.kafka.common.serialization.StringSerializer
57             value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
58
59 app:
60     listener:
61         data-updated:
62             topic: cps.cfg-state-events