Add moduleSetTag when getting a CM handle 86/137286/3
authordanielhanrahan <daniel.hanrahan@est.tech>
Mon, 19 Feb 2024 18:39:37 +0000 (18:39 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Wed, 21 Feb 2024 10:55:18 +0000 (10:55 +0000)
commitcbd20a33ea2414a02a3a3fba79ddc734f51e77ac
tree7172b374595478abc663019d181f395d5dceff88
parentb82d45a6d32a24e6f59f0d9730a8bfe613c991ae
Add moduleSetTag when getting a CM handle

Test changes:
- Check moduleSetTag (and alternateId) in unit test of get CM handle.
- Verify moduleSetTag is updated in tests of CM handle upgrade.

Code changes:
- Set moduleSetTag when converting a YangModelCmHandle to
  NcmpServiceCmHandle.
- Set moduleSetTag in YangModelCmHandle copy constructor.
- Minor refactor using StringUtils::isBlank.

Issue-ID: CPS-2027
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I6a9a92aa58d15c6ecf5a6bb21aa5c9d6ec8dc817
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/utils/YangDataConverter.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/yangmodels/YangModelCmHandle.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImplSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/NcmpCmHandleCreateSpec.groovy
integration-test/src/test/groovy/org/onap/cps/integration/functional/NcmpCmHandleUpgradeSpec.groovy