Check to make sure Heat records do not exist. 41/86541/1
authorMerkel, Jeff <jeff.merkel@att.com>
Mon, 29 Apr 2019 14:48:13 +0000 (10:48 -0400)
committerBenjamin, Max (mb388a) <mb388a@us.att.com>
Mon, 29 Apr 2019 14:48:23 +0000 (10:48 -0400)
commit54b6e6ac185b55d89248cd3c55b1d7766ecaf294
treedb2ebf70cd59d431a91936c5df9cc2510c23307f
parentf0559cfb0674061d05859a90be4b6462897be951
Check to make sure Heat records do not exist.

- Replaced index assert statements with stream().
- Updated the UT to retrieve from the service object for the assert
statements.
- Added check to make sure Heat records don't already exist.

Change-Id: Ife02303e7b3f5c7d132fb9c1baebaa3787a18494
Issue-ID: SO-1818
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java
mso-catalog-db/src/main/java/org/onap/so/db/catalog/data/repository/HeatFilesRepository.java [new file with mode: 0644]