Fix impossible to drag and drop same service twice into the composition 34/99134/3
authorSatoshi Fujii <fujii-satoshi@jp.fujitsu.com>
Wed, 4 Dec 2019 07:15:41 +0000 (16:15 +0900)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Thu, 5 Dec 2019 10:03:59 +0000 (10:03 +0000)
commit15fabcb9618c6acd6fa604e17777df4d494eca1b
tree3678f1bb3ccd6a519acd50ec1a2416c748b243fd
parentee4c4d72ed2118ea44dd5d83e1cf1677b6ebb03c
Fix impossible to drag and drop same service twice into the composition

When a service proxy instance including underscore in its name is added into
the composition, instance ID suffix is not properly calculated and that results
in duplicate key error due to ID conflict.
This change normalizes the name to find existing proxy instances to get suffix
number calculated properly.

Change-Id: I6f2ceb4b9cf020e1523264a99e1347b6caa98965
Issue-ID: SDC-2043
Signed-off-by: Satoshi Fujii <fujii-satoshi@jp.fujitsu.com>
catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaOperationFacade.java
catalog-model/src/test/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaOperationFacadeTest.java