Use generated PAP interface for Swagger
[policy/pap.git] / main / src / test / resources / application-test.yaml
1 spring:
2   security:
3     user:
4       name: policyadmin
5       password: zb!XztG34
6   http:
7     converters:
8       preferred-json-mapper: gson
9   datasource:
10     url: jdbc:h2:mem:testdb
11     driverClassName: org.h2.Driver
12   jpa:
13 #    show-sql: true
14     properties:
15       hibernate:
16         dialect: org.hibernate.dialect.H2Dialect
17 #        format_sql: true
18     hibernate:
19       ddl-auto: create-drop
20       naming:
21         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
22         implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
23
24 server:
25   port: 6969
26   servlet:
27     context-path: /policy/pap/v1
28 pap:
29   name: "PapGroup"
30   aaf: false
31   topic:
32     pdp-pap.name: POLICY-PDP-PAP
33     notification.name: POLICY-NOTIFICATION
34     heartbeat.name: POLICY-HEARTBEAT
35   pdpParameters:
36     updateParameters:
37       maxRetryCount: 1
38       maxWaitMs: 3000
39     stateChangeParameters:
40       maxRetryCount: 1
41       maxWaitMs: 3000
42     heartBeatMs: 6000
43     maxMessageAgeMs: 20000
44   savePdpStatisticsInDb: true
45   topicParameterGroup:
46     topicSources:
47     - topic: ${pap.topic.pdp-pap.name}
48       servers:
49       - message-router
50       topicCommInfrastructure: noop
51     - topic: ${pap.topic.heartbeat.name}
52       effectiveTopic: ${pap.topic.pdp-pap.name}
53       consumerGroup: policy-pap
54       servers:
55       - message-router
56       topicCommInfrastructure: noop
57     topicSinks:
58     - topic: ${pap.topic.pdp-pap.name}
59       servers:
60       - message-router
61       topicCommInfrastructure: noop
62     - topic: ${pap.topic.notification.name}
63       servers:
64       - message-router
65       topicCommInfrastructure: noop
66   healthCheckRestClientParameters:
67   - clientName: api
68     hostname: policy-api
69     port: 6969
70     userName: policyadmin
71     password: zb!XztG34
72     useHttps: true
73     basePath: policy/api/v1/healthcheck
74   - clientName: distribution
75     hostname: policy-distribution
76     port: 6969
77     userName: healthcheck
78     password: zb!XztG34
79     useHttps: true
80     basePath: healthcheck
81   - clientName: dmaap
82     hostname: message-router
83     port: 3905
84     useHttps: true
85     basePath: topics
86
87 management:
88   metrics:
89     export:
90       prometheus:
91         enabled: true
92   endpoints:
93     web:
94       base-path: /
95       exposure:
96         include: health, metrics, prometheus
97       path-mapping.metrics: plain-metrics
98       path-mapping.prometheus: metrics