ddc2b45f36acdcf8da6043270bf121aad8a918b2
[cps/ncmp-dmi-plugin.git] / src / test / resources / application.yml
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021-2023 Nordix Foundation
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 rest:
20   api:
21     dmi-base-path: /dmi
22
23 security:
24   permit-uri: /actuator/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
25   auth:
26     username: cpsuser
27     password: cpsr0cks!
28
29 sdnc:
30   baseUrl: http://test
31   topologyId: test-topology
32   auth:
33     username: test
34     password: test
35
36 cps-core:
37   baseUrl: some url for cps
38   dmiRegistrationUrl: some registration url
39   auth:
40     username: some cps core user
41     password: some cps core password
42
43 dmi:
44   service:
45     url: some url for the dmi service
46   avc:
47     subscription-topic: ncmp-dmi-cm-avc-subscription
48     subscription-response-topic: dmi-ncmp-cm-avc-subscription
49
50 spring:
51   application:
52     name: ncmp-dmi-plugin
53   mvc:
54     pathmatch:
55       matching-strategy: ANT_PATH_MATCHER
56   kafka:
57     bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER}
58     security:
59       protocol: PLAINTEXT
60     producer:
61       key-serializer: org.apache.kafka.common.serialization.StringSerializer
62       value-serializer: io.cloudevents.kafka.CloudEventSerializer
63       client-id: ncmp-dmi-plugin
64     consumer:
65       group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group}
66       key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
67       value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
68       properties:
69         spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
70         spring.deserializer.value.delegate.class: io.cloudevents.kafka.CloudEventDeserializer
71         spring.json.use.type.headers: false
72
73 app:
74   ncmp:
75     async:
76       topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
77
78 logging:
79   format: json