Create spring repository layer for PAP
[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   databaseProviderParameters:
37     name: PolicyModelsProviderParameters
38     implementation: org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl
39     databaseDriver: org.h2.Driver
40     databaseUrl: jdbc:h2:mem:testdb0
41     databaseUser: policy
42     databasePassword: UDAxaWNZ
43     persistenceUnit: ToscaConceptTest
44   savePdpStatisticsInDb: true
45   topicParameterGroup:
46     topicSources:
47     - topic: POLICY-PDP-PAP
48       servers:
49       - message-router
50       topicCommInfrastructure: noop
51     - topic: POLICY-HEARTBEAT
52       effectiveTopic: POLICY-PDP-PAP
53       consumerGroup: policy-pap
54       servers:
55       - message-router
56       topicCommInfrastructure: noop
57     topicSinks:
58     - topic: POLICY-PDP-PAP
59       servers:
60       - message-router
61       topicCommInfrastructure: noop
62     - topic: POLICY-NOTIFICATION
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   endpoints:
89     web:
90       base-path: /
91       exposure:
92         include: health, metrics, prometheus
93       path-mapping.prometheus: metrics