BugFix: 500 Server error when upgrade and service restart with data in DB 32/139032/1
authorhalil.cakal <halil.cakal@est.tech>
Wed, 25 Sep 2024 10:07:01 +0000 (11:07 +0100)
committerhalil.cakal <halil.cakal@est.tech>
Wed, 25 Sep 2024 14:46:38 +0000 (15:46 +0100)
commitfe846d2dd21d57889356943762f2006b2122427c
treea50cb76c8d340f21a5b663e00971f8da1607c6b2
parent2dbf14888235bf6140fe2e041e8681e15a725314
BugFix: 500 Server error when upgrade and service restart with data in DB

- return NONE for get effective trust level api if the trustlevel caches
  empty (restart case)

Issue-ID: CPS-2409

Change-Id: I72a755ca6ba5d4a78f5458a235c0d1f43aaa8d53
Signed-off-by: halil.cakal <halil.cakal@est.tech>
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/trustlevel/TrustLevelManager.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/trustlevel/TrustLevelManagerSpec.groovy