Composite state transition code change 20/129720/2
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Wed, 29 Jun 2022 11:36:40 +0000 (12:36 +0100)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Thu, 30 Jun 2022 15:08:38 +0000 (16:08 +0100)
commit79dc74fd69086cf9937ed06241fed9a2772b0fba
tree6bb1ff9649db9a28737b3d90918b83a98b6c4a1a
parente1f73e264e2dca1f10c273620653f541c2f25d69
Composite state transition code change

- Code cannge to set datastore to Unsynchronized when state moves from advice to ready
- if resource data is not available or there is any issue while reading
  data from simulator then state will be set to synchronized else remain
  unsynchronized.
- Handle serialization failure on empty bean.

Issue-ID: CPS-1000
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: Ie51a787770da649e00aaefc00341756f92f9fa83
cps-application/src/main/resources/application.yml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/inventory/InventoryPersistence.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/inventory/sync/DataSyncWatchdog.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncWatchdog.java
cps-service/src/test/groovy/org/onap/cps/utils/JsonObjectMapperSpec.groovy