aboutsummaryrefslogtreecommitdiffstats
path: root/csit/config
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2022-02-07 08:52:04 +0000
committerAdheli Tavares <adheli.tavares@est.tech>2022-02-07 11:56:56 +0000
commit3e2977e01dc47fe4e26953b63413df4e4d9bd051 (patch)
tree61f5fd36df4a674199e47f0017599ade6461f478 /csit/config
parentd8e4e7bc4a421953ffa90ee9b40aa69cf6d190e4 (diff)
Fix spring datasource configuration for pap container
Issue-ID: POLICY-3914 Change-Id: Iddb985161ecd51ad3f2b17ae6ac13d2825b67bec Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'csit/config')
-rw-r--r--csit/config/pap/papParameters.yaml16
1 files changed, 15 insertions, 1 deletions
diff --git a/csit/config/pap/papParameters.yaml b/csit/config/pap/papParameters.yaml
index fe28bf21..d9187121 100644
--- a/csit/config/pap/papParameters.yaml
+++ b/csit/config/pap/papParameters.yaml
@@ -6,6 +6,20 @@ spring:
http:
converters:
preferred-json-mapper: gson
+ datasource:
+ url: jdbc:mariadb://mariadb:3306/policyadmin
+ driverClassName: org.mariadb.jdbc.Driver
+ username: policy_user
+ password: policy_user
+ jpa:
+ properties:
+ hibernate:
+ dialect: org.hibernate.dialect.MySQL5InnoDBDialect
+ hibernate:
+ ddl-auto: none
+ naming:
+ physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
+ implicit-strategy: org.onap.policy.pap.main.CustomImplicitNamingStrategy
server:
port: 6969
@@ -29,7 +43,7 @@ pap:
databaseUrl: jdbc:mariadb://mariadb:3306/policyadmin
databaseUser: policy_user
databasePassword: policy_user
- persistenceUnit: PolicyMariaDb
+ persistenceUnit: PolicyDb
savePdpStatisticsInDb: true
topicParameterGroup:
topicSources: