Skip to content

Commit

Permalink
Remove MariaDB support
Browse files Browse the repository at this point in the history
- change configurations to use PostgreSQL as default
- remove unused configurations

Issue-ID: POLICY-5196
Change-Id: I22ce625ff16e94375f5a93b803a71044f2d5f008
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
  • Loading branch information
adheli committed Jan 16, 2025
1 parent ee5eeb3 commit 513561b
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 426 deletions.
65 changes: 30 additions & 35 deletions main/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ spring:
name: policyadmin
password: zb!XztG34
datasource:
url: jdbc:mariadb://mariadb:3306/policyadmin
driverClassName: org.mariadb.jdbc.Driver
url: jdbc:postgresql://postgres:5432/policyadmin
driverClassName: org.postgresql.Driver
username: policy_user
password: policy_user
jpa:
Expand All @@ -22,6 +22,9 @@ server:
port: 6969
servlet:
context-path: /policy/pap/v1
ssl:
enabled: false

pap:
name: PapGroup
topic:
Expand All @@ -38,47 +41,39 @@ pap:
maxWaitMs: 30000
topicParameterGroup:
topicSources:
- topic: ${pap.topic.pdp-pap.name}
servers:
- kafka
topicCommInfrastructure: NOOP
fetchTimeout: 15000
- topic: ${pap.topic.heartbeat.name}
effectiveTopic: ${pap.topic.pdp-pap.name}
consumerGroup: policy-pap
servers:
- kafka
topicCommInfrastructure: NOOP
fetchTimeout: 15000
- topic: ${pap.topic.pdp-pap.name}
servers:
- noop
topicCommInfrastructure: noop
useHttps: false
fetchTimeout: 15000
- topic: ${pap.topic.heartbeat.name}
effectiveTopic: ${pap.topic.pdp-pap.name}
consumerGroup: policy-pap
servers:
- noop
topicCommInfrastructure: noop
useHttps: false
fetchTimeout: 15000
topicSinks:
- topic: ${pap.topic.pdp-pap.name}
servers:
- kafka
topicCommInfrastructure: NOOP
- topic: ${pap.topic.notification.name}
servers:
- kafka
topicCommInfrastructure: NOOP
- topic: ${pap.topic.pdp-pap.name}
servers:
- noop
topicCommInfrastructure: noop
useHttps: false
- topic: ${pap.topic.notification.name}
servers:
- noop
topicCommInfrastructure: noop
useHttps: false
healthCheckRestClientParameters:
- clientName: api
hostname: policy-api
port: 6969
userName: policyadmin
password: zb!XztG34
useHttps: true
useHttps: false
basePath: policy/api/v1/healthcheck
- clientName: distribution
hostname: policy-distribution
port: 6969
userName: healthcheck
password: zb!XztG34
useHttps: true
basePath: healthcheck
- clientName: kafka
hostname: kafka
port: 3905
useHttps: true
basePath: topics

management:
endpoints:
Expand Down
5 changes: 0 additions & 5 deletions main/src/test/resources/application-test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,3 @@ pap:
password: zb!XztG34
useHttps: true
basePath: healthcheck
- clientName: kafka
hostname: kafka
port: 3905
useHttps: true
basePath: topics
2 changes: 1 addition & 1 deletion main/src/test/resources/application-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ spring:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
open-in-view: false
open-in-view: false
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ spring:
converters:
preferred-json-mapper: gson
datasource:
url: jdbc:mariadb://mariadb:3306/policyadmin
driverClassName: org.mariadb.jdbc.Driver
url: jdbc:postgresql://postgres:5432/policyadmin
driverClassName: org.postgresql.Driver
username: policy_user
password: policy_user
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.MariaDB103Dialect
hibernate:
ddl-auto: none
naming:
Expand All @@ -23,11 +20,17 @@ spring:

server:
port: 6969
servlet:
context-path: /policy/pap/v1
ssl:
enabled: false

pap:
name: PapGroup
topic:
pdp-pap.name: policy-pdp-pap
notification.name: policy-notification
heartbeat.name: policy-heartbeat
pdpParameters:
heartBeatMs: 120000
updateParameters:
Expand All @@ -38,52 +41,46 @@ pap:
maxWaitMs: 30000
topicParameterGroup:
topicSources:
- topic: POLICY-PDP-PAP
servers:
- kafka
topicCommInfrastructure: NOOP
fetchTimeout: 15000
- topic: POLICY-HEARTBEAT
effectiveTopic: POLICY-PDP-PAP
consumerGroup: policy-pap
servers:
- kafka
topicCommInfrastructure: NOOP
fetchTimeout: 15000
- topic: ${pap.topic.pdp-pap.name}
servers:
- kafka:9092
topicCommInfrastructure: kafka
useHttps: false
fetchTimeout: 15000
- topic: ${pap.topic.heartbeat.name}
effectiveTopic: ${pap.topic.pdp-pap.name}
consumerGroup: policy-pap
servers:
- kafka:9092
topicCommInfrastructure: kafka
useHttps: false
fetchTimeout: 15000
topicSinks:
- topic: POLICY-PDP-PAP
servers:
- kafka
topicCommInfrastructure: NOOP
- topic: POLICY-NOTIFICATION
servers:
- kafka
topicCommInfrastructure: NOOP
- topic: ${pap.topic.pdp-pap.name}
servers:
- kafka:9092
topicCommInfrastructure: kafka
useHttps: false
- topic: ${pap.topic.notification.name}
servers:
- kafka:9092
topicCommInfrastructure: kafka
useHttps: false
healthCheckRestClientParameters:
- clientName: api
hostname: policy-api
port: 6969
userName: policyadmin
password: zb!XztG34
useHttps: true
basePath: policy/api/v1/healthcheck
- clientName: distribution
hostname: policy-distribution
port: 6969
userName: healthcheck
password: zb!XztG34
useHttps: true
basePath: healthcheck
- clientName: kafka
hostname: kafka
port: 3905
useHttps: true
basePath: topics
- clientName: api
hostname: policy-api
port: 6969
userName: policyadmin
password: zb!XztG34
useHttps: false
basePath: policy/api/v1/healthcheck

management:
endpoints:
web:
base-path: /
exposure:
include: health, metrics, prometheus
path-mapping.prometheus: metrics
path-mapping:
-metrics: plain-metrics
-prometheus: metrics

This file was deleted.

This file was deleted.

38 changes: 0 additions & 38 deletions testsuites/stability/src/main/resources/papsetup/setup_pap.sh

This file was deleted.

This file was deleted.

Loading

0 comments on commit 513561b

Please sign in to comment.