Fix import policy issues 99/131599/5
authorMichaelMorris <michael.morris@est.tech>
Wed, 19 Oct 2022 17:37:01 +0000 (18:37 +0100)
committerVasyl Razinkov <vasyl.razinkov@est.tech>
Wed, 26 Oct 2022 09:23:55 +0000 (09:23 +0000)
commit8220d912803cecb22af967173e228867569450c4
tree9f0c9b4e9aa4628309c9e061bde46ed756350514
parent15c891ef4198a94ebcdf888a6d09e6f5817ae225
Fix import policy issues

The following issues are addressed:
When a service is imported containing polices, a new name for the policy is generated instead of using the name from the imported service
When a service is imported containing policies with a string value set for a property of a policy, then the value is created in the new service surrounded with quotes
NPE when service imported with no instances
NPE when service imported with instances with no requirements

Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-4224
Change-Id: I8403c0564796a045816ae28e52961688ca7804db
catalog-be/src/main/java/org/openecomp/sdc/be/components/csar/YamlTemplateParsingHandler.java
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PolicyBusinessLogic.java
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ServiceImportBusinessLogic.java
catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/TopologyTemplateOperation.java