Add postgres CSIT tests for Apex-PDP
[policy/docker.git] / compose / config / pap / papParametersPostgres.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:postgresql://postgres:5432/policyadmin
11     driverClassName: org.postgresql.Driver
12     username: policy_user
13     password: policy_user
14   jpa:
15     properties:
16       hibernate:
17         dialect: org.hibernate.dialect.PostgreSQLDialect
18     hibernate:
19       ddl-auto: none
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   ssl:
29     enabled: false
30
31 pap:
32   name: PapGroup
33   aaf: false
34   topic:
35     pdp-pap.name: POLICY-PDP-PAP
36     notification.name: POLICY-NOTIFICATION
37     heartbeat.name: POLICY-HEARTBEAT
38   pdpParameters:
39     heartBeatMs: 120000
40     updateParameters:
41       maxRetryCount: 1
42       maxWaitMs: 30000
43     stateChangeParameters:
44       maxRetryCount: 1
45       maxWaitMs: 30000
46   savePdpStatisticsInDb: true
47   topicParameterGroup:
48     topicSources:
49     - topic: ${pap.topic.pdp-pap.name}
50       servers:
51       - message-router
52       topicCommInfrastructure: dmaap
53       useHttps: false
54       fetchTimeout: 15000
55     - topic: ${pap.topic.heartbeat.name}
56       effectiveTopic: ${pap.topic.pdp-pap.name}
57       consumerGroup: policy-pap
58       servers:
59       - message-router
60       topicCommInfrastructure: dmaap
61       useHttps: false
62       fetchTimeout: 15000
63     topicSinks:
64     - topic: ${pap.topic.pdp-pap.name}
65       servers:
66       - message-router
67       topicCommInfrastructure: dmaap
68       useHttps: false
69     - topic: ${pap.topic.notification.name}
70       servers:
71       - message-router
72       topicCommInfrastructure: dmaap
73       useHttps: false
74   healthCheckRestClientParameters:
75   - clientName: api
76     hostname: policy-api
77     port: 6969
78     userName: policyadmin
79     password: zb!XztG34
80     useHttps: false
81     basePath: policy/api/v1/healthcheck
82
83 management:
84   endpoints:
85     web:
86       base-path: /
87       exposure:
88         include: health, metrics, prometheus
89       path-mapping.metrics: plain-metrics
90       path-mapping.prometheus: metrics