Fix degradation in (de)registration performance 94/140394/1
authorToineSiebelink <toine.siebelink@est.tech>
Thu, 6 Mar 2025 11:34:08 +0000 (11:34 +0000)
committerToineSiebelink <toine.siebelink@est.tech>
Thu, 6 Mar 2025 15:28:00 +0000 (15:28 +0000)
commite012d12fecc6be54ab386e4fd73be0baed53cf1a
treee4bfa0d7649e24bbdf090e15f53b08f743a541b9
parent1337752d3175309a66a50fe04aa9b289a33e4290
Fix degradation in (de)registration performance

- Disabled CPS notifications by default (in yaml and java)
- minor refactoring of related production code
- Improved unit test regarding notifications being enabled/disabled to get 100% coverage
- Removed now redundant test for enable/disable scenarios (2 replaced by 1 better test)

Issue-ID: CPS-2684
Change-Id: If43cd9c06c1655e1d49c70c55830c4e3a579a6d4
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-application/src/main/resources/application.yml
cps-service/src/main/java/org/onap/cps/events/CpsDataUpdateEventsService.java
cps-service/src/main/java/org/onap/cps/impl/CpsNotificationServiceImpl.java
cps-service/src/test/groovy/org/onap/cps/events/CpsDataUpdateEventsServiceSpec.groovy
cps-service/src/test/groovy/org/onap/cps/impl/CpsNotificationServiceImplSpec.groovy