Fix the algorithm for device trust level 98/136698/4
authorhalil.cakal <halil.cakal@est.tech>
Wed, 29 Nov 2023 10:03:29 +0000 (10:03 +0000)
committerhalil.cakal <halil.cakal@est.tech>
Wed, 29 Nov 2023 15:01:13 +0000 (15:01 +0000)
commita36b3f28624a14da75eb5ea1cd0bd677ebce325c
tree2d6cb4d54105b48ab8e7f48dad7476def2a1e59b
parent0afd8642a9195a34a7b3c119496982fefbbda3e9
Fix the algorithm for device trust level

- Add new method to handle device trust level changes
  in trust level manager
- Change algorithm to find effective trust level for
  each use case
- Separate responsibilities of each function
- Change device heartbeat consumer accordingly

Issue-ID: CPS-1910
Change-Id: I228f82955b224dc4ebfd1b305082e06aac6008d2
Signed-off-by: halil.cakal <halil.cakal@est.tech>
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/trustlevel/DeviceHeartbeatConsumer.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/trustlevel/TrustLevelManager.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/trustlevel/dmiavailability/DmiPluginWatchDog.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/trustlevel/DeviceHeartbeatConsumerSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/trustlevel/TrustLevelManagerSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/trustlevel/dmiavailability/DmiPluginWatchDogSpec.groovy