Fix to keep yang resource cache in sync 61/127061/5
authorRenu Kumari <renu.kumari@bell.ca>
Thu, 10 Feb 2022 14:31:17 +0000 (09:31 -0500)
committerRenu Kumari <renu.kumari@bell.ca>
Tue, 15 Feb 2022 17:56:08 +0000 (12:56 -0500)
commit21fa4f207e7d36befc49a3f4926dc4f52678a45e
tree98d2edc01d29622c6c34256529c866c17d5a4b7e
parentf7cb11a5d53d4964c236a6ecb2e2f4264f2437fd
Fix to keep yang resource cache in sync

- Removed schemaset from cache when schemaset is deleted
- Added separate test cases for yang resource cache

Issue-ID: CPS-864
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: Ie1f9978406de1c92b513549216873cba4a98cdd7
cps-service/src/main/java/org/onap/cps/api/impl/CpsModuleServiceImpl.java
cps-service/src/main/java/org/onap/cps/api/impl/YangTextSchemaSourceSetCache.java
cps-service/src/test/groovy/org/onap/cps/api/impl/CpsModuleServiceImplSpec.groovy
cps-service/src/test/groovy/org/onap/cps/api/impl/YangTextSchemaSourceSetCacheSpec.groovy [new file with mode: 0644]