Move PAP database provider to spring boot default
[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.pap.main.CustomImplicitNamingStrategy
21
22 server:
23   port: 6969
24
25 pap:
26   name: "PapGroup"
27   pdpParameters:
28     updateParameters:
29       maxRetryCount: 1
30       maxWaitMs: 3000
31     stateChangeParameters:
32       maxRetryCount: 1
33       maxWaitMs: 3000
34     heartBeatMs: 6000
35     maxMessageAgeMs: 20000
36   savePdpStatisticsInDb: true
37   topicParameterGroup:
38     topicSources:
39     - topic: POLICY-PDP-PAP
40       servers:
41       - message-router
42       topicCommInfrastructure: noop
43     - topic: POLICY-HEARTBEAT
44       effectiveTopic: POLICY-PDP-PAP
45       consumerGroup: policy-pap
46       servers:
47       - message-router
48       topicCommInfrastructure: noop
49     topicSinks:
50     - topic: POLICY-PDP-PAP
51       servers:
52       - message-router
53       topicCommInfrastructure: noop
54     - topic: POLICY-NOTIFICATION
55       servers:
56       - message-router
57       topicCommInfrastructure: noop
58   healthCheckRestClientParameters:
59   - clientName: api
60     hostname: policy-api
61     port: 6969
62     userName: policyadmin
63     password: zb!XztG34
64     useHttps: true
65     basePath: policy/api/v1/healthcheck
66   - clientName: distribution
67     hostname: policy-distribution
68     port: 6969
69     userName: healthcheck
70     password: zb!XztG34
71     useHttps: true
72     basePath: healthcheck
73   - clientName: dmaap
74     hostname: message-router
75     port: 3905
76     useHttps: true
77     basePath: topics
78
79 management:
80   endpoints:
81     web:
82       base-path: /
83       exposure:
84         include: health, metrics, prometheus
85       path-mapping.prometheus: metrics