Fix swagger and improve exception handling
[policy/pap.git] / main / src / test / resources / config / application.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     properties:
14       hibernate:
15         dialect: org.hibernate.dialect.H2Dialect
16     hibernate:
17       ddl-auto: update
18       naming:
19         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
20         implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
21
22 server:
23   port: 6969
24
25 pap:
26   name: "PapGroup"
27   aaf: false
28   pdpParameters:
29     updateParameters:
30       maxRetryCount: 1
31       maxWaitMs: 3000
32     stateChangeParameters:
33       maxRetryCount: 1
34       maxWaitMs: 3000
35     heartBeatMs: 6000
36     maxMessageAgeMs: 20000
37   savePdpStatisticsInDb: true
38   topicParameterGroup:
39     topicSources:
40     - topic: POLICY-PDP-PAP
41       servers:
42       - message-router
43       topicCommInfrastructure: noop
44     - topic: POLICY-HEARTBEAT
45       effectiveTopic: POLICY-PDP-PAP
46       consumerGroup: policy-pap
47       servers:
48       - message-router
49       topicCommInfrastructure: noop
50     topicSinks:
51     - topic: POLICY-PDP-PAP
52       servers:
53       - message-router
54       topicCommInfrastructure: noop
55     - topic: POLICY-NOTIFICATION
56       servers:
57       - message-router
58       topicCommInfrastructure: noop
59   healthCheckRestClientParameters:
60   - clientName: api
61     hostname: policy-api
62     port: 6969
63     userName: policyadmin
64     password: zb!XztG34
65     useHttps: true
66     basePath: policy/api/v1/healthcheck
67   - clientName: distribution
68     hostname: policy-distribution
69     port: 6969
70     userName: healthcheck
71     password: zb!XztG34
72     useHttps: true
73     basePath: healthcheck
74   - clientName: dmaap
75     hostname: message-router
76     port: 3905
77     useHttps: true
78     basePath: topics
79
80 management:
81   endpoints:
82     web:
83       base-path: /
84       exposure:
85         include: health, metrics, prometheus
86       path-mapping.prometheus: metrics