From 3e2977e01dc47fe4e26953b63413df4e4d9bd051 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Mon, 7 Feb 2022 08:52:04 +0000 Subject: Fix spring datasource configuration for pap container Issue-ID: POLICY-3914 Change-Id: Iddb985161ecd51ad3f2b17ae6ac13d2825b67bec Signed-off-by: adheli.tavares --- csit/config/pap/papParameters.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'csit') 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: -- cgit 1.2.3-korg