if (parent == null) {
parentHeatStructureTree = new HeatStructureTree();
fileTreeRef.put(SdcCommon.PARENT, parentHeatStructureTree);
+ fileTreeRef.put(SdcCommon.MANIFEST_NAME, parentHeatStructureTree);
} else {
parentHeatStructureTree = fileTreeRef.get(parent);
}
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "DPA3_New_VNF_TSBGv_base.yaml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "DPA3_New_VNF_TSBGv_base.yaml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "DPA3_New_VNF_TSBGv_base.yaml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "DPA3_New_VNF_TSBGv_base.yaml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "DPA3_New_VNF_TSBGv_base.yaml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT"
},
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-nimbus-pcm_v0.4.yaml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
"version": "2013-05-23",
"data": [
{
+ "isBase": true,
"file": "hot-mog-0108-bs1271.yml",
"type": "HEAT",
"data": [
return;
}
- Set<String> baseFiles = validateManifest(manifestContent, globalContext);
+ Set<String> baseFiles = validateManifest(manifestContent, globalContext);
Map<String, FileData.Type> fileTypeMap = ManifestUtil.getFileTypeMap(manifestContent);
globalContext.getFiles().stream()
if (baseFiles == null || baseFiles.isEmpty()) {
globalContext.addMessage(
SdcCommon.MANIFEST_NAME,
- ErrorLevel.WARNING,
+ ErrorLevel.ERROR,
ErrorMessagesFormatBuilder
.getErrorWithParameters(ERROR_CODE_SRG_3,Messages
.MISSIN_BASE_HEAT_FILE.getErrorMessage()));
String baseFileList = getElementListAsString(baseFiles);
globalContext.addMessage(
SdcCommon.MANIFEST_NAME,
- ErrorLevel.WARNING,
+ ErrorLevel.ERROR,
ErrorMessagesFormatBuilder
.getErrorWithParameters(ERROR_CODE_SRG_4,Messages
.MULTI_BASE_HEAT_FILE.getErrorMessage(),
Assert.assertEquals(messages.size(), 1);
Assert.assertEquals(messages.get("MANIFEST.json").getErrorMessageList().size(), 1);
Assert.assertEquals(messages.get("MANIFEST.json").getErrorMessageList().get(0).getMessage(),
- "WARNING: [SRG3]: Missing Base HEAT. Pay attention that without Base HEAT, there will be no shared resources");
+ "ERROR: [SRG3]: Missing Base HEAT. Pay attention that without Base HEAT, there will be no shared resources");
}
@Test
Assert.assertEquals(messages.size(), 1);
Assert.assertEquals(messages.get("MANIFEST.json").getErrorMessageList().size(), 1);
Assert.assertEquals(messages.get("MANIFEST.json").getErrorMessageList().get(0).getMessage(),
- "WARNING: [SRG4]: Multi Base HEAT. Expected only one. Files [second.yaml,first.yaml].");
+ "ERROR: [SRG4]: Multi Base HEAT. Expected only one. Files [second.yaml,first.yaml].");
}
}