summaryrefslogtreecommitdiffstats
path: root/main/src/test/resources
diff options
context:
space:
mode:
authorwaynedunican <wayne.dunican@est.tech>2022-01-05 14:56:44 +0000
committerWayne Dunican <wayne.dunican@est.tech>2022-01-27 07:41:05 +0000
commit518e56befaeb44df719c2d1db7daf7b0de6f3c1d (patch)
tree0a8a1974a1e0319986d33513c57dfa5d5717ba04 /main/src/test/resources
parent3878aab0518225fcebedfddb1b4aa9c468773dba (diff)
Remove references to MariaDB from resource files
Issue-ID: POLICY-2086 Change-Id: I891feb05d2e964ae8d4454d30672ffc77c1da555 Signed-off-by: Wayne Dunican <wayne.dunican@est.tech>
Diffstat (limited to 'main/src/test/resources')
-rw-r--r--main/src/test/resources/META-INF/persistence.xml3
-rw-r--r--main/src/test/resources/parameters/PapConfigParameters_Postgres.json64
2 files changed, 66 insertions, 1 deletions
diff --git a/main/src/test/resources/META-INF/persistence.xml b/main/src/test/resources/META-INF/persistence.xml
index 21a3a8b7..845118df 100644
--- a/main/src/test/resources/META-INF/persistence.xml
+++ b/main/src/test/resources/META-INF/persistence.xml
@@ -3,6 +3,7 @@
============LICENSE_START=======================================================
Copyright (C) 2019-2021 Nordix Foundation.
Modifications Copyright (C) 2021 AT&T Intellectual Property.
+ Modification Copyright 2022. Nordix Foundation.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -65,7 +66,7 @@
</properties>
</persistence-unit>
- <persistence-unit name="PolicyMariaDb" transaction-type="RESOURCE_LOCAL">
+ <persistence-unit name="PolicyDb" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>org.onap.policy.models.dao.converters.CDataConditioner</class>
diff --git a/main/src/test/resources/parameters/PapConfigParameters_Postgres.json b/main/src/test/resources/parameters/PapConfigParameters_Postgres.json
new file mode 100644
index 00000000..46d25b10
--- /dev/null
+++ b/main/src/test/resources/parameters/PapConfigParameters_Postgres.json
@@ -0,0 +1,64 @@
+{
+ "name": "PapGroup",
+ "restServerParameters": {
+ "host": "0.0.0.0",
+ "port": 6969,
+ "userName": "healthcheck",
+ "password": "zb!XztG34",
+ "https": false
+ },
+ "pdpParameters": {
+ "heartBeatMs": 60000,
+ "updateParameters": {
+ "maxRetryCount": 1,
+ "maxWaitMs": 30000
+ },
+ "stateChangeParameters": {
+ "maxRetryCount": 1,
+ "maxWaitMs": 30000
+ }
+ },
+ "databaseProviderParameters": {
+ "name": "PolicyProviderParameterGroup",
+ "implementation": "org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl",
+ "databaseDriver": "org.postgresql.Driver",
+ "databaseUrl": "jdbc:postgresql://localhost:5432/policyadmin",
+ "databaseUser": "policy_user",
+ "databasePassword": "policy_user",
+ "persistenceUnit": "PolicyDb"
+ },
+ "topicParameterGroup": {
+ "topicSources" : [{
+ "topic" : "POLICY-PDP-PAP",
+ "servers" : [ "localhost:3904" ],
+ "topicCommInfrastructure" : "dmaap"
+ }],
+ "topicSinks" : [{
+ "topic" : "POLICY-PDP-PAP",
+ "servers" : [ "localhost:3904" ],
+ "topicCommInfrastructure" : "dmaap"
+ },{
+ "topic" : "POLICY-NOTIFICATION",
+ "servers" : [ "localhost:3904" ],
+ "topicCommInfrastructure" : "dmaap"
+ }]
+ },
+ "healthCheckRestClientParameters":[{
+ "clientName": "api",
+ "hostname": "policy-api",
+ "port": 6968,
+ "userName": "healthcheck",
+ "password": "zb!XztG34",
+ "useHttps": false,
+ "basePath": "policy/api/v1/healthcheck"
+ },
+ {
+ "clientName": "distribution",
+ "hostname": "policy-distribution",
+ "port": 6970,
+ "userName": "healthcheck",
+ "password": "zb!XztG34",
+ "useHttps": false,
+ "basePath": "healthcheck"
+ }]
+}