diff options
author | andre.schmid <andre.schmid@est.tech> | 2021-08-31 10:04:26 +0100 |
---|---|---|
committer | andre.schmid <andre.schmid@est.tech> | 2021-08-31 10:20:06 +0100 |
commit | 38c6faa738abe6e0acdd24df2364d725d36fca40 (patch) | |
tree | 3412c0ee222d60bbc98a997390dbae19d55e3fc9 /catalog-dao/src/test/java/org | |
parent | a1cdcda28701f603cf95f591ba447bd723273622 (diff) |
Fix additional types import file generation
The additional_type_definitions.yaml is missing types entries and
header.
Also, the solution is not considering the types entries, i.e.
'data_types:', 'policy_types:', etc., when replacing types and
generating the new file, which renders the solution broken.
This change aims to fix the related problems.
Change-Id: I412683b49966c09dd067ecbf8a1d778155b23fa6
Issue-ID: SDC-3703
Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-dao/src/test/java/org')
-rw-r--r-- | catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDaoTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDaoTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDaoTest.java index cddf3a2708..a43e153f7b 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDaoTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/ToscaModelImportCassandraDaoTest.java @@ -95,7 +95,7 @@ class ToscaModelImportCassandraDaoTest { when(findAllByModelResult.all()).thenReturn(List.of(toscaImportByModel1, toscaImportByModelDatabase1)); when(toscaImportByModelAccessorMock.findAllByModel(modelId)).thenReturn(findAllByModelResult); - toscaModelImportCassandraDao.importAll(modelId, importModelList); + toscaModelImportCassandraDao.replaceImports(modelId, importModelList); verify(toscaImportByModelMapperMock).save(toscaImportByModel1); verify(toscaImportByModelMapperMock).save(toscaImportByModel2); |