Fix TOSCA Analyzer - null point exception 15/45415/2
authorshiria <shiri.amichai@amdocs.com>
Tue, 1 May 2018 11:09:41 +0000 (14:09 +0300)
committerAvi Gaffa <avi.gaffa@amdocs.com>
Tue, 1 May 2018 12:39:20 +0000 (12:39 +0000)
commitd74d87cd27afca784a8ed582b6b7015a8a8d243a
tree48d233cb848ecb2060f2c9c3b2805d9d44b4e98a
parent2ef3886c9b0223f4813ac1385318d6f2e600a4a8
Fix TOSCA Analyzer - null point exception

In case there is import to not exist TOSCA file,
exception with relevant error message should be thrown
In getRequirementAssignment, when there is no Requirement,
Optional.Empty is returned

Change-Id: I8aabde177815dec2f69307f6be3c5114c5c8efa3
Issue-ID: SDC-1281
Signed-off-by: shiria <shiri.amichai@amdocs.com>
common/onap-tosca-datatype/src/main/resources/globalTypes/tosca/nodes.yml
openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/errors/ToscaFileNotFoundErrorBuilder.java [new file with mode: 0644]
openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/DataModelUtil.java
openecomp-be/lib/openecomp-tosca-lib/src/main/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImpl.java
openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImplTest.java
openecomp-be/lib/openecomp-tosca-lib/src/test/resources/mock/analyzerService/ServiceTemplateFileNotFoundTest.yaml [new file with mode: 0644]