Add exception when DCAE does not return an answer as the CSAR is not
deployed in that case
Issue-ID: CLAMP-291
Change-Id: Ibe2dc96f415e54c4e15b6dd57b214207e5dc22af
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
private CldsModel createFakeCldsModel(CsarHandler csar, BlueprintArtifact blueprintArtifact,
CldsTemplate cldsTemplate, DcaeInventoryResponse dcaeInventoryResponse) throws SdcArtifactInstallerException {
+
+ if (dcaeInventoryResponse == null) {
+ throw new SdcArtifactInstallerException(
+ "DCAE inventory response is NULL, query to DCAE fail to be answered properly, this is required to deploy CSAR properly !!!");
+ }
try {
CldsModel cldsModel = new CldsModel();
cldsModel.setName(buildModelName(csar, blueprintArtifact.getResourceAttached().getResourceInstanceName()));