Align the hazelcast cluster names 99/134399/2
authormpriyank <priyank.maheshwari@est.tech>
Fri, 28 Apr 2023 14:02:00 +0000 (15:02 +0100)
committermpriyank <priyank.maheshwari@est.tech>
Tue, 2 May 2023 11:09:29 +0000 (12:09 +0100)
commit74cf06f7af65c699187f9e268db58023db2e2a62
treefc9439384f1b5336e337da62f0841c969aded8fc
parent5f964d1910e309502530631bff4d21e5d59f4dc8
Align the hazelcast cluster names

- We need to align the hazelcast cluster names as members of the same
  cluster can join each other. We will still have exclusivity as the
  instance names and configs are different for each distributed object.
- Exposing env variable to override the cluster name depending on the
  env it is run on.
- Modified test cases to validate the cluster names as well

Issue-ID: CPS-1637
Change-Id: Ib0f8c80dc9b2268f976b0c2d3ccd6d64792d4781
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
cps-application/src/main/resources/application.yml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/config/embeddedcache/SynchronizationCacheConfig.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/avc/ForwardedSubscriptionEventCacheConfig.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/config/embeddedcache/SynchronizationCacheConfigSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/event/avc/ForwardedSubscriptionEventCacheConfigSpec.groovy
cps-ncmp-service/src/test/resources/application.yml
cps-service/src/main/java/org/onap/cps/cache/AnchorDataCacheConfig.java
cps-service/src/main/java/org/onap/cps/cache/HazelcastCacheConfig.java
cps-service/src/test/groovy/org/onap/cps/cache/AnchorDataCacheConfigSpec.groovy
cps-service/src/test/resources/application.yml