From 280f8015d06af1f41a3ef12e8300801c7a5e0d54 Mon Sep 17 00:00:00 2001 From: AviZi Date: Fri, 9 Jun 2017 02:39:56 +0300 Subject: [SDC-29] Amdocs OnBoard 1707 initial commit. Change-Id: Ie4d12a3f574008b792899b368a0902a8b46b5370 Signed-off-by: AviZi --- .../openecomp-sdc-enrichment-core/pom.xml | 52 +- .../pom.xml.versionsBackup | 94 ++ .../EnrichmentArtifactsServiceFactoryImpl.java | 34 - .../EnrichmentArtifactsServiceImpl.java | 61 - .../sdc/enrichment/impl/EnrichmentManagerImpl.java | 38 +- .../enrichment/impl/EnrichmentManagerImplTest.java | 146 +-- .../all/OnlyComponentsST.yaml | 350 ------ .../all/OnlyComponentsST_01.yaml | 350 ------ .../extractServiceComposition/all/VariouseST.yaml | 363 ------ .../all/expectedOutput/OnlyComponentsST.yaml | 550 --------- .../all/expectedOutput/OnlyComponentsST_01.yaml | 550 --------- .../all/expectedOutput/VariouseST.yaml | 363 ------ .../onlyComponents/OnlyComponentsST.yaml | 350 ------ .../onlyComponents/OnlyComponentsST_01.yaml | 350 ------ .../expectedOutput/OnlyComponentsST.yaml | 550 --------- .../expectedOutput/OnlyComponentsST_01.yaml | 550 --------- ...stractSubstituteGlobalTypesServiceTemplate.yaml | 47 - .../CinderVolumeGlobalTypesServiceTemplate.yaml | 176 --- .../CommonGlobalTypesServiceTemplate.yaml | 213 ---- ...ntrailNetworkRuleGlobalTypeServiceTemplate.yaml | 117 -- ...ailVirtualNetworkGlobalTypeServiceTemplate.yaml | 71 -- .../GlobalSubstitutionTypesServiceTemplate.yaml | 93 -- .../NativeTypesServiceTemplateServiceTemplate.yaml | 194 ---- .../NeutronNetGlobalTypesServiceTemplate.yaml | 97 -- .../NeutronPortGlobalTypesServiceTemplate.yaml | 151 --- ...ronSecurityRulesGlobalTypesServiceTemplate.yaml | 116 -- .../NovaServerGlobalTypesServiceTemplate.yaml | 249 ---- .../src/test/resources/logback.xml | 13 + .../ComputeGlobalTypesServiceTemplate.yaml | 1202 ++++++++++++++++++++ .../enrich/expectedOutput/MainServiceTemplate.yaml | 350 ++++++ .../PortGlobalTypesServiceTemplate.yaml | 284 +++++ .../mock/enrich/input/MainServiceTemplate.yaml | 350 ++++++ ...stractSubstituteGlobalTypesServiceTemplate.yaml | 88 ++ .../CinderVolumeGlobalTypesServiceTemplate.yaml | 178 +++ .../CommonGlobalTypesServiceTemplate.yaml | 354 ++++++ .../ComputeGlobalTypesServiceTemplate.yaml | 11 + ...stractSubstituteGlobalTypesServiceTemplate.yaml | 166 +++ .../ContrailComputeGlobalTypesServiceTemplate.yaml | 91 ++ ...ntrailNetworkRuleGlobalTypeServiceTemplate.yaml | 131 +++ .../ContrailPortGlobalTypesServiceTemplate.yaml | 66 ++ ...railV2NetworkRuleGlobalTypeServiceTemplate.yaml | 156 +++ ...lMachineInterfaceGlobalTypeServiceTemplate.yaml | 71 ++ ...lV2VirtualNetworkGlobalTypeServiceTemplate.yaml | 141 +++ ...ailVirtualNetworkGlobalTypeServiceTemplate.yaml | 86 ++ .../GlobalSubstitutionTypesServiceTemplate.yaml | 93 ++ .../NativeTypesServiceTemplateServiceTemplate.yaml | 208 ++++ .../NetworkGlobalTypesServiceTemplate.yaml | 11 + .../NeutronNetGlobalTypesServiceTemplate.yaml | 99 ++ .../NeutronPortGlobalTypesServiceTemplate.yaml | 153 +++ ...ronSecurityRulesGlobalTypesServiceTemplate.yaml | 116 ++ .../NovaServerGlobalTypesServiceTemplate.yaml | 251 ++++ .../PortGlobalTypesServiceTemplate.yaml | 11 + 52 files changed, 4863 insertions(+), 6092 deletions(-) create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/pom.xml.versionsBackup delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/EnrichmentArtifactsServiceFactoryImpl.java delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/enrichmentartifacts/EnrichmentArtifactsServiceImpl.java delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/OnlyComponentsST.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/OnlyComponentsST_01.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/VariouseST.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/OnlyComponentsST.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/OnlyComponentsST_01.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/VariouseST.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/OnlyComponentsST.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/OnlyComponentsST_01.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/expectedOutput/OnlyComponentsST.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/expectedOutput/OnlyComponentsST_01.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/AbstractSubstituteGlobalTypesServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/CinderVolumeGlobalTypesServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/CommonGlobalTypesServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/ContrailNetworkRuleGlobalTypeServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/GlobalSubstitutionTypesServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NativeTypesServiceTemplateServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronNetGlobalTypesServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronPortGlobalTypesServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronSecurityRulesGlobalTypesServiceTemplate.yaml delete mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NovaServerGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/logback.xml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/ComputeGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/MainServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/PortGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/input/MainServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/AbstractSubstituteGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/CinderVolumeGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/CommonGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ComputeGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailComputeGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailNetworkRuleGlobalTypeServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailPortGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/GlobalSubstitutionTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NativeTypesServiceTemplateServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NetworkGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronNetGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronPortGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronSecurityRulesGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NovaServerGlobalTypesServiceTemplate.yaml create mode 100644 openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/PortGlobalTypesServiceTemplate.yaml (limited to 'openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core') diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/pom.xml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/pom.xml index a6970e5a3d..869a6bb6a3 100644 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/pom.xml +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/pom.xml @@ -1,9 +1,10 @@ - 4.0.0 - - + openecomp-sdc-enrichment-core + openecomp-sdc-enrichment-core org.openecomp.sdc @@ -12,23 +13,11 @@ ../.. - openecomp-sdc-enrichment-core - openecomp-sdc-enrichment-core - - - org.slf4j - slf4j-api - 1.7.10 - - - - ch.qos.logback logback-classic - 1.1.2 - + ${logback.version} org.testng @@ -45,11 +34,11 @@ junit junit - RELEASE + ${junit.version} test - org.openecomp.sdc + org.openecomp.core openecomp-utilities-lib ${project.version} @@ -73,12 +62,7 @@ org.mockito mockito-all test - 1.10.19 - - - com.google.guava - guava - 19.0 + ${mockito.all.version} org.openecomp.sdc @@ -86,5 +70,23 @@ ${project.version} test + + org.openecomp.core + openecomp-tosca-lib + ${project.version} + - \ No newline at end of file + + + + org.apache.maven.plugins + maven-surefire-plugin + ${mvn.surefire.version} + + false + true + + + + + diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/pom.xml.versionsBackup b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/pom.xml.versionsBackup new file mode 100644 index 0000000000..d8f63f10e9 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/pom.xml.versionsBackup @@ -0,0 +1,94 @@ + + 4.0.0 + + openecomp-sdc-enrichment-core + openecomp-sdc-enrichment-core + + + + org.openecomp.sdc + openecomp-sdc-lib + 1.0-SNAPSHOT + ../.. + + + + + ch.qos.logback + logback-classic + ${logback.version} + + + + org.testng + testng + test + 6.8.5 + + + snakeyaml + org.yaml + + + + + junit + junit + RELEASE + test + + + org.openecomp.core + openecomp-utilities-lib + ${project.version} + + + org.openecomp.sdc + openecomp-sdc-enrichment-api + ${project.version} + + + org.openecomp.sdc + openecomp-sdc-enrichment-impl + ${project.version} + + + + org.openecomp.sdc + openecomp-sdc-datatypes-lib + ${project.version} + + + org.mockito + mockito-all + test + 1.10.19 + + + org.openecomp.sdc + openecomp-sdc-model-impl + 1.0-SNAPSHOT + test + + + org.openecomp.core + openecomp-tosca-lib + 1.0-SNAPSHOT + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + false + true + + + + + \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/EnrichmentArtifactsServiceFactoryImpl.java b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/EnrichmentArtifactsServiceFactoryImpl.java deleted file mode 100644 index 1075b07a49..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/EnrichmentArtifactsServiceFactoryImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.enrichment; - -import org.openecomp.core.enrichment.EnrichmentArtifactsServiceFactory; -import org.openecomp.core.enrichment.enrichmentartifacts.EnrichmentArtifactsService; -import org.openecomp.sdc.enrichment.enrichmentartifacts.EnrichmentArtifactsServiceImpl; - -public class EnrichmentArtifactsServiceFactoryImpl extends EnrichmentArtifactsServiceFactory { - private static EnrichmentArtifactsService INSTANCE = new EnrichmentArtifactsServiceImpl(); - - @Override - public EnrichmentArtifactsService createInterface() { - return INSTANCE; - } -} diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/enrichmentartifacts/EnrichmentArtifactsServiceImpl.java b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/enrichmentartifacts/EnrichmentArtifactsServiceImpl.java deleted file mode 100644 index 2b7fef1e6b..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/enrichmentartifacts/EnrichmentArtifactsServiceImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -package org.openecomp.sdc.enrichment.enrichmentartifacts; - -import org.openecomp.core.enrichment.enrichmentartifacts.EnrichmentArtifactsService; -import org.openecomp.core.model.dao.EnrichedServiceModelDao; -import org.openecomp.core.model.dao.EnrichedServiceModelDaoFactory; -import org.openecomp.core.model.types.ServiceArtifact; -import org.openecomp.core.model.types.ServiceElement; -import org.openecomp.core.utilities.file.FileContentHandler; -import org.openecomp.sdc.common.utils.AsdcCommon; -import org.openecomp.sdc.tosca.datatypes.ToscaServiceModel; -import org.openecomp.sdc.versioning.dao.types.Version; - -import java.util.List; - -public class EnrichmentArtifactsServiceImpl implements EnrichmentArtifactsService { - EnrichedServiceModelDao enrichedServiceModelDao = - EnrichedServiceModelDaoFactory.getInstance().createInterface(); - - @Override - public FileContentHandler addMibs(String vspId, Version version) { - FileContentHandler externalArtifacts = new FileContentHandler(); - List mibsList = enrichedServiceModelDao.getExternalArtifacts(vspId, version); - addMibsToFileContentHandler(mibsList, externalArtifacts); - - return externalArtifacts; - } - - - private void addMibsToFileContentHandler(List mibsList, - FileContentHandler externalArtifacts) { - for (ServiceArtifact serviceArtifact : mibsList) { - String filename = serviceArtifact.getName(); - externalArtifacts.addFile(filename, serviceArtifact.getContent()); - } - } - - - private boolean isFileArtifact(String filename) { - return !filename.contains(AsdcCommon.HEAT_META) && !filename.contains(AsdcCommon.MANIFEST_NAME); - } -} diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/impl/EnrichmentManagerImpl.java b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/impl/EnrichmentManagerImpl.java index ef29108402..06b157b92c 100644 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/impl/EnrichmentManagerImpl.java +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/main/java/org/openecomp/sdc/enrichment/impl/EnrichmentManagerImpl.java @@ -22,62 +22,62 @@ package org.openecomp.sdc.enrichment.impl; import org.openecomp.core.enrichment.api.EnrichmentManager; import org.openecomp.core.enrichment.types.EntityInfo; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; import org.openecomp.sdc.datatypes.error.ErrorMessage; import org.openecomp.sdc.enrichment.EnrichmentInfo; import org.openecomp.sdc.enrichment.factory.EnricherHandlerFactory; import org.openecomp.sdc.enrichment.inter.Enricher; import org.openecomp.sdc.tosca.datatypes.ToscaServiceModel; import org.openecomp.sdc.versioning.dao.types.Version; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import java.util.HashMap; import java.util.List; import java.util.Map; public class EnrichmentManagerImpl implements EnrichmentManager { - private static Logger logger = LoggerFactory.getLogger(EnrichmentManagerImpl.class); + private static Logger logger = (Logger) LoggerFactory.getLogger(EnrichmentManagerImpl.class); - private EnrichmentInfo input = null; + private EnrichmentInfo data = null; private ToscaServiceModel model; @Override public Map> enrich() { + Map> enrichErrors = new HashMap<>(); List enricherList = EnricherHandlerFactory.getInstance().createInterface().getEnrichers(); for (Enricher enricher : enricherList) { - enricher.setInput(input); + enricher.setData(data); enricher.setModel(model); - enricher.enrich(); + enrichErrors.putAll(enricher.enrich()); } - return null; + return enrichErrors; } @Override - public void addEntityInput(String type, EntityInfo info) { - this.input.addEntityInfo(type, info); + public void addEntityInfo(String entityKey, EntityInfo entityInfo) { + this.data.addEntityInfo(entityKey, entityInfo); } @Override - public void initInput(String key, Version version) { - input = new EnrichmentInfo(); - input.setKey(key); - input.setVersion(version); + public void init(String key, Version version) { + data = new EnrichmentInfo(); + data.setKey(key); + data.setVersion(version); } @Override - public void addModel(ToscaServiceModel model) { - - this.model = model; + public ToscaServiceModel getModel() { + return this.model; } - @Override - public ToscaServiceModel getModel() { - return this.model; + public void setModel(ToscaServiceModel model) { + this.model = model; } diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/java/org/openecomp/sdc/enrichment/impl/EnrichmentManagerImplTest.java b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/java/org/openecomp/sdc/enrichment/impl/EnrichmentManagerImplTest.java index 6bc5a0e864..dfdbaef896 100644 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/java/org/openecomp/sdc/enrichment/impl/EnrichmentManagerImplTest.java +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/java/org/openecomp/sdc/enrichment/impl/EnrichmentManagerImplTest.java @@ -1,30 +1,55 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + package org.openecomp.sdc.enrichment.impl; -import org.openecomp.sdc.enrichment.impl.tosca.ComponentInfo; +import static org.junit.Assert.assertEquals; + +import org.openecomp.core.enrichment.api.EnrichmentManager; +import org.openecomp.core.enrichment.factory.EnrichmentManagerFactory; +import org.openecomp.core.utilities.file.FileUtils; import org.openecomp.sdc.tosca.datatypes.ToscaServiceModel; import org.openecomp.sdc.tosca.datatypes.model.ServiceTemplate; import org.openecomp.sdc.tosca.services.ToscaFileOutputService; import org.openecomp.sdc.tosca.services.impl.ToscaFileOutputServiceCsarImpl; import org.openecomp.sdc.tosca.services.yamlutil.ToscaExtensionYamlUtil; import org.openecomp.sdc.versioning.dao.types.Version; -import org.openecomp.core.enrichment.api.EnrichmentManager; -import org.openecomp.core.enrichment.factory.EnrichmentManagerFactory; - -import org.openecomp.core.enrichment.types.CeilometerInfo; -import org.openecomp.core.enrichment.types.ComponentCeilometerInfo; -import org.openecomp.core.utilities.file.FileUtils; import org.testng.Assert; import org.testng.annotations.Test; -import java.io.*; +import java.io.BufferedInputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; import java.net.URL; import java.nio.file.NotDirectoryException; -import java.util.*; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; -import static org.junit.Assert.assertEquals; - public class EnrichmentManagerImplTest { @@ -88,100 +113,15 @@ public class EnrichmentManagerImplTest { } } -// @Test + @Test public void testEnrichmentManagerImpl() throws Exception { Assert.assertTrue( EnrichmentManagerFactory.getInstance().createInterface() instanceof EnrichmentManagerImpl); } -// @Test - public void testEnrichModel() throws Exception { - ToscaServiceModel toscaServiceModel = - loadToscaServiceModel("/extractServiceComposition/onlyComponents/", - "/extractServiceComposition/toscaGlobalServiceTemplates/", "OnlyComponentsST.yaml"); - EnrichmentManager enrichmentManager = EnrichmentManagerFactory.getInstance().createInterface(); - enrichmentManager.initInput("vsp_enrich", new Version(0, 1)); - enrichmentManager.addModel(toscaServiceModel); - - String[] componentNames = new String[]{"org.openecomp.resource.vfc.nodes.heat.pcrf_psm", - "org.openecomp.resource.vfc.nodes.heat.pcm"}; - ComponentInfo componentInfo = new ComponentInfo(); - - CeilometerInfo ceilometerInfo; - ComponentCeilometerInfo componentCeilometerInfo = new ComponentCeilometerInfo(); - componentCeilometerInfo.setCeilometerInfoList(new ArrayList<>()); - componentInfo.setCeilometerInfo(componentCeilometerInfo); - - for (String componentName : componentNames) { - ceilometerInfo = - getCeilometerInfo("instance", "Gauge", "instance", "compute", "Existence of instance"); - componentInfo.getCeilometerInfo().getCeilometerInfoList().add(ceilometerInfo); - ceilometerInfo = getCeilometerInfo("memory", "Gauge", "MB", "compute", - "Volume of RAM allocated to the instance"); - componentInfo.getCeilometerInfo().getCeilometerInfoList().add(ceilometerInfo); - ceilometerInfo = getCeilometerInfo("cpu", "Cumulative", "ns", "compute", "CPU time used"); - componentInfo.getCeilometerInfo().getCeilometerInfoList().add(ceilometerInfo); - enrichmentManager.addEntityInput(componentName, componentInfo); - } - - enrichmentManager.enrich(); - - File csrFile = getToscaModelAsFile(toscaServiceModel); - compareActualAndExpected(csrFile); - - } - -// @Test - public void testAllEnrichModel() throws Exception { - ToscaServiceModel toscaServiceModel = loadToscaServiceModel("/extractServiceComposition/all/", - "/extractServiceComposition/toscaGlobalServiceTemplates/", "OnlyComponentsST.yaml"); - EnrichmentManager enrichmentManager = EnrichmentManagerFactory.getInstance().createInterface(); - enrichmentManager.initInput("vsp_enrich", new Version(0, 1)); - enrichmentManager.addModel(toscaServiceModel); - - String[] componentNames = new String[]{"org.openecomp.resource.vfc.nodes.heat.pcrf_psm", - "org.openecomp.resource.vfc.nodes.heat.pcm"}; - ComponentInfo componentInfo = new ComponentInfo(); - - CeilometerInfo ceilometerInfo; - ComponentCeilometerInfo componentCeilometerInfo = new ComponentCeilometerInfo(); - componentCeilometerInfo.setCeilometerInfoList(new ArrayList<>()); - componentInfo.setCeilometerInfo(componentCeilometerInfo); - - for (String componentName : componentNames) { - ceilometerInfo = - getCeilometerInfo("instance", "Gauge", "instance", "compute", "Existence of instance"); - componentInfo.getCeilometerInfo().getCeilometerInfoList().add(ceilometerInfo); - ceilometerInfo = getCeilometerInfo("memory", "Gauge", "MB", "compute", - "Volume of RAM allocated to the instance"); - componentInfo.getCeilometerInfo().getCeilometerInfoList().add(ceilometerInfo); - ceilometerInfo = getCeilometerInfo("cpu", "Cumulative", "ns", "compute", "CPU time used"); - componentInfo.getCeilometerInfo().getCeilometerInfoList().add(ceilometerInfo); - enrichmentManager.addEntityInput(componentName, componentInfo); - } - - enrichmentManager.enrich(); - - File csrFile = getToscaModelAsFile(toscaServiceModel); - compareActualAndExpected(csrFile); - - } - - private CeilometerInfo getCeilometerInfo(String name, String type, String unit, String category, - String description) { - CeilometerInfo ceilometerInfo = new CeilometerInfo(); - ceilometerInfo.setName(name); - ceilometerInfo.setType(type); - ceilometerInfo.setUnit(unit); - ceilometerInfo.setCategory(category); - ceilometerInfo.setDescription(description); - return ceilometerInfo; - } - private File getToscaModelAsFile(ToscaServiceModel toscaServiceModel) throws IOException { - URL inputFilesUrl = - EnrichmentManagerImplTest.class.getResource("/extractServiceComposition/onlyComponents"); + URL inputFilesUrl = EnrichmentManagerImplTest.class.getResource("/mock/enrich/input"); String path = inputFilesUrl.getPath(); @@ -198,16 +138,16 @@ public class EnrichmentManagerImplTest { return file; } - protected void compareActualAndExpected(File actualFile) throws IOException { + protected void compareActualAndExpected(File actualFile, String expectedOutputPath) + throws IOException { - URL url = EnrichmentManagerImplTest.class - .getResource("/extractServiceComposition/onlyComponents/expectedOutput"); + URL url = EnrichmentManagerImplTest.class.getResource(expectedOutputPath); Set expectedResultFileNameSet = new HashSet<>(); Map expectedResultMap = new HashMap<>(); String path = url.getPath(); File pathFile = new File(path); File[] files = pathFile.listFiles(); - org.junit.Assert.assertNotNull("manifest files is empty", files); + org.junit.Assert.assertNotNull("model is empty", files); for (File expectedFile : files) { expectedResultFileNameSet.add(expectedFile.getName()); try (FileInputStream input = new FileInputStream(expectedFile)) { @@ -242,4 +182,4 @@ public class EnrichmentManagerImplTest { } -} \ No newline at end of file +} diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/OnlyComponentsST.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/OnlyComponentsST.yaml deleted file mode 100644 index 54f39e4219..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/OnlyComponentsST.yaml +++ /dev/null @@ -1,350 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/OnlyComponentsST_01.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/OnlyComponentsST_01.yaml deleted file mode 100644 index 54f39e4219..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/OnlyComponentsST_01.yaml +++ /dev/null @@ -1,350 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/VariouseST.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/VariouseST.yaml deleted file mode 100644 index 1f39bfb314..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/VariouseST.yaml +++ /dev/null @@ -1,363 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - - jsa_net: - type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net - properties: - shared: true - network_name: - get_input: jsa_net_name - jsa_net1: - type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net - properties: - shared: true - network_name: - get_input: jsa_net_name - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/OnlyComponentsST.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/OnlyComponentsST.yaml deleted file mode 100644 index 9ec1aa2a8d..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/OnlyComponentsST.yaml +++ /dev/null @@ -1,550 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - capabilities: - instance: - type: org.openecomp.capabilities.metric.Ceilometer - description: Existence of instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: instance - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: instance - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - memory: - type: org.openecomp.capabilities.metric.Ceilometer - description: Volume of RAM allocated to the instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: memory - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: MB - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - cpu: - type: org.openecomp.capabilities.metric.Ceilometer - description: CPU time used - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: cpu - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: ns - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Cumulative - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - capabilities: - instance: - type: org.openecomp.capabilities.metric.Ceilometer - description: Existence of instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: instance - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: instance - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - memory: - type: org.openecomp.capabilities.metric.Ceilometer - description: Volume of RAM allocated to the instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: memory - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: MB - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - cpu: - type: org.openecomp.capabilities.metric.Ceilometer - description: CPU time used - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: cpu - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: ns - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Cumulative - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/OnlyComponentsST_01.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/OnlyComponentsST_01.yaml deleted file mode 100644 index 9ec1aa2a8d..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/OnlyComponentsST_01.yaml +++ /dev/null @@ -1,550 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - capabilities: - instance: - type: org.openecomp.capabilities.metric.Ceilometer - description: Existence of instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: instance - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: instance - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - memory: - type: org.openecomp.capabilities.metric.Ceilometer - description: Volume of RAM allocated to the instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: memory - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: MB - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - cpu: - type: org.openecomp.capabilities.metric.Ceilometer - description: CPU time used - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: cpu - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: ns - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Cumulative - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - capabilities: - instance: - type: org.openecomp.capabilities.metric.Ceilometer - description: Existence of instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: instance - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: instance - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - memory: - type: org.openecomp.capabilities.metric.Ceilometer - description: Volume of RAM allocated to the instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: memory - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: MB - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - cpu: - type: org.openecomp.capabilities.metric.Ceilometer - description: CPU time used - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: cpu - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: ns - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Cumulative - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/VariouseST.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/VariouseST.yaml deleted file mode 100644 index 1f39bfb314..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/all/expectedOutput/VariouseST.yaml +++ /dev/null @@ -1,363 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - - jsa_net: - type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net - properties: - shared: true - network_name: - get_input: jsa_net_name - jsa_net1: - type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net - properties: - shared: true - network_name: - get_input: jsa_net_name - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/OnlyComponentsST.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/OnlyComponentsST.yaml deleted file mode 100644 index 54f39e4219..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/OnlyComponentsST.yaml +++ /dev/null @@ -1,350 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/OnlyComponentsST_01.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/OnlyComponentsST_01.yaml deleted file mode 100644 index 54f39e4219..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/OnlyComponentsST_01.yaml +++ /dev/null @@ -1,350 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/expectedOutput/OnlyComponentsST.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/expectedOutput/OnlyComponentsST.yaml deleted file mode 100644 index 9ec1aa2a8d..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/expectedOutput/OnlyComponentsST.yaml +++ /dev/null @@ -1,550 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - capabilities: - instance: - type: org.openecomp.capabilities.metric.Ceilometer - description: Existence of instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: instance - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: instance - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - memory: - type: org.openecomp.capabilities.metric.Ceilometer - description: Volume of RAM allocated to the instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: memory - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: MB - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - cpu: - type: org.openecomp.capabilities.metric.Ceilometer - description: CPU time used - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: cpu - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: ns - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Cumulative - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - capabilities: - instance: - type: org.openecomp.capabilities.metric.Ceilometer - description: Existence of instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: instance - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: instance - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - memory: - type: org.openecomp.capabilities.metric.Ceilometer - description: Volume of RAM allocated to the instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: memory - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: MB - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - cpu: - type: org.openecomp.capabilities.metric.Ceilometer - description: CPU time used - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: cpu - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: ns - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Cumulative - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/expectedOutput/OnlyComponentsST_01.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/expectedOutput/OnlyComponentsST_01.yaml deleted file mode 100644 index 9ec1aa2a8d..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/onlyComponents/expectedOutput/OnlyComponentsST_01.yaml +++ /dev/null @@ -1,550 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: Main -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vfc.nodes.heat.pcrf_psm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - capabilities: - instance: - type: org.openecomp.capabilities.metric.Ceilometer - description: Existence of instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: instance - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: instance - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - memory: - type: org.openecomp.capabilities.metric.Ceilometer - description: Volume of RAM allocated to the instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: memory - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: MB - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - cpu: - type: org.openecomp.capabilities.metric.Ceilometer - description: CPU time used - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: cpu - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: ns - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Cumulative - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - org.openecomp.resource.vfc.nodes.heat.pcm: - derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server - capabilities: - instance: - type: org.openecomp.capabilities.metric.Ceilometer - description: Existence of instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: instance - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: instance - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - memory: - type: org.openecomp.capabilities.metric.Ceilometer - description: Volume of RAM allocated to the instance - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: memory - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: MB - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Gauge - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED - cpu: - type: org.openecomp.capabilities.metric.Ceilometer - description: CPU time used - properties: - name: - type: string - description: Ceilometer metric type name to monitor. (The name ceilometer is using) - required: true - default: cpu - status: SUPPORTED - description: - type: string - description: Description of the metric - required: false - status: SUPPORTED - unit: - type: string - description: Unit of the metric value - required: true - default: ns - status: SUPPORTED - type: - type: string - description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. - required: true - default: Cumulative - status: SUPPORTED - category: - type: string - description: Category of the metric, for an example, compute, disk, network, storage and etc. - required: false - default: compute - status: SUPPORTED -topology_template: - inputs: - Internal2_name: - label: Internal2_name - hidden: false - immutable: false - type: string - description: Internal2_name - Internal1_shared: - label: Internal1_shared - hidden: false - immutable: false - type: string - description: Internal1_shared - FSB1_volume_name: - label: FSB1_volume - hidden: false - immutable: false - type: string - description: FSB1_volume_1 - jsa_cidr: - label: jsa_cidr - hidden: false - immutable: false - type: string - description: jsa_cidr - default: 107.243.7.128/26 - availabilityzone_name: - label: availabilityzone_name - hidden: false - immutable: false - type: string - description: availabilityzone_name - fsb1-name: - label: FSB1_name - hidden: false - immutable: false - type: string - description: FSB1_name - pcm_image_name: - label: pcm_image_name - hidden: false - immutable: false - type: string - description: pcm_image_name - Internal2_external: - label: Internal2_external - hidden: false - immutable: false - type: string - description: Internal2_external - Internal2_forwarding_mode: - label: Internal2_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal2_forwarding_mode - pcrf_psm_flavor_name: - label: pcrf_psm_flavor_name - hidden: false - immutable: false - type: string - description: pcrf_psm_flavor_name - pcrf_psm_image_name: - label: pcrf_psm_image_name - hidden: false - immutable: false - type: string - description: pcrf_psm_image_name - FSB_1_image: - label: MME_FSB1 - hidden: false - immutable: false - type: string - description: MME_FSB1_15B-CP04-r5a01 - volume_size: - label: volume size - hidden: false - immutable: false - type: float - description: my volume size 320GB - fsb1-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal2_shared: - label: Internal2_shared - hidden: false - immutable: false - type: string - description: Internal2_shared - pcm_server_name: - label: pcm_server_name - hidden: false - immutable: false - type: string - description: pcm_server_name - Internal1_net_name: - label: Internal1_net_name - hidden: false - immutable: false - type: string - description: Internal1_net_name - oam_net_name: - label: oam_net_name - hidden: false - immutable: false - type: string - description: oam_net_name - fsb1-flavor: - label: FSB1_flavor - hidden: false - immutable: false - type: string - description: FSB1_flavor - fsb1-Internal2-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - volume_type: - label: volume type - hidden: false - immutable: false - type: string - description: volume type Gold - fsb1-zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - fsb_zone: - label: FSB1_zone - hidden: false - immutable: false - type: string - description: FSB1_zone - security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - jsa_net_name: - label: jsa_net_name - hidden: false - immutable: false - type: string - description: jsa_net_name - default: jsa_log_net_0 - pcrf_psm_server_name: - label: pcrf_psm_server_name - hidden: false - immutable: false - type: string - description: pcrf_psm_server_name - pcm_flavor_name: - label: pcm_flavor_name - hidden: false - immutable: false - type: string - description: pcm_flavor_name - oam_net_id: - label: oam_net_id - hidden: false - immutable: false - type: string - description: oam_net_id - fsb2-Internal1-mac: - label: FSB1_internal_mac - hidden: false - immutable: false - type: string - description: FSB1_internal_mac - Internal1_forwarding_mode: - label: Internal1_forwarding_mode - hidden: false - immutable: false - type: string - description: Internal1_forwarding_mode - pcrf_cps_net_name: - label: pcrf_cps_net_name - hidden: false - immutable: false - type: string - description: pcrf_cps_net_name - cps_net_name: - label: cps_net_name - hidden: false - immutable: false - type: string - description: cps_net_name - pcrf_security_group_name: - hidden: false - immutable: false - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - Internal1_external: - label: Internal1_external - hidden: false - immutable: false - type: string - description: Internal1_external - node_templates: - nova_local_type_pcm1: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcm2: - type: org.openecomp.resource.vfc.nodes.heat.pcm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_local_type_pcrf_psm: - type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm - properties: - flavor: - get_input: pcm_flavor_name - availability_zone: - get_input: availabilityzone_name - image: - get_input: pcm_image_name - config_drive: 'True' - user_data_format: RAW - name: - get_input: pcm_server_name - user_data: UNSUPPORTED_RESOURCE_server_init - nova_global_type1: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - name: - get_input: fsb1-name - nova_global_type2: - type: org.openecomp.resource.vfc.nodes.heat.nova.Server - properties: - flavor: - get_input: fsb1-flavor - availability_zone: - get_input: fsb_zone - metadata: - write_files: - - path: /etc/sysconfig/network-scripts/ifcfg-eth0 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet - params: - $dev: eth0 - $netmask: - get_input: cps_net_mask - $ip: - get_input: cps_net_ip - - path: /etc/sysconfig/network-scripts/ifcfg-eth1 - permissions: '0644' - content: - str_replace: - template: - get_artifact: - - SELF - - nimbus-ethernet-gw - params: - $dev: eth1 - $netmask: - get_input: oam_net_mask - $gateway: - get_input: oam_net_gw - $ip: - get_input: oam_net_ip - name: - get_input: fsb1-name - artifacts: - nimbus-ethernet-gw: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet-gw - nimbus-ethernet: - type: tosca.artifacts.Deployment - file: ../Artifacts/nimbus-ethernet - groups: - ep-jsa_net: - type: org.openecomp.groups.heat.HeatStack - properties: - heat_file: ../Artifacts/ep-jsa_net.yaml - description: | - Version 2.0 02-09-2016 (Authors: John Doe, user PROD) - members: - - nova_local_type_pcm1 - - nova_local_type_pcm2 - - nova_local_type_pcrf_psm - - nova_global_type1 - - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/AbstractSubstituteGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/AbstractSubstituteGlobalTypesServiceTemplate.yaml deleted file mode 100644 index 8813b0abf6..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/AbstractSubstituteGlobalTypesServiceTemplate.yaml +++ /dev/null @@ -1,47 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: AbstractSubstituteGlobalTypes - template_version: 1.0.0 -description: Abstract Substitute Global Types -imports: - common_definitions: - file: CommonGlobalTypesServiceTemplate.yaml -data_types: - org.openecomp.datatypes.heat.substitution.SubstitutionFilter: - derived_from: tosca.datatypes.Root - description: Substitution Filter - properties: - substitute_service_template: - type: string - description: Substitute Service Template - required: true - status: SUPPORTED - index_variable: - type: string - description: Index variable - required: false - default: '%index%' - status: SUPPORTED - constraints: - - min_length: 3 - count: - type: string - description: Count - required: false - default: 1 - status: SUPPORTED - mandatory: - type: boolean - description: Mandatory - required: false - default: true - status: SUPPORTED -node_types: - org.openecomp.resource.abstract.nodes.AbstractSubstitute: - derived_from: tosca.nodes.Root - properties: - service_template_filter: - type: org.openecomp.datatypes.heat.substitution.SubstitutionFilter - description: Substitution Filter - required: true - status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/CinderVolumeGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/CinderVolumeGlobalTypesServiceTemplate.yaml deleted file mode 100644 index 3ef94f22e7..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/CinderVolumeGlobalTypesServiceTemplate.yaml +++ /dev/null @@ -1,176 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: CinderVolumeGlobalTypes - template_version: 1.0.0 -description: Cinder Volume TOSCA Global Types -relationship_types: - org.openecomp.relationships.heat.cinder.VolumeAttachesTo: - derived_from: tosca.relationships.AttachesTo - description: This type represents an attachment relationship for associating volume - properties: - volume_id: - type: string - description: The ID of the volume to be attached - required: true - status: SUPPORTED - location: - type: string - description: The location where the volume is exposed on the instance, mountpoint - required: false - status: SUPPORTED - instance_uuid: - type: string - description: The ID of the server to which the volume attaches - required: true - status: SUPPORTED - attributes: - show: - type: string - description: Detailed information about resource - status: SUPPORTED -node_types: - org.openecomp.resource.vfc.nodes.heat.cinder.Volume: - derived_from: tosca.nodes.BlockStorage - properties: - availability_zone: - type: string - description: The availability zone in which the volume will be created - required: false - status: SUPPORTED - image: - type: string - description: If specified, the name or ID of the image to create the volume from - required: false - status: SUPPORTED - metadata: - type: map - description: Key/value pairs to associate with the volume - required: false - status: SUPPORTED - entry_schema: - type: string - volume_type: - type: string - description: If specified, the type of volume to use, mapping to a specific backend - required: false - status: SUPPORTED - description: - type: string - description: A description of the volume - required: false - status: SUPPORTED - device_type: - type: string - description: Device type - required: false - status: SUPPORTED - constraints: - - valid_values: - - cdrom - - disk - disk_bus: - type: string - description: 'Bus of the device: hypervisor driver chooses a suitable default - if omitted' - required: false - status: SUPPORTED - constraints: - - valid_values: - - ide - - lame_bus - - scsi - - usb - - virtio - backup_id: - type: string - description: If specified, the backup to create the volume from - required: false - status: SUPPORTED - source_volid: - type: string - description: If specified, the volume to use as source - required: false - status: SUPPORTED - boot_index: - type: integer - description: Integer used for ordering the boot disks - required: false - status: SUPPORTED - size: - type: scalar-unit.size - description: The requested storage size (default unit is MB) - required: false - status: SUPPORTED - constraints: - - greater_or_equal: 1 GB - read_only: - type: boolean - description: Enables or disables read-only access mode of volume - required: false - status: SUPPORTED - name: - type: string - description: A name used to distinguish the volume - required: false - status: SUPPORTED - scheduler_hints: - type: map - description: Arbitrary key-value pairs specified by the client to help the Cinder scheduler creating a volume - required: false - status: SUPPORTED - entry_schema: - type: string - swap_size: - type: scalar-unit.size - description: The size of the swap, in MB - required: false - status: SUPPORTED - delete_on_termination: - type: boolean - description: Indicate whether the volume should be deleted when the server is terminated - required: false - status: SUPPORTED - multiattach: - type: boolean - description: Whether allow the volume to be attached more than once - required: false - status: SUPPORTED - attributes: - display_description: - type: string - description: Description of the volume - status: SUPPORTED - attachments: - type: string - description: The list of attachments of the volume - status: SUPPORTED - entry_schema: - type: string - encrypted: - type: boolean - description: Boolean indicating if the volume is encrypted or not - status: SUPPORTED - show: - type: string - description: Detailed information about resource - status: SUPPORTED - created_at: - type: timestamp - description: The timestamp indicating volume creation - status: SUPPORTED - display_name: - type: string - description: Name of the volume - status: SUPPORTED - metadata_values: - type: map - description: Key/value pairs associated with the volume in raw dict form - status: SUPPORTED - bootable: - type: boolean - description: Boolean indicating if the volume can be booted or not - status: SUPPORTED - status: - type: string - description: The current status of the volume - status: SUPPORTED diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/CommonGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/CommonGlobalTypesServiceTemplate.yaml deleted file mode 100644 index 3388d5a89b..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/CommonGlobalTypesServiceTemplate.yaml +++ /dev/null @@ -1,213 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: CommonGlobalTypes - template_version: 1.0.0 -description: TOSCA Global Types -imports: - NativeTypesServiceTemplate: - file: NativeTypesServiceTemplateServiceTemplate.yaml -data_types: - org.openecomp.datatypes.heat.network.AddressPair: - derived_from: tosca.datatypes.Root - description: MAC/IP address pairs - properties: - mac_address: - type: string - description: MAC address - required: false - status: SUPPORTED - ip_address: - type: string - description: IP address - required: false - status: SUPPORTED - org.openecomp.datatypes.heat.network.subnet.HostRoute: - derived_from: tosca.datatypes.Root - description: Host route info for the subnet - properties: - destination: - type: string - description: The destination for static route - required: false - status: SUPPORTED - nexthop: - type: string - description: The next hop for the destination - required: false - status: SUPPORTED - org.openecomp.datatypes.heat.network.neutron.Subnet: - derived_from: tosca.datatypes.Root - description: A subnet represents an IP address block that can be used for assigning IP addresses to virtual instances - properties: - tenant_id: - type: string - description: The ID of the tenant who owns the network - required: false - status: SUPPORTED - enable_dhcp: - type: boolean - description: Set to true if DHCP is enabled and false if DHCP is disabled - required: false - default: true - status: SUPPORTED - ipv6_address_mode: - type: string - description: IPv6 address mode - required: false - status: SUPPORTED - constraints: - - valid_values: - - dhcpv6-stateful - - dhcpv6-stateless - - slaac - ipv6_ra_mode: - type: string - description: IPv6 RA (Router Advertisement) mode - required: false - status: SUPPORTED - constraints: - - valid_values: - - dhcpv6-stateful - - dhcpv6-stateless - - slaac - value_specs: - type: map - description: Extra parameters to include in the request - required: false - default: { - } - status: SUPPORTED - entry_schema: - type: string - allocation_pools: - type: list - description: The start and end addresses for the allocation pools - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.AllocationPool - subnetpool: - type: string - description: The name or ID of the subnet pool - required: false - status: SUPPORTED - dns_nameservers: - type: list - description: A specified set of DNS name servers to be used - required: false - default: [ - ] - status: SUPPORTED - entry_schema: - type: string - host_routes: - type: list - description: The gateway IP address - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.subnet.HostRoute - ip_version: - type: integer - description: The gateway IP address - required: false - default: 4 - status: SUPPORTED - constraints: - - valid_values: - - '4' - - '6' - name: - type: string - description: The name of the subnet - required: false - status: SUPPORTED - prefixlen: - type: integer - description: Prefix length for subnet allocation from subnet pool - required: false - status: SUPPORTED - constraints: - - greater_or_equal: 0 - cidr: - type: string - description: The CIDR - required: false - status: SUPPORTED - gateway_ip: - type: string - description: The gateway IP address - required: false - status: SUPPORTED - org.openecomp.datatypes.heat.network.AllocationPool: - derived_from: tosca.datatypes.Root - description: The start and end addresses for the allocation pool - properties: - start: - type: string - description: Start address for the allocation pool - required: false - status: SUPPORTED - end: - type: string - description: End address for the allocation pool - required: false - status: SUPPORTED -relationship_types: - org.openecomp.relationships.AttachesTo: - derived_from: tosca.relationships.Root - description: This type represents an attachment relationship -group_types: - org.openecomp.groups.heat.HeatStack: - derived_from: tosca.groups.Root - description: Grouped all heat resources which are in the same heat stack - properties: - heat_file: - type: string - description: Heat file which associate to this group/heat stack - required: true - status: SUPPORTED - description: - type: string - description: Heat file description - required: false - status: SUPPORTED -policy_types: - org.openecomp.policies.placement.Colocate: - derived_from: tosca.policy.placement - description: Keep associated nodes (groups of nodes) based upon affinity value - properties: - name: - type: string - description: The name of the policy - required: false - status: SUPPORTED - affinity: - type: string - description: affinity - required: true - status: SUPPORTED - constraints: - - valid_values: - - host - - region - - compute - org.openecomp.policies.placement.Antilocate: - derived_from: tosca.policy.placement - description: My placement policy for separation based upon container type value - properties: - name: - type: string - description: The name of the policy - required: false - status: SUPPORTED - container_type: - type: string - description: container type - required: false - status: SUPPORTED - constraints: - - valid_values: - - host - - region - - compute diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/ContrailNetworkRuleGlobalTypeServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/ContrailNetworkRuleGlobalTypeServiceTemplate.yaml deleted file mode 100644 index 98317310fa..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/ContrailNetworkRuleGlobalTypeServiceTemplate.yaml +++ /dev/null @@ -1,117 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: ContrailNetworkRuleGlobalType - template_version: 1.0.0 -description: Contrail Network Rule Global Types -imports: - common_definitions: - file: CommonGlobalTypesServiceTemplate.yaml -data_types: - org.openecomp.datatypes.heat.contrail.network.rule.PortPairs: - derived_from: tosca.datatypes.Root - description: source and destination port pairs - properties: - start_port: - type: string - description: Start port - required: false - status: SUPPORTED - end_port: - type: string - description: End port - required: false - status: SUPPORTED - org.openecomp.datatypes.heat.contrail.network.rule.Rule: - derived_from: tosca.datatypes.Root - description: policy rule - properties: - src_ports: - type: list - description: Source ports - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs - protocol: - type: string - description: Protocol - required: false - status: SUPPORTED - dst_addresses: - type: list - description: Destination addresses - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork - apply_service: - type: string - description: Service to apply - required: false - status: SUPPORTED - dst_ports: - type: list - description: Destination ports - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs - src_addresses: - type: list - description: Source addresses - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork - direction: - type: string - description: Direction - required: false - status: SUPPORTED - org.openecomp.datatypes.heat.contrail.network.rule.RuleList: - derived_from: tosca.datatypes.Root - description: list of policy rules - properties: - policy_rule: - type: list - description: Contrail network rule - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.contrail.network.rule.Rule - org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork: - derived_from: tosca.datatypes.Root - description: source and destination addresses - properties: - virtual_network: - type: string - description: Virtual network - required: false - status: SUPPORTED -node_types: - org.openecomp.resource.nodes.heat.network.contrail.NetworkRules: - derived_from: tosca.nodes.Root - properties: - entries: - type: org.openecomp.datatypes.heat.contrail.network.rule.RuleList - description: A symbolic name for this contrail network rule - required: false - status: SUPPORTED - name: - type: string - description: A symbolic name for this contrail network rule - required: false - status: SUPPORTED - attributes: - fq_name: - type: string - description: fq_name - status: SUPPORTED - requirements: - - network: - capability: tosca.capabilities.Attachment - node: tosca.nodes.network.Network - relationship: org.openecomp.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml deleted file mode 100644 index 0927e3dd0e..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml +++ /dev/null @@ -1,71 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: ContrailVirtualNetworkGlobalType - template_version: 1.0.0 -description: Contrail Virtual Network Global Types -imports: - common_definitions: - file: CommonGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork: - derived_from: tosca.nodes.network.Network - properties: - shared: - type: string - description: Is virtual network shared - required: false - status: SUPPORTED - forwarding_mode: - type: string - description: forwarding mode of the virtual network - required: false - status: SUPPORTED - external: - type: string - description: Is virtual network external - required: false - status: SUPPORTED - flood_unknown_unicast: - type: string - description: flood L2 packets on network - required: false - status: SUPPORTED - route_targets: - type: list - description: route targets associated with the virtual network - required: false - status: SUPPORTED - entry_schema: - type: string - subnets: - type: map - description: Network related subnets - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - attributes: - subnets_name: - type: list - description: Subnets name of this network - status: SUPPORTED - entry_schema: - type: string - subnets_show: - type: map - description: Detailed information about each subnet - status: SUPPORTED - entry_schema: - type: string - subnets: - type: map - description: Network related subnets - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/GlobalSubstitutionTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/GlobalSubstitutionTypesServiceTemplate.yaml deleted file mode 100644 index 08c47bc646..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/GlobalSubstitutionTypesServiceTemplate.yaml +++ /dev/null @@ -1,93 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: GlobalSubstitutionTypes -imports: - NeutronPortGlobalTypes: - file: NeutronPortGlobalTypesServiceTemplate.yaml - NeutronNetGlobalTypes: - file: NeutronNetGlobalTypesServiceTemplate.yaml - CommonGlobalTypes: - file: CommonGlobalTypesServiceTemplate.yaml - CinderVolumeGlobalTypes: - file: CinderVolumeGlobalTypesServiceTemplate.yaml - ContrailNetworkRuleGlobalType: - file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml - NeutronSecurityRulesGlobalTypes: - file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml - NovaServerGlobalTypes: - file: NovaServerGlobalTypesServiceTemplate.yaml - ContrailVirtualNetworkGlobalType: - file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml - AbstractSubstituteGlobalTypes: - file: AbstractSubstituteGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.abstract.nodes.heat.nested: - derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute - properties: - cmaui_names: - type: list - description: CMAUI1, CMAUI2 server names - entry_schema: - type: String - p1: - type: string - description: UID of OAM network - cmaui_image: - type: string - description: Image for CMAUI server - cmaui_flavor: - type: string - description: Flavor for CMAUI server - security_group_name: - description: not impotrtant - availability_zone_0: - type: string - description: availabilityzone name - requirements: - - local_storage_server_cmaui: - capability: tosca.capabilities.Attachment - node: tosca.nodes.BlockStorage - relationship: tosca.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED - - link_cmaui_port_0: - capability: tosca.capabilities.network.Linkable - node: tosca.nodes.Root - relationship: tosca.relationships.network.LinksTo - occurrences: - - 1 - - 1 - capabilities: - host_server_cmaui: - type: tosca.capabilities.Container - valid_source_types: - - tosca.nodes.SoftwareComponent - occurrences: - - 1 - - UNBOUNDED - os_server_cmaui: - type: tosca.capabilities.OperatingSystem - occurrences: - - 1 - - UNBOUNDED - endpoint_server_cmaui: - type: tosca.capabilities.Endpoint.Admin - occurrences: - - 1 - - UNBOUNDED - binding_server_cmaui: - type: tosca.capabilities.network.Bindable - occurrences: - - 1 - - UNBOUNDED - scalable_server_cmaui: - type: tosca.capabilities.Scalable - occurrences: - - 1 - - UNBOUNDED - attachment_cmaui_port_0: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NativeTypesServiceTemplateServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NativeTypesServiceTemplateServiceTemplate.yaml deleted file mode 100644 index e7dfd49ed9..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NativeTypesServiceTemplateServiceTemplate.yaml +++ /dev/null @@ -1,194 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: NativeTypesServiceTemplate - template_version: 1.0.0 -description: TOSCA Native Node Types -node_types: - tosca.nodes.Compute: - derived_from: tosca.nodes.Root - attributes: - private_address: - type: string - description: private address - status: SUPPORTED - public_address: - type: string - description: public_address - status: SUPPORTED - networks: - type: map - description: networks - status: SUPPORTED - entry_schema: - type: tosca.datatypes.network.NetworkInfo - ports: - type: map - description: ports - status: SUPPORTED - entry_schema: - type: tosca.datatypes.network.PortInfo - requirements: - - local_storage: - capability: tosca.capabilities.Attachment - node: tosca.nodes.BlockStorage - relationship: tosca.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED - capabilities: - scalable: - type: tosca.capabilities.Scalable - occurrences: - - 1 - - UNBOUNDED - endpoint: - type: tosca.capabilities.Endpoint.Admin - occurrences: - - 1 - - UNBOUNDED - os: - type: tosca.capabilities.OperatingSystem - occurrences: - - 1 - - UNBOUNDED - host: - type: tosca.capabilities.Container - valid_source_types: - - tosca.nodes.SoftwareComponent - occurrences: - - 1 - - UNBOUNDED - binding: - type: tosca.capabilities.network.Bindable - occurrences: - - 1 - - UNBOUNDED - tosca.nodes.network.Port: - derived_from: tosca.nodes.Root - properties: - ip_range_end: - type: string - required: false - status: SUPPORTED - ip_range_start: - type: string - required: false - status: SUPPORTED - ip_address: - type: string - required: false - status: SUPPORTED - is_default: - type: boolean - required: false - default: false - status: SUPPORTED - order: - type: integer - required: true - default: 0 - status: SUPPORTED - constraints: - - greater_or_equal: 0 - requirements: - - link: - capability: tosca.capabilities.network.Linkable - node: tosca.nodes.Root - relationship: tosca.relationships.network.LinksTo - - binding: - capability: tosca.capabilities.network.Bindable - node: tosca.nodes.Root - relationship: tosca.relationships.network.BindsTo - tosca.nodes.Root: - attributes: - tosca_name: - type: string - description: tosca name - status: SUPPORTED - state: - type: string - description: state - status: SUPPORTED - tosca_id: - type: string - description: tosca id - status: SUPPORTED - interfaces: { - } - tosca.nodes.network.Network: - derived_from: tosca.nodes.Root - properties: - physical_network: - type: string - required: false - status: SUPPORTED - segmentation_id: - type: string - required: false - status: SUPPORTED - network_id: - type: string - required: false - status: SUPPORTED - ip_version: - type: integer - required: false - default: 4 - status: SUPPORTED - constraints: - - valid_values: - - 4 - - 6 - start_ip: - type: string - required: false - status: SUPPORTED - network_name: - type: string - required: false - status: SUPPORTED - cidr: - type: string - required: false - status: SUPPORTED - gateway_ip: - type: string - required: false - status: SUPPORTED - network_type: - type: string - required: false - status: SUPPORTED - end_ip: - type: string - required: false - status: SUPPORTED - capabilities: - link: - type: tosca.capabilities.network.Linkable - occurrences: - - 1 - - UNBOUNDED - tosca.nodes.BlockStorage: - derived_from: tosca.nodes.Root - properties: - size: - type: scalar-unit.size - required: false - status: SUPPORTED - constraints: - - greater_or_equal: 1 MB - volume_id: - type: string - required: false - status: SUPPORTED - snapshot_id: - type: string - required: false - status: SUPPORTED - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronNetGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronNetGlobalTypesServiceTemplate.yaml deleted file mode 100644 index e80e2727c7..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronNetGlobalTypesServiceTemplate.yaml +++ /dev/null @@ -1,97 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: NeutronNetGlobalTypes - template_version: 1.0.0 -description: Neutron Network TOSCA Global Types -imports: - common_definitions: - file: CommonGlobalTypesServiceTemplate.yaml -node_types: - org.openecomp.resource.vl.nodes.heat.network.neutron.Net: - derived_from: tosca.nodes.network.Network - properties: - dhcp_agent_ids: - type: list - description: The IDs of the DHCP agent to schedule the network - required: false - status: SUPPORTED - entry_schema: - type: string - tenant_id: - type: string - description: The ID of the tenant which will own the network - required: false - status: SUPPORTED - port_security_enabled: - type: boolean - description: Flag to enable/disable port security on the network - required: false - status: SUPPORTED - shared: - type: boolean - description: Whether this network should be shared across all tenants - required: false - default: false - status: SUPPORTED - admin_state_up: - type: boolean - description: A boolean value specifying the administrative status of the network - required: false - default: true - status: SUPPORTED - qos_policy: - type: string - description: The name or ID of QoS policy to attach to this network - required: false - status: SUPPORTED - subnets: - type: map - description: Network related subnets - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - value_specs: - type: map - description: Extra parameters to include in the request - required: false - default: { - } - status: SUPPORTED - entry_schema: - type: string - attributes: - qos_policy_id: - type: string - description: The QoS policy ID attached to this network - status: SUPPORTED - show: - type: string - description: Detailed information about resource - status: SUPPORTED - subnets_name: - type: list - description: Subnets name of this network - status: SUPPORTED - entry_schema: - type: string - subnets: - type: map - description: Network related subnets - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.Subnet - mtu: - type: scalar-unit.size - description: The maximum transmission unit size(in bytes) for the network - status: SUPPORTED - status: - type: string - description: The status of the network - status: SUPPORTED - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronPortGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronPortGlobalTypesServiceTemplate.yaml deleted file mode 100644 index a337d6ed18..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronPortGlobalTypesServiceTemplate.yaml +++ /dev/null @@ -1,151 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: NeutronPortGlobalTypes - template_version: 1.0.0 -description: Neutron Port TOSCA Global Types -imports: - common_definitions: - file: CommonGlobalTypesServiceTemplate.yaml -data_types: - org.openecomp.datatypes.heat.neutron.port.FixedIps: - derived_from: tosca.datatypes.Root - description: subnet/ip_address - properties: - subnet: - type: string - description: Subnet in which to allocate the IP address for this port - required: false - status: SUPPORTED - ip_address: - type: string - description: IP address desired in the subnet for this port - required: false - status: SUPPORTED -node_types: - org.openecomp.resource.cp.nodes.heat.network.neutron.Port: - derived_from: tosca.nodes.network.Port - properties: - port_security_enabled: - type: boolean - description: Flag to enable/disable port security on the network - required: false - status: SUPPORTED - device_id: - type: string - description: Device ID of this port - required: false - status: SUPPORTED - qos_policy: - type: string - description: The name or ID of QoS policy to attach to this network - required: false - status: SUPPORTED - allowed_address_pairs: - type: list - description: Additional MAC/IP address pairs allowed to pass through the port - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.AddressPair - binding:vnic_type: - type: string - description: The vnic type to be bound on the neutron port - required: false - status: SUPPORTED - constraints: - - valid_values: - - macvtap - - direct - - normal - value_specs: - type: map - description: Extra parameters to include in the request - required: false - default: { - } - status: SUPPORTED - entry_schema: - type: string - device_owner: - type: string - description: Name of the network owning the port - required: false - status: SUPPORTED - network: - type: string - description: Network this port belongs to - required: false - status: SUPPORTED - replacement_policy: - type: string - description: Policy on how to respond to a stack-update for this resource - required: false - default: AUTO - status: SUPPORTED - constraints: - - valid_values: - - REPLACE_ALWAYS - - AUTO - security_groups: - type: list - description: List of security group names or IDs - required: false - status: SUPPORTED - entry_schema: - type: string - fixed_ips: - type: list - description: Desired IPs for this port - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.neutron.port.FixedIps - mac_address: - type: string - description: MAC address to give to this port - required: false - status: SUPPORTED - admin_state_up: - type: boolean - description: A boolean value specifying the administrative status of the network - required: false - default: true - status: SUPPORTED - name: - type: string - description: A symbolic name for this port - required: false - status: SUPPORTED - attributes: - tenant_id: - type: string - description: Tenant owning the port - status: SUPPORTED - network_id: - type: string - description: Unique identifier for the network owning the port - status: SUPPORTED - qos_policy_id: - type: string - description: The QoS policy ID attached to this network - status: SUPPORTED - show: - type: string - description: Detailed information about resource - status: SUPPORTED - subnets: - type: list - description: Subnets of this network - status: SUPPORTED - entry_schema: - type: string - status: - type: string - description: The status of the network - status: SUPPORTED - capabilities: - attachment: - type: tosca.capabilities.Attachment - occurrences: - - 1 - - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronSecurityRulesGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronSecurityRulesGlobalTypesServiceTemplate.yaml deleted file mode 100644 index 49c9a102c8..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NeutronSecurityRulesGlobalTypesServiceTemplate.yaml +++ /dev/null @@ -1,116 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: NeutronSecurityRulesGlobalTypes - template_version: 1.0.0 -description: Neutron Security Rules TOSCA Global Types -imports: - common_definitions: - file: CommonGlobalTypesServiceTemplate.yaml -data_types: - org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule: - derived_from: tosca.datatypes.Root - description: Rules Pairs - properties: - remote_group_id: - type: string - description: The remote group ID to be associated with this security group rule - required: false - status: SUPPORTED - protocol: - type: string - description: The protocol that is matched by the security group rule - required: false - status: SUPPORTED - constraints: - - valid_values: - - tcp - - udp - - icmp - ethertype: - type: string - description: Ethertype of the traffic - required: false - default: IPv4 - status: SUPPORTED - constraints: - - valid_values: - - IPv4 - - IPv6 - port_range_max: - type: integer - description: 'The maximum port number in the range that is matched by the - security group rule. ' - required: false - status: SUPPORTED - constraints: - - in_range: - - 0 - - 65535 - remote_ip_prefix: - type: string - description: The remote IP prefix (CIDR) to be associated with this security group rule - required: false - status: SUPPORTED - remote_mode: - type: string - description: Whether to specify a remote group or a remote IP prefix - required: false - default: remote_ip_prefix - status: SUPPORTED - constraints: - - valid_values: - - remote_ip_prefix - - remote_group_id - direction: - type: string - description: The direction in which the security group rule is applied - required: false - default: ingress - status: SUPPORTED - constraints: - - valid_values: - - egress - - ingress - port_range_min: - type: integer - description: The minimum port number in the range that is matched by the security group rule. - required: false - status: SUPPORTED - constraints: - - in_range: - - 0 - - 65535 -node_types: - org.openecomp.resource.nodes.heat.network.neutron.SecurityRules: - derived_from: tosca.nodes.Root - properties: - description: - type: string - description: Description of the security group - required: false - status: SUPPORTED - name: - type: string - description: A symbolic name for this security group, which is not required to be unique. - required: false - status: SUPPORTED - rules: - type: list - description: List of security group rules - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule - attributes: - show: - type: string - description: Detailed information about resource - status: SUPPORTED - requirements: - - port: - capability: tosca.capabilities.Attachment - node: org.openecomp.resource.cp.nodes.heat.network.neutron.Port - relationship: org.openecomp.relationships.AttachesTo - occurrences: - - 0 - - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NovaServerGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NovaServerGlobalTypesServiceTemplate.yaml deleted file mode 100644 index 2253a1e4af..0000000000 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/extractServiceComposition/toscaGlobalServiceTemplates/NovaServerGlobalTypesServiceTemplate.yaml +++ /dev/null @@ -1,249 +0,0 @@ -tosca_definitions_version: tosca_simple_yaml_1_0_0 -metadata: - template_name: NovaServerGlobalTypes - template_version: 1.0.0 -description: Nova Server TOSCA Global Types -imports: - common_definitions: - file: CommonGlobalTypesServiceTemplate.yaml -data_types: - org.openecomp.datatypes.heat.novaServer.network.PortExtraProperties: - derived_from: tosca.datatypes.Root - description: Nova server network expand properties for port - properties: - port_security_enabled: - type: boolean - description: Flag to enable/disable port security on the port - required: false - status: SUPPORTED - mac_address: - type: string - description: MAC address to give to this port - required: false - status: SUPPORTED - admin_state_up: - type: boolean - description: The administrative state of this port - required: false - default: true - status: SUPPORTED - qos_policy: - type: string - description: The name or ID of QoS policy to attach to this port - required: false - status: SUPPORTED - allowed_address_pairs: - type: list - description: Additional MAC/IP address pairs allowed to pass through the port - required: false - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.network.AddressPair - binding:vnic_type: - type: string - description: The vnic type to be bound on the neutron port - required: false - status: SUPPORTED - constraints: - - valid_values: - - macvtap - - direct - - normal - value_specs: - type: map - description: Extra parameters to include in the request - required: false - default: { - } - status: SUPPORTED - entry_schema: - type: string - org.openecomp.datatypes.heat.novaServer.network.AddressInfo: - derived_from: tosca.datatypes.network.NetworkInfo - description: Network addresses with corresponding port id - properties: - port_id: - type: string - description: Port id - required: false - status: SUPPORTED -node_types: - org.openecomp.resource.vfc.nodes.heat.nova.Server: - derived_from: tosca.nodes.Compute - properties: - admin_pass: - type: string - description: The administrator password for the server - required: false - status: SUPPORTED - availability_zone: - type: string - description: Availability zone to create servers in - required: false - status: SUPPORTED - image: - type: string - description: The ID or name of the image to boot with - required: false - status: SUPPORTED - image_update_policy: - type: string - description: Policy on how to apply an image-id update - required: false - default: REBUILD - status: SUPPORTED - constraints: - - valid_values: - - REBUILD_PRESERVE_EPHEMERAL - - REPLACE - - REBUILD - metadata: - type: map - description: Arbitrary key/value metadata to store for this server - required: false - status: SUPPORTED - constraints: - - max_length: 255 - entry_schema: - type: string - constraints: - - max_length: 255 - user_data_update_policy: - type: string - description: Policy on how to apply a user_data update - required: false - default: REPLACE - status: SUPPORTED - constraints: - - valid_values: - - REPLACE - - IGNORE - flavor_update_policy: - type: string - description: Policy on how to apply a flavor update - required: false - default: RESIZE - status: SUPPORTED - constraints: - - valid_values: - - RESIZE - - REPLACE - user_data: - type: string - description: User data script to be executed by cloud-init - required: false - default: '' - status: SUPPORTED - flavor: - type: string - description: The ID or name of the flavor to boot onto - required: true - status: SUPPORTED - key_name: - type: string - description: Name of keypair to inject into the server - required: false - status: SUPPORTED - reservation_id: - type: string - description: A UUID for the set of servers being requested - required: false - status: SUPPORTED - security_groups: - type: list - description: List of security group names or IDs - required: false - default: [ - ] - status: SUPPORTED - entry_schema: - type: string - config_drive: - type: boolean - description: enable config drive on the server - required: false - status: SUPPORTED - personality: - type: map - description: A map of files to create/overwrite on the server upon boot - required: false - default: { - } - status: SUPPORTED - entry_schema: - type: string - software_config_transport: - type: string - description: How the server should receive the metadata required for software configuration - required: false - default: POLL_SERVER_CFN - status: SUPPORTED - constraints: - - valid_values: - - POLL_SERVER_CFN - - POLL_SERVER_HEAT - - POLL_TEMP_URL - - ZAQAR_MESSAGE - user_data_format: - type: string - description: How the user_data should be formatted for the server - required: false - default: HEAT_CFNTOOLS - status: SUPPORTED - constraints: - - valid_values: - - SOFTWARE_CONFIG - - RAW - - HEAT_CFNTOOLS - diskConfig: - type: string - description: Control how the disk is partitioned when the server is created - required: false - status: SUPPORTED - constraints: - - valid_values: - - AUTO - - MANUAL - name: - type: string - description: Server name - required: false - status: SUPPORTED - scheduler_hints: - type: map - description: Arbitrary key-value pairs specified by the client to help boot a server - required: false - status: SUPPORTED - entry_schema: - type: string - attributes: - accessIPv4: - type: string - description: The manually assigned alternative public IPv4 address of the server - status: SUPPORTED - addresses: - type: map - description: A dict of all network addresses with corresponding port_id - status: SUPPORTED - entry_schema: - type: org.openecomp.datatypes.heat.novaServer.network.AddressInfo - accessIPv6: - type: string - description: The manually assigned alternative public IPv6 address of the server - status: SUPPORTED - instance_name: - type: string - description: AWS compatible instance name - status: SUPPORTED - name: - type: string - description: Name of the server - status: SUPPORTED - show: - type: string - description: Detailed information about resource - status: SUPPORTED - console_urls: - type: string - description: URLs of servers consoles - status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/logback.xml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/logback.xml new file mode 100644 index 0000000000..03ce9d1243 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/logback.xml @@ -0,0 +1,13 @@ + + + + + + %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n + + + + + + + \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/ComputeGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/ComputeGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..2e5d468b31 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/ComputeGlobalTypesServiceTemplate.yaml @@ -0,0 +1,1202 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ComputeGlobalTypes + template_version: 1.0.0 +description: Compute TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.Compute: + derived_from: tosca.nodes.Compute + capabilities: + disk.ephemeral.size: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: GB + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.ephemeral.size + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Size of ephemeral disk + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + instance: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: instance + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: instance + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Existence of instance + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + memory: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: MB + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: memory + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Volume of RAM allocated to the instance + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.iops: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: count/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.iops + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average disk iops + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.device.read.requests: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: request + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.read.requests + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of read requests + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + cpu.delta: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: ns + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: cpu.delta + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: CPU time used since previous datapoint + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Delta + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.capacity: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.capacity + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: The amount of disk that the instance can see + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.device.read.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.read.bytes + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Volume of reads + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.write.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.write.bytes + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Volume of writes + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.latency: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: ms + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.latency + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average disk latency + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.device.read.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.read.bytes.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of reads + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.usage: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.usage + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: The physical size in bytes of the image container on the host + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + cpu_util: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: '%' + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: cpu_util + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average CPU utilization + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.device.allocation: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.allocation + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: The amount of disk per device occupied by the instance on the host machine + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.write.requests.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: request/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.write.requests.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of write requests + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.write.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.write.bytes.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of writes + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.device.latency: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: ms + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.latency + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average disk latency per device + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + cpu: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: ns + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: cpu + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: CPU time used + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.device.write.requests: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: request + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.write.requests + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of write requests + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.device.write.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.write.bytes + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Volume of writes + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.read.requests: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: request + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.read.requests + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of read requests + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.root.size: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: GB + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.root.size + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Size of root disk + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.device.write.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.write.bytes.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of writes + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + vcpus: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: vcpu + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: vcpus + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of virtual CPUs allocated to the instance + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.device.iops: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: count/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.iops + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average disk iops per device + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.device.usage: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.usage + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: The physical size in bytes of the image container on the host per device + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.device.read.requests.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: request/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.read.requests.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of read requests + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.device.write.requests.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: request/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.write.requests.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of write requests + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.allocation: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.allocation + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: The amount of disk occupied by the instance on the host machine + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + disk.read.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.read.bytes.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of reads + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.read.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.read.bytes + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Volume of reads + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + memory.usage: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: MB + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: memory.usage + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Volume of RAM used by the instance from the amount of its allocated memory + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.device.capacity: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.device.capacity + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: The amount of disk per device that the instance can see + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: disk + status: SUPPORTED + memory.resident: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: MB + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: memory.resident + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Volume of RAM used by the instance on the physical machine + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED + disk.write.requests: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: request + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: disk.write.requests + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of write requests + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: compute + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/MainServiceTemplate.yaml new file mode 100644 index 0000000000..c5c552143b --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/MainServiceTemplate.yaml @@ -0,0 +1,350 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: Main +imports: +- NeutronPortGlobalTypes: + file: NeutronPortGlobalTypesServiceTemplate.yaml +- NeutronNetGlobalTypes: + file: NeutronNetGlobalTypesServiceTemplate.yaml +- CommonGlobalTypes: + file: CommonGlobalTypesServiceTemplate.yaml +- CinderVolumeGlobalTypes: + file: CinderVolumeGlobalTypesServiceTemplate.yaml +- ContrailNetworkRuleGlobalType: + file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml +- NeutronSecurityRulesGlobalTypes: + file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml +- NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +- ContrailVirtualNetworkGlobalType: + file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml +- AbstractSubstituteGlobalTypes: + file: AbstractSubstituteGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.heat.pcrf_psm: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server + org.openecomp.resource.vfc.nodes.heat.pcm: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + Internal2_name: + label: Internal2_name + hidden: false + immutable: false + type: string + description: Internal2_name + Internal1_shared: + label: Internal1_shared + hidden: false + immutable: false + type: string + description: Internal1_shared + FSB1_volume_name: + label: FSB1_volume + hidden: false + immutable: false + type: string + description: FSB1_volume_1 + jsa_cidr: + label: jsa_cidr + hidden: false + immutable: false + type: string + description: jsa_cidr + default: 107.243.7.128/26 + availabilityzone_name: + label: availabilityzone_name + hidden: false + immutable: false + type: string + description: availabilityzone_name + fsb1-name: + label: FSB1_name + hidden: false + immutable: false + type: string + description: FSB1_name + pcm_image_name: + label: pcm_image_name + hidden: false + immutable: false + type: string + description: pcm_image_name + Internal2_external: + label: Internal2_external + hidden: false + immutable: false + type: string + description: Internal2_external + Internal2_forwarding_mode: + label: Internal2_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal2_forwarding_mode + pcrf_psm_flavor_name: + label: pcrf_psm_flavor_name + hidden: false + immutable: false + type: string + description: pcrf_psm_flavor_name + pcrf_psm_image_name: + label: pcrf_psm_image_name + hidden: false + immutable: false + type: string + description: pcrf_psm_image_name + FSB_1_image: + label: MME_FSB1 + hidden: false + immutable: false + type: string + description: MME_FSB1_15B-CP04-r5a01 + volume_size: + label: volume size + hidden: false + immutable: false + type: float + description: my volume size 320GB + fsb1-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + Internal2_shared: + label: Internal2_shared + hidden: false + immutable: false + type: string + description: Internal2_shared + pcm_server_name: + label: pcm_server_name + hidden: false + immutable: false + type: string + description: pcm_server_name + Internal1_net_name: + label: Internal1_net_name + hidden: false + immutable: false + type: string + description: Internal1_net_name + oam_net_name: + label: oam_net_name + hidden: false + immutable: false + type: string + description: oam_net_name + fsb1-flavor: + label: FSB1_flavor + hidden: false + immutable: false + type: string + description: FSB1_flavor + fsb1-Internal2-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + volume_type: + label: volume type + hidden: false + immutable: false + type: string + description: volume type Gold + fsb1-zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + fsb_zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: String + jsa_net_name: + label: jsa_net_name + hidden: false + immutable: false + type: string + description: jsa_net_name + default: jsa_log_net_0 + pcrf_psm_server_name: + label: pcrf_psm_server_name + hidden: false + immutable: false + type: string + description: pcrf_psm_server_name + pcm_flavor_name: + label: pcm_flavor_name + hidden: false + immutable: false + type: string + description: pcm_flavor_name + oam_net_id: + label: oam_net_id + hidden: false + immutable: false + type: string + description: oam_net_id + fsb2-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + Internal1_forwarding_mode: + label: Internal1_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal1_forwarding_mode + pcrf_cps_net_name: + label: pcrf_cps_net_name + hidden: false + immutable: false + type: string + description: pcrf_cps_net_name + cps_net_name: + label: cps_net_name + hidden: false + immutable: false + type: string + description: cps_net_name + pcrf_security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: String + Internal1_external: + label: Internal1_external + hidden: false + immutable: false + type: string + description: Internal1_external + node_templates: + nova_local_type_pcm1: + type: org.openecomp.resource.vfc.nodes.heat.pcm + properties: + flavor: + get_input: pcm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcm_image_name + config_drive: true + user_data_format: RAW + name: + get_input: pcm_server_name + user_data: UNSUPPORTED_RESOURCE_server_init + nova_local_type_pcm2: + type: org.openecomp.resource.vfc.nodes.heat.pcm + properties: + flavor: + get_input: pcm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcm_image_name + config_drive: true + user_data_format: RAW + name: + get_input: pcm_server_name + user_data: UNSUPPORTED_RESOURCE_server_init + nova_local_type_pcrf_psm: + type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm + properties: + flavor: + get_input: pcm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcm_image_name + config_drive: true + user_data_format: RAW + name: + get_input: pcm_server_name + user_data: UNSUPPORTED_RESOURCE_server_init + nova_global_type1: + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + name: + get_input: fsb1-name + nova_global_type2: + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + metadata: + write_files: + - path: /etc/sysconfig/network-scripts/ifcfg-eth0 + permissions: '0644' + content: + str_replace: + template: + get_artifact: + - SELF + - nimbus-ethernet + params: + $dev: eth0 + $netmask: + get_input: cps_net_mask + $ip: + get_input: cps_net_ip + - path: /etc/sysconfig/network-scripts/ifcfg-eth1 + permissions: '0644' + content: + str_replace: + template: + get_artifact: + - SELF + - nimbus-ethernet-gw + params: + $dev: eth1 + $netmask: + get_input: oam_net_mask + $gateway: + get_input: oam_net_gw + $ip: + get_input: oam_net_ip + name: + get_input: fsb1-name + artifacts: + nimbus-ethernet-gw: + type: tosca.artifacts.Deployment + file: ../Artifacts/nimbus-ethernet-gw + nimbus-ethernet: + type: tosca.artifacts.Deployment + file: ../Artifacts/nimbus-ethernet + groups: + ep-jsa_net: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/ep-jsa_net.yaml + description: | + Version 2.0 02-09-2016 (Authors: John Doe, user PROD) + members: + - nova_local_type_pcm1 + - nova_local_type_pcm2 + - nova_local_type_pcrf_psm + - nova_global_type1 + - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/PortGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/PortGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..bbaa13873e --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/expectedOutput/PortGlobalTypesServiceTemplate.yaml @@ -0,0 +1,284 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: PortGlobalTypes + template_version: 1.0.0 +description: Port TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.cp.nodes.network.Port: + derived_from: tosca.nodes.network.Port + capabilities: + network.incoming.packets.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: packet/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: network.incoming.packets.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of incoming packets + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: network + status: SUPPORTED + network.outgoing.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: network.outgoing.bytes + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of outgoing bytes + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: network + status: SUPPORTED + network.outgoing.packets.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: packet/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: network.outgoing.packets.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of outgoing packets + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: network + status: SUPPORTED + network.outpoing.packets: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: packet + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: network.outpoing.packets + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of outgoing packets + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: network + status: SUPPORTED + network.incoming.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: network.incoming.bytes.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of incoming bytes + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: network + status: SUPPORTED + network.incoming.bytes: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: network.incoming.bytes + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of incoming bytes + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: network + status: SUPPORTED + network.outgoing.bytes.rate: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: B/s + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: network.outgoing.bytes.rate + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Average rate of outgoing bytes + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Gauge + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: network + status: SUPPORTED + network.incoming.packets: + type: org.openecomp.capabilities.metric.Ceilometer + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + unit: + type: string + description: Unit of the metric value + required: true + default: packet + status: SUPPORTED + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + default: network.incoming.packets + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + default: Number of incoming packets + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + default: Cumulative + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + default: network + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/input/MainServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/input/MainServiceTemplate.yaml new file mode 100644 index 0000000000..c5c552143b --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/enrich/input/MainServiceTemplate.yaml @@ -0,0 +1,350 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: Main +imports: +- NeutronPortGlobalTypes: + file: NeutronPortGlobalTypesServiceTemplate.yaml +- NeutronNetGlobalTypes: + file: NeutronNetGlobalTypesServiceTemplate.yaml +- CommonGlobalTypes: + file: CommonGlobalTypesServiceTemplate.yaml +- CinderVolumeGlobalTypes: + file: CinderVolumeGlobalTypesServiceTemplate.yaml +- ContrailNetworkRuleGlobalType: + file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml +- NeutronSecurityRulesGlobalTypes: + file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml +- NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +- ContrailVirtualNetworkGlobalType: + file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml +- AbstractSubstituteGlobalTypes: + file: AbstractSubstituteGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.heat.pcrf_psm: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server + org.openecomp.resource.vfc.nodes.heat.pcm: + derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server +topology_template: + inputs: + Internal2_name: + label: Internal2_name + hidden: false + immutable: false + type: string + description: Internal2_name + Internal1_shared: + label: Internal1_shared + hidden: false + immutable: false + type: string + description: Internal1_shared + FSB1_volume_name: + label: FSB1_volume + hidden: false + immutable: false + type: string + description: FSB1_volume_1 + jsa_cidr: + label: jsa_cidr + hidden: false + immutable: false + type: string + description: jsa_cidr + default: 107.243.7.128/26 + availabilityzone_name: + label: availabilityzone_name + hidden: false + immutable: false + type: string + description: availabilityzone_name + fsb1-name: + label: FSB1_name + hidden: false + immutable: false + type: string + description: FSB1_name + pcm_image_name: + label: pcm_image_name + hidden: false + immutable: false + type: string + description: pcm_image_name + Internal2_external: + label: Internal2_external + hidden: false + immutable: false + type: string + description: Internal2_external + Internal2_forwarding_mode: + label: Internal2_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal2_forwarding_mode + pcrf_psm_flavor_name: + label: pcrf_psm_flavor_name + hidden: false + immutable: false + type: string + description: pcrf_psm_flavor_name + pcrf_psm_image_name: + label: pcrf_psm_image_name + hidden: false + immutable: false + type: string + description: pcrf_psm_image_name + FSB_1_image: + label: MME_FSB1 + hidden: false + immutable: false + type: string + description: MME_FSB1_15B-CP04-r5a01 + volume_size: + label: volume size + hidden: false + immutable: false + type: float + description: my volume size 320GB + fsb1-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + Internal2_shared: + label: Internal2_shared + hidden: false + immutable: false + type: string + description: Internal2_shared + pcm_server_name: + label: pcm_server_name + hidden: false + immutable: false + type: string + description: pcm_server_name + Internal1_net_name: + label: Internal1_net_name + hidden: false + immutable: false + type: string + description: Internal1_net_name + oam_net_name: + label: oam_net_name + hidden: false + immutable: false + type: string + description: oam_net_name + fsb1-flavor: + label: FSB1_flavor + hidden: false + immutable: false + type: string + description: FSB1_flavor + fsb1-Internal2-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + volume_type: + label: volume type + hidden: false + immutable: false + type: string + description: volume type Gold + fsb1-zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + fsb_zone: + label: FSB1_zone + hidden: false + immutable: false + type: string + description: FSB1_zone + security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: String + jsa_net_name: + label: jsa_net_name + hidden: false + immutable: false + type: string + description: jsa_net_name + default: jsa_log_net_0 + pcrf_psm_server_name: + label: pcrf_psm_server_name + hidden: false + immutable: false + type: string + description: pcrf_psm_server_name + pcm_flavor_name: + label: pcm_flavor_name + hidden: false + immutable: false + type: string + description: pcm_flavor_name + oam_net_id: + label: oam_net_id + hidden: false + immutable: false + type: string + description: oam_net_id + fsb2-Internal1-mac: + label: FSB1_internal_mac + hidden: false + immutable: false + type: string + description: FSB1_internal_mac + Internal1_forwarding_mode: + label: Internal1_forwarding_mode + hidden: false + immutable: false + type: string + description: Internal1_forwarding_mode + pcrf_cps_net_name: + label: pcrf_cps_net_name + hidden: false + immutable: false + type: string + description: pcrf_cps_net_name + cps_net_name: + label: cps_net_name + hidden: false + immutable: false + type: string + description: cps_net_name + pcrf_security_group_name: + hidden: false + immutable: false + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: String + Internal1_external: + label: Internal1_external + hidden: false + immutable: false + type: string + description: Internal1_external + node_templates: + nova_local_type_pcm1: + type: org.openecomp.resource.vfc.nodes.heat.pcm + properties: + flavor: + get_input: pcm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcm_image_name + config_drive: true + user_data_format: RAW + name: + get_input: pcm_server_name + user_data: UNSUPPORTED_RESOURCE_server_init + nova_local_type_pcm2: + type: org.openecomp.resource.vfc.nodes.heat.pcm + properties: + flavor: + get_input: pcm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcm_image_name + config_drive: true + user_data_format: RAW + name: + get_input: pcm_server_name + user_data: UNSUPPORTED_RESOURCE_server_init + nova_local_type_pcrf_psm: + type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm + properties: + flavor: + get_input: pcm_flavor_name + availability_zone: + get_input: availabilityzone_name + image: + get_input: pcm_image_name + config_drive: true + user_data_format: RAW + name: + get_input: pcm_server_name + user_data: UNSUPPORTED_RESOURCE_server_init + nova_global_type1: + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + name: + get_input: fsb1-name + nova_global_type2: + type: org.openecomp.resource.vfc.nodes.heat.nova.Server + properties: + flavor: + get_input: fsb1-flavor + availability_zone: + get_input: fsb_zone + metadata: + write_files: + - path: /etc/sysconfig/network-scripts/ifcfg-eth0 + permissions: '0644' + content: + str_replace: + template: + get_artifact: + - SELF + - nimbus-ethernet + params: + $dev: eth0 + $netmask: + get_input: cps_net_mask + $ip: + get_input: cps_net_ip + - path: /etc/sysconfig/network-scripts/ifcfg-eth1 + permissions: '0644' + content: + str_replace: + template: + get_artifact: + - SELF + - nimbus-ethernet-gw + params: + $dev: eth1 + $netmask: + get_input: oam_net_mask + $gateway: + get_input: oam_net_gw + $ip: + get_input: oam_net_ip + name: + get_input: fsb1-name + artifacts: + nimbus-ethernet-gw: + type: tosca.artifacts.Deployment + file: ../Artifacts/nimbus-ethernet-gw + nimbus-ethernet: + type: tosca.artifacts.Deployment + file: ../Artifacts/nimbus-ethernet + groups: + ep-jsa_net: + type: org.openecomp.groups.heat.HeatStack + properties: + heat_file: ../Artifacts/ep-jsa_net.yaml + description: | + Version 2.0 02-09-2016 (Authors: John Doe, user PROD) + members: + - nova_local_type_pcm1 + - nova_local_type_pcm2 + - nova_local_type_pcrf_psm + - nova_global_type1 + - nova_global_type2 \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/AbstractSubstituteGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/AbstractSubstituteGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..224e9b746e --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/AbstractSubstituteGlobalTypesServiceTemplate.yaml @@ -0,0 +1,88 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: AbstractSubstituteGlobalTypes + template_version: 1.0.0 +description: Abstract Substitute Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.substitution.SubstitutionFilter: + derived_from: tosca.datatypes.Root + description: Substitution Filter + properties: + substitute_service_template: + type: string + description: Substitute Service Template + required: true + status: SUPPORTED + index_variable: + type: string + description: Index variable + required: false + default: '%index%' + status: SUPPORTED + constraints: + - min_length: 3 + count: + type: string + description: Count + required: false + default: 1 + status: SUPPORTED + scaling_enabled: + type: boolean + description: Indicates whether service scaling is enabled + required: false + default: true + status: SUPPORTED + mandatory: + type: boolean + description: Mandatory + required: false + default: true + status: SUPPORTED + org.openecomp.datatypes.heat.substitution.SubstitutionFiltering: + derived_from: tosca.datatypes.Root + description: Substitution Filter + properties: + substitute_service_template: + type: string + description: Substitute Service Template + required: true + status: SUPPORTED + index_value: + type: integer + description: Index value of the substitution service template runtime instance + required: false + default: 0 + status: SUPPORTED + constraints: + - greater_or_equal: 0 + count: + type: string + description: Count + required: false + default: 1 + status: SUPPORTED + scaling_enabled: + type: boolean + description: Indicates whether service scaling is enabled + required: false + default: true + status: SUPPORTED + mandatory: + type: boolean + description: Mandatory + required: false + default: true + status: SUPPORTED +node_types: + org.openecomp.resource.abstract.nodes.AbstractSubstitute: + derived_from: tosca.nodes.Root + properties: + service_template_filter: + type: org.openecomp.datatypes.heat.substitution.SubstitutionFiltering + description: Substitution Filter + required: true + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/CinderVolumeGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/CinderVolumeGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..c72ecd31df --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/CinderVolumeGlobalTypesServiceTemplate.yaml @@ -0,0 +1,178 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: CinderVolumeGlobalTypes + template_version: 1.0.0 +description: Cinder Volume TOSCA Global Types +relationship_types: + org.openecomp.relationships.VolumeAttachesTo: + derived_from: tosca.relationships.AttachesTo + description: This type represents an attachment relationship for associating volume + properties: + volume_id: + type: string + description: The ID of the volume to be attached + required: true + status: SUPPORTED + location: + type: string + description: The location where the volume is exposed on the instance, mountpoint + required: false + status: SUPPORTED + instance_uuid: + type: string + description: The ID of the server to which the volume attaches + required: true + status: SUPPORTED + attributes: + show: + type: string + description: Detailed information about resource + status: SUPPORTED +node_types: + org.openecomp.resource.vfc.nodes.heat.cinder.Volume: + derived_from: tosca.nodes.BlockStorage + properties: + availability_zone: + type: string + description: The availability zone in which the volume will be created + required: false + status: SUPPORTED + image: + type: string + description: If specified, the name or ID of the image to create the volume from + required: false + status: SUPPORTED + metadata: + type: map + description: Key/value pairs to associate with the volume + required: false + status: SUPPORTED + entry_schema: + type: string + volume_type: + type: string + description: If specified, the type of volume to use, mapping to a specific backend + required: false + status: SUPPORTED + description: + type: string + description: A description of the volume + required: false + status: SUPPORTED + device_type: + type: string + description: Device type + required: false + status: SUPPORTED + constraints: + - valid_values: + - cdrom + - disk + disk_bus: + type: string + description: 'Bus of the device: hypervisor driver chooses a suitable default + if omitted' + required: false + status: SUPPORTED + constraints: + - valid_values: + - ide + - lame_bus + - scsi + - usb + - virtio + backup_id: + type: string + description: If specified, the backup to create the volume from + required: false + status: SUPPORTED + source_volid: + type: string + description: If specified, the volume to use as source + required: false + status: SUPPORTED + boot_index: + type: integer + description: Integer used for ordering the boot disks + required: false + status: SUPPORTED + size: + type: scalar-unit.size + description: The requested storage size (default unit is MB) + required: false + status: SUPPORTED + constraints: + - greater_or_equal: 1 GB + read_only: + type: boolean + description: Enables or disables read-only access mode of volume + required: false + status: SUPPORTED + name: + type: string + description: A name used to distinguish the volume + required: false + status: SUPPORTED + scheduler_hints: + type: map + description: Arbitrary key-value pairs specified by the client to help the Cinder scheduler creating a volume + required: false + status: SUPPORTED + entry_schema: + type: string + swap_size: + type: scalar-unit.size + description: The size of the swap, in MB + required: false + status: SUPPORTED + delete_on_termination: + type: boolean + description: Indicate whether the volume should be deleted when the server is terminated + required: false + status: SUPPORTED + multiattach: + type: boolean + description: Whether allow the volume to be attached more than once + required: false + status: SUPPORTED + attributes: + display_description: + type: string + description: Description of the volume + status: SUPPORTED + attachments: + type: string + description: The list of attachments of the volume + status: SUPPORTED + entry_schema: + type: string + encrypted: + type: boolean + description: Boolean indicating if the volume is encrypted or not + status: SUPPORTED + show: + type: string + description: Detailed information about resource + status: SUPPORTED + created_at: + type: timestamp + description: The timestamp indicating volume creation + status: SUPPORTED + display_name: + type: string + description: Name of the volume + status: SUPPORTED + metadata_values: + type: map + description: Key/value pairs associated with the volume in raw dict form + status: SUPPORTED + entry_schema: + type: string + bootable: + type: boolean + description: Boolean indicating if the volume can be booted or not + status: SUPPORTED + status: + type: string + description: The current status of the volume + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/CommonGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/CommonGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..eee8a96129 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/CommonGlobalTypesServiceTemplate.yaml @@ -0,0 +1,354 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: CommonGlobalTypes + template_version: 1.0.0 +description: TOSCA Global Types +imports: +- NativeTypesServiceTemplate: + file: NativeTypesServiceTemplateServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.network.AddressPair: + derived_from: tosca.datatypes.Root + description: MAC/IP address pairs + properties: + mac_address: + type: string + description: MAC address + required: false + status: SUPPORTED + ip_address: + type: string + description: IP address + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.network.contrail.port.StaticRoute: + derived_from: tosca.datatypes.Root + description: static route + properties: + prefix: + type: string + description: Route prefix + required: false + status: SUPPORTED + next_hop: + type: string + description: Next hop + required: false + status: SUPPORTED + next_hop_type: + type: string + description: Next hop type + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.network.subnet.HostRoute: + derived_from: tosca.datatypes.Root + description: Host route info for the subnet + properties: + destination: + type: string + description: The destination for static route + required: false + status: SUPPORTED + nexthop: + type: string + description: The next hop for the destination + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.network.neutron.Subnet: + derived_from: tosca.datatypes.Root + description: A subnet represents an IP address block that can be used for assigning IP addresses to virtual instances + properties: + tenant_id: + type: string + description: The ID of the tenant who owns the network + required: false + status: SUPPORTED + enable_dhcp: + type: boolean + description: Set to true if DHCP is enabled and false if DHCP is disabled + required: false + default: true + status: SUPPORTED + ipv6_address_mode: + type: string + description: IPv6 address mode + required: false + status: SUPPORTED + constraints: + - valid_values: + - dhcpv6-stateful + - dhcpv6-stateless + - slaac + ipv6_ra_mode: + type: string + description: IPv6 RA (Router Advertisement) mode + required: false + status: SUPPORTED + constraints: + - valid_values: + - dhcpv6-stateful + - dhcpv6-stateless + - slaac + value_specs: + type: map + description: Extra parameters to include in the request + required: false + default: { + } + status: SUPPORTED + entry_schema: + type: string + allocation_pools: + type: list + description: The start and end addresses for the allocation pools + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.AllocationPool + subnetpool: + type: string + description: The name or ID of the subnet pool + required: false + status: SUPPORTED + dns_nameservers: + type: list + description: A specified set of DNS name servers to be used + required: false + default: [ + ] + status: SUPPORTED + entry_schema: + type: string + host_routes: + type: list + description: The gateway IP address + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.subnet.HostRoute + ip_version: + type: integer + description: The gateway IP address + required: false + default: 4 + status: SUPPORTED + constraints: + - valid_values: + - '4' + - '6' + name: + type: string + description: The name of the subnet + required: false + status: SUPPORTED + prefixlen: + type: integer + description: Prefix length for subnet allocation from subnet pool + required: false + status: SUPPORTED + constraints: + - greater_or_equal: 0 + cidr: + type: string + description: The CIDR + required: false + status: SUPPORTED + gateway_ip: + type: string + description: The gateway IP address + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.network.AllocationPool: + derived_from: tosca.datatypes.Root + description: The start and end addresses for the allocation pool + properties: + start: + type: string + description: Start address for the allocation pool + required: false + status: SUPPORTED + end: + type: string + description: End address for the allocation pool + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.network.contrail.AddressPair: + derived_from: tosca.datatypes.Root + description: Address Pair + properties: + address_mode: + type: string + description: Address mode active-active or active-standy + required: false + status: SUPPORTED + constraints: + - valid_values: + - active-active + - active-standby + prefix: + type: string + description: IP address prefix + required: false + status: SUPPORTED + mac_address: + type: string + description: Mac address + required: false + status: SUPPORTED +capability_types: + org.openecomp.capabilities.Metric: + derived_from: tosca.capabilities.nfv.Metric + description: A node type that includes the Metric capability indicates that it can be monitored. + properties: + unit: + type: string + description: Unit of the metric value + required: true + status: SUPPORTED + description: + type: string + description: Description of the metric + required: false + status: SUPPORTED + type: + type: string + description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc. + required: true + status: SUPPORTED + category: + type: string + description: Category of the metric, for an example, compute, disk, network, storage and etc. + required: false + status: SUPPORTED + attributes: + value: + type: string + description: Runtime monitored value + status: SUPPORTED + org.openecomp.capabilities.metric.Ceilometer: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using ceilometer. + properties: + name: + type: string + description: Ceilometer metric type name to monitor. (The name ceilometer is using) + required: true + status: SUPPORTED + org.openecomp.capabilities.metric.SnmpPolling: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using snmp polling. + properties: + oid: + type: string + description: Object Id of the metric + required: true + status: SUPPORTED + org.openecomp.capabilities.metric.SnmpTrap: + derived_from: org.openecomp.capabilities.Metric + description: A node type that includes the Metric capability indicates that it can be monitored using snmp trap. + properties: + oid: + type: string + description: Object Id of the metric + required: true + status: SUPPORTED +relationship_types: + org.openecomp.relationships.AttachesTo: + derived_from: tosca.relationships.Root + description: This type represents an attachment relationship +group_types: + org.openecomp.groups.heat.HeatStack: + derived_from: tosca.groups.Root + description: Grouped all heat resources which are in the same heat stack + properties: + heat_file: + type: string + description: Heat file which associate to this group/heat stack + required: true + status: SUPPORTED + description: + type: string + description: Heat file description + required: false + status: SUPPORTED +policy_types: + org.openecomp.policies.placement.valet.Diversity: + derived_from: tosca.policy.placement + description: Valet Diversity + properties: + level: + type: string + description: diversity + required: false + default: host + status: SUPPORTED + constraints: + - valid_values: + - host + - rack + org.openecomp.policies.placement.valet.Exclusivity: + derived_from: tosca.policy.placement + description: Valet Exclusivity + properties: + level: + type: string + description: exclusivity + required: false + default: host + status: SUPPORTED + constraints: + - valid_values: + - host + - rack + org.openecomp.policies.placement.valet.Affinity: + derived_from: tosca.policy.placement + description: Valet Affinity + properties: + level: + type: string + description: affinity + required: false + default: host + status: SUPPORTED + constraints: + - valid_values: + - host + - rack + org.openecomp.policies.placement.Colocate: + derived_from: tosca.policy.placement + description: Keep associated nodes (groups of nodes) based upon affinity value + properties: + name: + type: string + description: The name of the policy + required: false + status: SUPPORTED + affinity: + type: string + description: affinity + required: true + status: SUPPORTED + constraints: + - valid_values: + - host + - region + - compute + org.openecomp.policies.placement.Antilocate: + derived_from: tosca.policy.placement + description: My placement policy for separation based upon container type value + properties: + name: + type: string + description: The name of the policy + required: false + status: SUPPORTED + container_type: + type: string + description: container type + required: false + status: SUPPORTED + constraints: + - valid_values: + - host + - region + - compute \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ComputeGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ComputeGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..19f5cbf25a --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ComputeGlobalTypesServiceTemplate.yaml @@ -0,0 +1,11 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ComputeGlobalTypes + template_version: 1.0.0 +description: Compute TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.Compute: + derived_from: tosca.nodes.Compute \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..e667df0742 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml @@ -0,0 +1,166 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ContrailAbstractSubstituteGlobalTypes + template_version: 1.0.0 +description: Contrail Abstract Substitute Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.network.contrail.InterfaceData: + derived_from: tosca.datatypes.Root + description: Interface Data + properties: + static_routes: + type: list + description: An ordered list of static routes to be added to this interface + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute + virtual_network: + type: string + description: Virtual Network for this interface + required: true + status: SUPPORTED + allowed_address_pairs: + type: list + description: List of allowed address pair for this interface + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.AddressPair + ip_address: + type: string + description: IP for this interface + required: false + status: SUPPORTED +node_types: + org.openecomp.resource.abstract.nodes.contrail.AbstractSubstitute: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + availability_zone: + type: string + description: Availability zone to create servers in + required: false + status: SUPPORTED + static_routes_list: + type: list + description: Static routes enabled + required: false + status: SUPPORTED + entry_schema: + type: boolean + availability_zone_enable: + type: boolean + description: Indicates availability zone is enabled + required: false + default: false + status: SUPPORTED + service_template_name: + type: string + description: Service template name + required: false + status: SUPPORTED + ordered_interfaces: + type: boolean + description: Indicates if service interface are ordered + required: false + default: false + status: SUPPORTED + flavor: + type: string + description: flavor + required: false + status: SUPPORTED + image_name: + type: string + description: Image name + required: true + status: SUPPORTED + service_type: + type: string + description: Service type + required: true + status: SUPPORTED + constraints: + - valid_values: + - firewall + - analyzer + - source-nat + - loadbalancer + service_interface_type_list: + type: list + description: List of interface types + required: true + status: SUPPORTED + entry_schema: + type: string + constraints: + - valid_values: + - management + - left + - right + - other + service_instance_name: + type: string + description: Service instance name + required: true + status: SUPPORTED + interface_list: + type: list + description: List of interfaces + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.InterfaceData + service_mode: + type: string + description: Service mode + required: true + status: SUPPORTED + constraints: + - valid_values: + - transparent + - in-network + - in-network-nat + shared_ip_list: + type: list + description: Shared ips enabled + required: false + status: SUPPORTED + entry_schema: + type: boolean + attributes: + tenant_id: + type: string + description: Tenant id of the Service Instance + status: SUPPORTED + fq_name: + type: string + description: The FQ name of the service instance + status: SUPPORTED + service_template_name: + type: string + description: Service Template of the Service Instance + status: SUPPORTED + show: + type: string + description: All attributes + status: SUPPORTED + active_vms: + type: string + description: Number of service VMs active for this Service Instance + status: SUPPORTED + service_instance_name: + type: string + description: The name of the service instance + status: SUPPORTED + virtual_machines: + type: string + description: Service VMs for the Service Instance + status: SUPPORTED + status: + type: string + description: Status of the service instance + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailComputeGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailComputeGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..dff50856cd --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailComputeGlobalTypesServiceTemplate.yaml @@ -0,0 +1,91 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ContrailComputeGlobalTypes + template_version: 1.0.0 +description: Contrail Compute TOSCA Global Types +imports: +- ComputeGlobalTypes: + file: ComputeGlobalTypesServiceTemplate.yaml +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vfc.nodes.heat.contrail.Compute: + derived_from: org.openecomp.resource.vfc.nodes.Compute + properties: + flavor: + type: string + description: flavor + required: false + status: SUPPORTED + image_name: + type: string + description: Image name + required: true + status: SUPPORTED + availability_zone: + type: string + description: Availability zone to create servers in + required: false + status: SUPPORTED + service_type: + type: string + description: Service type + required: true + status: SUPPORTED + constraints: + - valid_values: + - firewall + - analyzer + - source-nat + - loadbalancer + availability_zone_enable: + type: boolean + description: Indicates availability zone is enabled + required: false + default: false + status: SUPPORTED + service_template_name: + type: string + description: Service template name + required: false + status: SUPPORTED + service_instance_name: + type: string + description: Service instance name + required: true + status: SUPPORTED + service_mode: + type: string + description: Service mode + required: true + status: SUPPORTED + constraints: + - valid_values: + - transparent + - in-network + - in-network-nat + attributes: + tenant_id: + type: string + description: Tenant id of the VM + status: SUPPORTED + fq_name: + type: string + description: fq_name + status: SUPPORTED + show: + type: string + description: All attributes + status: SUPPORTED + active_vms: + type: string + description: Number of active VMs + status: SUPPORTED + virtual_machines: + type: string + description: VMs of this compute + status: SUPPORTED + status: + type: string + description: status of the compute + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailNetworkRuleGlobalTypeServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailNetworkRuleGlobalTypeServiceTemplate.yaml new file mode 100644 index 0000000000..8038479153 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailNetworkRuleGlobalTypeServiceTemplate.yaml @@ -0,0 +1,131 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ContrailNetworkRuleGlobalType + template_version: 1.0.0 +description: Contrail Network Rule Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.contrail.network.rule.PortPairs: + derived_from: tosca.datatypes.Root + description: source and destination port pairs + properties: + start_port: + type: string + description: Start port + required: false + status: SUPPORTED + end_port: + type: string + description: End port + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrail.network.rule.Rule: + derived_from: tosca.datatypes.Root + description: policy rule + properties: + src_ports: + type: list + description: Source ports + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs + protocol: + type: string + description: Protocol + required: false + status: SUPPORTED + dst_addresses: + type: list + description: Destination addresses + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork + apply_service: + type: string + description: Service to apply + required: false + status: SUPPORTED + dst_ports: + type: list + description: Destination ports + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.PortPairs + src_addresses: + type: list + description: Source addresses + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork + direction: + type: string + description: Direction + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrail.network.rule.RuleList: + derived_from: tosca.datatypes.Root + description: list of policy rules + properties: + policy_rule: + type: list + description: Contrail network rule + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrail.network.rule.Rule + org.openecomp.datatypes.heat.contrail.network.rule.VirtualNetwork: + derived_from: tosca.datatypes.Root + description: source and destination addresses + properties: + virtual_network: + type: string + description: Virtual network + required: false + status: SUPPORTED +node_types: + org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules: + derived_from: tosca.nodes.Root + properties: + entries: + type: org.openecomp.datatypes.heat.contrail.network.rule.RuleList + description: A symbolic name for this contrail network rule + required: false + status: SUPPORTED + name: + type: string + description: A symbolic name for this contrail network rule + required: false + status: SUPPORTED + attributes: + tenant_id: + type: string + description: tenant_id + status: SUPPORTED + fq_name: + type: string + description: fq_name + status: SUPPORTED + show: + type: string + description: All attributes. + status: SUPPORTED + rules: + type: list + description: List of rules + status: SUPPORTED + entry_schema: + type: string + requirements: + - network: + capability: tosca.capabilities.Attachment + node: tosca.nodes.network.Network + relationship: org.openecomp.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailPortGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailPortGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..06857ed1dd --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailPortGlobalTypesServiceTemplate.yaml @@ -0,0 +1,66 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ContrailPortGlobalTypes + template_version: 1.0.0 +description: Contrail Port TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +- PortGlobalTypes: + file: PortGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.cp.nodes.heat.network.contrail.Port: + derived_from: org.openecomp.resource.cp.nodes.network.Port + properties: + static_routes: + type: list + description: An ordered list of static routes to be added to this interface + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.port.StaticRoute + virtual_network: + type: string + description: Virtual Network for this interface + required: true + status: SUPPORTED + static_route: + type: boolean + description: Static route enabled + required: false + default: false + status: SUPPORTED + allowed_address_pairs: + type: list + description: List of allowed address pair for this interface + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.contrail.AddressPair + shared_ip: + type: boolean + description: Shared ip enabled + required: false + default: false + status: SUPPORTED + ip_address: + type: string + description: IP for this interface + required: false + status: SUPPORTED + interface_type: + type: string + description: Interface type + required: true + status: SUPPORTED + constraints: + - valid_values: + - management + - left + - right + - other + attributes: + fq_name: + type: string + description: fq_name + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml new file mode 100644 index 0000000000..11e29bde76 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml @@ -0,0 +1,156 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ContrailV2NetworkRuleGlobalType + template_version: 1.0.0 +description: Contrail V2 Network Rule Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.contrailV2.network.rule.SrcVirtualNetwork: + derived_from: tosca.datatypes.Root + description: source addresses + properties: + network_policy_entries_policy_rule_src_addresses_virtual_network: + type: string + description: Source addresses Virtual network + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrailV2.network.rule.DstVirtualNetwork: + derived_from: tosca.datatypes.Root + description: destination addresses + properties: + network_policy_entries_policy_rule_dst_addresses_virtual_network: + type: string + description: Destination addresses Virtual network + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrailV2.network.rule.Rule: + derived_from: tosca.datatypes.Root + description: policy rule + properties: + network_policy_entries_policy_rule_dst_addresses: + type: list + description: Destination addresses + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.DstVirtualNetwork + network_policy_entries_policy_rule_dst_ports: + type: list + description: Destination ports + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.DstPortPairs + network_policy_entries_policy_rule_protocol: + type: string + description: Protocol + required: false + status: SUPPORTED + network_policy_entries_policy_rule_src_addresses: + type: list + description: Source addresses + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.SrcVirtualNetwork + network_policy_entries_policy_rule_direction: + type: string + description: Direction + required: false + status: SUPPORTED + network_policy_entries_policy_rule_src_ports: + type: list + description: Source ports + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.SrcPortPairs + network_policy_entries_policy_rule_action_list: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.ActionList + description: Action list + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrailV2.network.rule.ActionList: + derived_from: tosca.datatypes.Root + description: Action List + properties: + network_policy_entries_policy_rule_action_list_simple_action: + type: string + description: Simple Action + required: false + status: SUPPORTED + network_policy_entries_policy_rule_action_list_apply_service: + type: list + description: Apply Service + required: false + status: SUPPORTED + entry_schema: + type: string + org.openecomp.datatypes.heat.contrailV2.network.rule.RuleList: + derived_from: tosca.datatypes.Root + description: list of policy rules + properties: + network_policy_entries_policy_rule: + type: list + description: Contrail network rule + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.Rule + org.openecomp.datatypes.heat.contrailV2.network.rule.DstPortPairs: + derived_from: tosca.datatypes.Root + description: destination port pairs + properties: + network_policy_entries_policy_rule_dst_ports_start_port: + type: string + description: Start port + required: false + status: SUPPORTED + network_policy_entries_policy_rule_dst_ports_end_port: + type: string + description: End port + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrailV2.network.rule.SrcPortPairs: + derived_from: tosca.datatypes.Root + description: source port pairs + properties: + network_policy_entries_policy_rule_src_ports_start_port: + type: string + description: Start port + required: false + status: SUPPORTED + network_policy_entries_policy_rule_src_ports_end_port: + type: string + description: End port + required: false + status: SUPPORTED +node_types: + org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules: + derived_from: tosca.nodes.Root + properties: + name: + type: string + description: A symbolic name for this contrail v2 network rule + required: false + status: SUPPORTED + network_policy_entries: + type: org.openecomp.datatypes.heat.contrailV2.network.rule.RuleList + description: A symbolic name for this contrail v2 network rule + required: false + status: SUPPORTED + attributes: + fq_name: + type: string + description: fq_name + status: SUPPORTED + requirements: + - network: + capability: tosca.capabilities.Attachment + node: tosca.nodes.network.Network + relationship: org.openecomp.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml new file mode 100644 index 0000000000..61c3af6e82 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml @@ -0,0 +1,71 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ContrailV2VirtualMachineInterfaceGlobalType + template_version: 1.0.0 +description: Contrail Virtual Machine Interface TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +- PortGlobalTypes: + file: PortGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties: + derived_from: tosca.datatypes.Root + description: Virtual Machine Interface Properties. + properties: + virtual_machine_interface_properties_service_interface_type: + type: string + description: Service Interface Type. + required: false + status: SUPPORTED +node_types: + org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface: + derived_from: org.openecomp.resource.cp.nodes.network.Port + properties: + virtual_machine_intefrace_mac_addresses: + type: list + description: List of mac addresses. + required: false + status: SUPPORTED + entry_schema: + type: string + name: + type: string + description: Virtual Machine Interface name + required: false + status: SUPPORTED + security_group_refs: + type: list + description: List of security groups. + required: false + status: SUPPORTED + entry_schema: + type: string + virtual_network_refs: + type: list + description: List of virtual networks. + required: false + status: SUPPORTED + entry_schema: + type: string + virtual_machine_interface_properties: + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties + description: virtual machine interface properties. + required: false + status: SUPPORTED + port_tuple_refs: + type: list + description: List of port tuples. + required: false + status: SUPPORTED + entry_schema: + type: string + attributes: + fq_name: + type: string + description: The FQ name of the Virtual Network. + status: SUPPORTED + show: + type: string + description: All attributes. + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml new file mode 100644 index 0000000000..dcf36dbafa --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml @@ -0,0 +1,141 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ContrailV2VirtualNetworkGlobalType + template_version: 1.0.0 +description: Contrail V2 Virtual Network Global Types +imports: +- NetworkGlobalTypes: + file: NetworkGlobalTypesServiceTemplate.yaml +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefData: + derived_from: tosca.datatypes.Root + description: network policy refs data + properties: + network_policy_refs_data_sequence: + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence + description: Network Policy ref data sequence + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefDataSequence: + derived_from: tosca.datatypes.Root + description: network policy refs data sequence + properties: + network_policy_refs_data_sequence_major: + type: integer + description: Network Policy ref data sequence Major + required: false + status: SUPPORTED + network_policy_refs_data_sequence_minor: + type: integer + description: Network Policy ref data sequence Minor + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet: + derived_from: tosca.datatypes.Root + description: Network Ipam Ref Data Subnet + properties: + network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: + type: string + description: Network ipam refs data ipam subnets ip prefix len + required: false + status: SUPPORTED + network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: + type: string + description: Network ipam refs data ipam subnets ip prefix + required: false + status: SUPPORTED + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.IpamRefData: + derived_from: tosca.datatypes.Root + description: Network Ipam Ref Data + properties: + network_ipam_refs_data_ipam_subnets: + type: list + description: Network ipam refs data ipam subnets + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList + org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnetList: + derived_from: tosca.datatypes.Root + description: Network Ipam Ref Data Subnet List + properties: + network_ipam_refs_data_ipam_subnets_subnet: + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.ref.data.IpamSubnet + description: Network ipam refs data ipam subnets + required: false + status: SUPPORTED + network_ipam_refs_data_ipam_subnets_addr_from_start: + type: string + description: Network ipam refs data ipam subnets addr from start + required: false + status: SUPPORTED +node_types: + org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork: + derived_from: org.openecomp.resource.vl.nodes.network.Network + properties: + network_ipam_refs_data: + type: list + description: IPAM references Data + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.IpamRefData + network_policy_refs_data: + type: list + description: Policy references data + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.contrailV2.virtual.network.rule.RefData + network_ipam_refs: + type: list + description: IPAM references + required: false + status: SUPPORTED + entry_schema: + type: string + network_policy_refs: + type: list + description: Policy references + required: false + status: SUPPORTED + entry_schema: + type: string + subnets: + type: map + description: Network related subnets + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + attributes: + fq_name: + type: string + description: fq_name + status: SUPPORTED + subnets_name: + type: list + description: Subnets name of this network + status: SUPPORTED + entry_schema: + type: string + subnets_show: + type: map + description: Detailed information about each subnet + status: SUPPORTED + entry_schema: + type: string + subnets: + type: map + description: Network related subnets + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml new file mode 100644 index 0000000000..5583c68278 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml @@ -0,0 +1,86 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: ContrailVirtualNetworkGlobalType + template_version: 1.0.0 +description: Contrail Virtual Network Global Types +imports: +- NetworkGlobalTypes: + file: NetworkGlobalTypesServiceTemplate.yaml +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork: + derived_from: org.openecomp.resource.vl.nodes.network.Network + properties: + shared: + type: string + description: Is virtual network shared + required: false + status: SUPPORTED + forwarding_mode: + type: string + description: forwarding mode of the virtual network + required: false + status: SUPPORTED + external: + type: string + description: Is virtual network external + required: false + status: SUPPORTED + allow_transit: + type: string + description: Whether this network should be transitive. + required: false + status: SUPPORTED + flood_unknown_unicast: + type: string + description: flood L2 packets on network + required: false + status: SUPPORTED + route_targets: + type: list + description: route targets associated with the virtual network + required: false + status: SUPPORTED + entry_schema: + type: string + subnets: + type: map + description: Network related subnets + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + attributes: + fq_name: + type: string + description: fq_name + status: SUPPORTED + show: + type: string + description: All attributes. + status: SUPPORTED + subnets_name: + type: list + description: Subnets name of this network + status: SUPPORTED + entry_schema: + type: string + subnets_show: + type: map + description: Detailed information about each subnet + status: SUPPORTED + entry_schema: + type: string + subnets: + type: map + description: Network related subnets + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/GlobalSubstitutionTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/GlobalSubstitutionTypesServiceTemplate.yaml new file mode 100644 index 0000000000..1ce3fc54ff --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/GlobalSubstitutionTypesServiceTemplate.yaml @@ -0,0 +1,93 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: GlobalSubstitutionTypes +imports: +- NeutronPortGlobalTypes: + file: NeutronPortGlobalTypesServiceTemplate.yaml +- NeutronNetGlobalTypes: + file: NeutronNetGlobalTypesServiceTemplate.yaml +- CommonGlobalTypes: + file: CommonGlobalTypesServiceTemplate.yaml +- CinderVolumeGlobalTypes: + file: CinderVolumeGlobalTypesServiceTemplate.yaml +- ContrailNetworkRuleGlobalType: + file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml +- NeutronSecurityRulesGlobalTypes: + file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml +- NovaServerGlobalTypes: + file: NovaServerGlobalTypesServiceTemplate.yaml +- ContrailVirtualNetworkGlobalType: + file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml +- AbstractSubstituteGlobalTypes: + file: AbstractSubstituteGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.abstract.nodes.heat.nested: + derived_from: org.openecomp.resource.abstract.nodes.AbstractSubstitute + properties: + cmaui_names: + type: list + description: CMAUI1, CMAUI2 server names + entry_schema: + type: String + p1: + type: string + description: UID of OAM network + cmaui_image: + type: string + description: Image for CMAUI server + cmaui_flavor: + type: string + description: Flavor for CMAUI server + security_group_name: + description: not impotrtant + availability_zone_0: + type: string + description: availabilityzone name + requirements: + - local_storage_server_cmaui: + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + - link_cmaui_port_0: + capability: tosca.capabilities.network.Linkable + node: tosca.nodes.Root + relationship: tosca.relationships.network.LinksTo + occurrences: + - 1 + - 1 + capabilities: + host_server_cmaui: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.SoftwareComponent + occurrences: + - 1 + - UNBOUNDED + os_server_cmaui: + type: tosca.capabilities.OperatingSystem + occurrences: + - 1 + - UNBOUNDED + endpoint_server_cmaui: + type: tosca.capabilities.Endpoint.Admin + occurrences: + - 1 + - UNBOUNDED + binding_server_cmaui: + type: tosca.capabilities.network.Bindable + occurrences: + - 1 + - UNBOUNDED + scalable_server_cmaui: + type: tosca.capabilities.Scalable + occurrences: + - 1 + - UNBOUNDED + attachment_cmaui_port_0: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NativeTypesServiceTemplateServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NativeTypesServiceTemplateServiceTemplate.yaml new file mode 100644 index 0000000000..ffadfc5af5 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NativeTypesServiceTemplateServiceTemplate.yaml @@ -0,0 +1,208 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: NativeTypesServiceTemplate + template_version: 1.0.0 +description: TOSCA Native Node Types +capability_types: + tosca.capabilities.nfv.Metric: + derived_from: tosca.capabilities.Root +node_types: + tosca.nodes.Compute: + derived_from: tosca.nodes.Root + attributes: + private_address: + type: string + description: private address + status: SUPPORTED + public_address: + type: string + description: public_address + status: SUPPORTED + networks: + type: map + description: networks + status: SUPPORTED + entry_schema: + type: tosca.datatypes.network.NetworkInfo + ports: + type: map + description: ports + status: SUPPORTED + entry_schema: + type: tosca.datatypes.network.PortInfo + requirements: + - local_storage: + capability: tosca.capabilities.Attachment + node: tosca.nodes.BlockStorage + relationship: tosca.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED + capabilities: + scalable: + type: tosca.capabilities.Scalable + occurrences: + - 1 + - UNBOUNDED + endpoint: + type: tosca.capabilities.Endpoint.Admin + occurrences: + - 1 + - UNBOUNDED + os: + type: tosca.capabilities.OperatingSystem + occurrences: + - 1 + - UNBOUNDED + host: + type: tosca.capabilities.Container + valid_source_types: + - tosca.nodes.SoftwareComponent + occurrences: + - 1 + - UNBOUNDED + binding: + type: tosca.capabilities.network.Bindable + occurrences: + - 1 + - UNBOUNDED + tosca.nodes.network.Port: + derived_from: tosca.nodes.Root + properties: + ip_range_end: + type: string + required: false + status: SUPPORTED + ip_range_start: + type: string + required: false + status: SUPPORTED + ip_address: + type: string + required: false + status: SUPPORTED + is_default: + type: boolean + required: false + default: false + status: SUPPORTED + order: + type: integer + required: true + default: 0 + status: SUPPORTED + constraints: + - greater_or_equal: 0 + requirements: + - link: + capability: tosca.capabilities.network.Linkable + node: tosca.nodes.Root + relationship: tosca.relationships.network.LinksTo + occurrences: + - 1 + - 1 + - binding: + capability: tosca.capabilities.network.Bindable + node: tosca.nodes.Root + relationship: tosca.relationships.network.BindsTo + occurrences: + - 1 + - 1 + tosca.nodes.Root: + attributes: + tosca_name: + type: string + description: tosca name + status: SUPPORTED + state: + type: string + description: state + status: SUPPORTED + tosca_id: + type: string + description: tosca id + status: SUPPORTED + interfaces: { + } + tosca.nodes.network.Network: + derived_from: tosca.nodes.Root + properties: + physical_network: + type: string + required: false + status: SUPPORTED + dhcp_enabled: + type: boolean + required: false + default: true + status: SUPPORTED + segmentation_id: + type: string + required: false + status: SUPPORTED + network_id: + type: string + required: false + status: SUPPORTED + ip_version: + type: integer + required: false + default: 4 + status: SUPPORTED + constraints: + - valid_values: + - 4 + - 6 + start_ip: + type: string + required: false + status: SUPPORTED + network_name: + type: string + required: false + status: SUPPORTED + cidr: + type: string + required: false + status: SUPPORTED + gateway_ip: + type: string + required: false + status: SUPPORTED + network_type: + type: string + required: false + status: SUPPORTED + end_ip: + type: string + required: false + status: SUPPORTED + capabilities: + link: + type: tosca.capabilities.network.Linkable + occurrences: + - 1 + - UNBOUNDED + tosca.nodes.BlockStorage: + derived_from: tosca.nodes.Root + properties: + size: + type: scalar-unit.size + required: false + status: SUPPORTED + constraints: + - greater_or_equal: 1 MB + volume_id: + type: string + required: false + status: SUPPORTED + snapshot_id: + type: string + required: false + status: SUPPORTED + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NetworkGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NetworkGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..a3ae39ac1c --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NetworkGlobalTypesServiceTemplate.yaml @@ -0,0 +1,11 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: NetworkGlobalTypes + template_version: 1.0.0 +description: Network TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vl.nodes.network.Network: + derived_from: tosca.nodes.network.Network \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronNetGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronNetGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..3dbb24b0f2 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronNetGlobalTypesServiceTemplate.yaml @@ -0,0 +1,99 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: NeutronNetGlobalTypes + template_version: 1.0.0 +description: Neutron Network TOSCA Global Types +imports: +- NetworkGlobalTypes: + file: NetworkGlobalTypesServiceTemplate.yaml +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.vl.nodes.heat.network.neutron.Net: + derived_from: org.openecomp.resource.vl.nodes.network.Network + properties: + dhcp_agent_ids: + type: list + description: The IDs of the DHCP agent to schedule the network + required: false + status: SUPPORTED + entry_schema: + type: string + tenant_id: + type: string + description: The ID of the tenant which will own the network + required: false + status: SUPPORTED + port_security_enabled: + type: boolean + description: Flag to enable/disable port security on the network + required: false + status: SUPPORTED + shared: + type: boolean + description: Whether this network should be shared across all tenants + required: false + default: false + status: SUPPORTED + admin_state_up: + type: boolean + description: A boolean value specifying the administrative status of the network + required: false + default: true + status: SUPPORTED + qos_policy: + type: string + description: The name or ID of QoS policy to attach to this network + required: false + status: SUPPORTED + subnets: + type: map + description: Network related subnets + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + value_specs: + type: map + description: Extra parameters to include in the request + required: false + default: { + } + status: SUPPORTED + entry_schema: + type: string + attributes: + qos_policy_id: + type: string + description: The QoS policy ID attached to this network + status: SUPPORTED + show: + type: string + description: Detailed information about resource + status: SUPPORTED + subnets_name: + type: list + description: Subnets name of this network + status: SUPPORTED + entry_schema: + type: string + subnets: + type: map + description: Network related subnets + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.Subnet + mtu: + type: scalar-unit.size + description: The maximum transmission unit size(in bytes) for the network + status: SUPPORTED + status: + type: string + description: The status of the network + status: SUPPORTED + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronPortGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronPortGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..4613b70f74 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronPortGlobalTypesServiceTemplate.yaml @@ -0,0 +1,153 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: NeutronPortGlobalTypes + template_version: 1.0.0 +description: Neutron Port TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +- PortGlobalTypes: + file: PortGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.neutron.port.FixedIps: + derived_from: tosca.datatypes.Root + description: subnet/ip_address + properties: + subnet: + type: string + description: Subnet in which to allocate the IP address for this port + required: false + status: SUPPORTED + ip_address: + type: string + description: IP address desired in the subnet for this port + required: false + status: SUPPORTED +node_types: + org.openecomp.resource.cp.nodes.heat.network.neutron.Port: + derived_from: org.openecomp.resource.cp.nodes.network.Port + properties: + port_security_enabled: + type: boolean + description: Flag to enable/disable port security on the network + required: false + status: SUPPORTED + device_id: + type: string + description: Device ID of this port + required: false + status: SUPPORTED + qos_policy: + type: string + description: The name or ID of QoS policy to attach to this network + required: false + status: SUPPORTED + allowed_address_pairs: + type: list + description: Additional MAC/IP address pairs allowed to pass through the port + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.AddressPair + binding:vnic_type: + type: string + description: The vnic type to be bound on the neutron port + required: false + status: SUPPORTED + constraints: + - valid_values: + - macvtap + - direct + - normal + value_specs: + type: map + description: Extra parameters to include in the request + required: false + default: { + } + status: SUPPORTED + entry_schema: + type: string + device_owner: + type: string + description: Name of the network owning the port + required: false + status: SUPPORTED + network: + type: string + description: Network this port belongs to + required: false + status: SUPPORTED + replacement_policy: + type: string + description: Policy on how to respond to a stack-update for this resource + required: false + default: AUTO + status: SUPPORTED + constraints: + - valid_values: + - REPLACE_ALWAYS + - AUTO + security_groups: + type: list + description: List of security group names or IDs + required: false + status: SUPPORTED + entry_schema: + type: string + fixed_ips: + type: list + description: Desired IPs for this port + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.neutron.port.FixedIps + mac_address: + type: string + description: MAC address to give to this port + required: false + status: SUPPORTED + admin_state_up: + type: boolean + description: A boolean value specifying the administrative status of the network + required: false + default: true + status: SUPPORTED + name: + type: string + description: A symbolic name for this port + required: false + status: SUPPORTED + attributes: + tenant_id: + type: string + description: Tenant owning the port + status: SUPPORTED + network_id: + type: string + description: Unique identifier for the network owning the port + status: SUPPORTED + qos_policy_id: + type: string + description: The QoS policy ID attached to this network + status: SUPPORTED + show: + type: string + description: Detailed information about resource + status: SUPPORTED + subnets: + type: list + description: Subnets of this network + status: SUPPORTED + entry_schema: + type: string + status: + type: string + description: The status of the network + status: SUPPORTED + capabilities: + attachment: + type: tosca.capabilities.Attachment + occurrences: + - 1 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronSecurityRulesGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronSecurityRulesGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..3e4a465689 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NeutronSecurityRulesGlobalTypesServiceTemplate.yaml @@ -0,0 +1,116 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: NeutronSecurityRulesGlobalTypes + template_version: 1.0.0 +description: Neutron Security Rules TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule: + derived_from: tosca.datatypes.Root + description: Rules Pairs + properties: + remote_group_id: + type: string + description: The remote group ID to be associated with this security group rule + required: false + status: SUPPORTED + protocol: + type: string + description: The protocol that is matched by the security group rule + required: false + status: SUPPORTED + constraints: + - valid_values: + - tcp + - udp + - icmp + ethertype: + type: string + description: Ethertype of the traffic + required: false + default: IPv4 + status: SUPPORTED + constraints: + - valid_values: + - IPv4 + - IPv6 + port_range_max: + type: integer + description: 'The maximum port number in the range that is matched by the + security group rule. ' + required: false + status: SUPPORTED + constraints: + - in_range: + - 0 + - 65535 + remote_ip_prefix: + type: string + description: The remote IP prefix (CIDR) to be associated with this security group rule + required: false + status: SUPPORTED + remote_mode: + type: string + description: Whether to specify a remote group or a remote IP prefix + required: false + default: remote_ip_prefix + status: SUPPORTED + constraints: + - valid_values: + - remote_ip_prefix + - remote_group_id + direction: + type: string + description: The direction in which the security group rule is applied + required: false + default: ingress + status: SUPPORTED + constraints: + - valid_values: + - egress + - ingress + port_range_min: + type: integer + description: The minimum port number in the range that is matched by the security group rule. + required: false + status: SUPPORTED + constraints: + - in_range: + - 0 + - 65535 +node_types: + org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules: + derived_from: tosca.nodes.Root + properties: + name: + type: string + description: A symbolic name for this security group, which is not required to be unique. + required: false + status: SUPPORTED + description: + type: string + description: Description of the security group + required: false + status: SUPPORTED + rules: + type: list + description: List of security group rules + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.neutron.SecurityRules.Rule + attributes: + show: + type: string + description: Detailed information about resource + status: SUPPORTED + requirements: + - port: + capability: tosca.capabilities.Attachment + node: org.openecomp.resource.cp.nodes.heat.network.neutron.Port + relationship: org.openecomp.relationships.AttachesTo + occurrences: + - 0 + - UNBOUNDED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NovaServerGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NovaServerGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..2a7069a932 --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/NovaServerGlobalTypesServiceTemplate.yaml @@ -0,0 +1,251 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: NovaServerGlobalTypes + template_version: 1.0.0 +description: Nova Server TOSCA Global Types +imports: +- ComputeGlobalTypes: + file: ComputeGlobalTypesServiceTemplate.yaml +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +data_types: + org.openecomp.datatypes.heat.novaServer.network.PortExtraProperties: + derived_from: tosca.datatypes.Root + description: Nova server network expand properties for port + properties: + port_security_enabled: + type: boolean + description: Flag to enable/disable port security on the port + required: false + status: SUPPORTED + mac_address: + type: string + description: MAC address to give to this port + required: false + status: SUPPORTED + admin_state_up: + type: boolean + description: The administrative state of this port + required: false + default: true + status: SUPPORTED + qos_policy: + type: string + description: The name or ID of QoS policy to attach to this port + required: false + status: SUPPORTED + allowed_address_pairs: + type: list + description: Additional MAC/IP address pairs allowed to pass through the port + required: false + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.network.AddressPair + binding:vnic_type: + type: string + description: The vnic type to be bound on the neutron port + required: false + status: SUPPORTED + constraints: + - valid_values: + - macvtap + - direct + - normal + value_specs: + type: map + description: Extra parameters to include in the request + required: false + default: { + } + status: SUPPORTED + entry_schema: + type: string + org.openecomp.datatypes.heat.novaServer.network.AddressInfo: + derived_from: tosca.datatypes.network.NetworkInfo + description: Network addresses with corresponding port id + properties: + port_id: + type: string + description: Port id + required: false + status: SUPPORTED +node_types: + org.openecomp.resource.vfc.nodes.heat.nova.Server: + derived_from: org.openecomp.resource.vfc.nodes.Compute + properties: + admin_pass: + type: string + description: The administrator password for the server + required: false + status: SUPPORTED + availability_zone: + type: string + description: Availability zone to create servers in + required: false + status: SUPPORTED + image: + type: string + description: The ID or name of the image to boot with + required: false + status: SUPPORTED + image_update_policy: + type: string + description: Policy on how to apply an image-id update + required: false + default: REBUILD + status: SUPPORTED + constraints: + - valid_values: + - REBUILD_PRESERVE_EPHEMERAL + - REPLACE + - REBUILD + metadata: + type: json + description: Arbitrary JSON metadata to store for this server + required: false + status: SUPPORTED + contrail_service_instance_ind: + type: boolean + description: Nova server related to service instance indicator + required: false + default: false + status: SUPPORTED + user_data_update_policy: + type: string + description: Policy on how to apply a user_data update + required: false + default: REPLACE + status: SUPPORTED + constraints: + - valid_values: + - REPLACE + - IGNORE + flavor_update_policy: + type: string + description: Policy on how to apply a flavor update + required: false + default: RESIZE + status: SUPPORTED + constraints: + - valid_values: + - RESIZE + - REPLACE + user_data: + type: string + description: User data script to be executed by cloud-init + required: false + default: '' + status: SUPPORTED + flavor: + type: string + description: The ID or name of the flavor to boot onto + required: true + status: SUPPORTED + key_name: + type: string + description: Name of keypair to inject into the server + required: false + status: SUPPORTED + reservation_id: + type: string + description: A UUID for the set of servers being requested + required: false + status: SUPPORTED + security_groups: + type: list + description: List of security group names or IDs + required: false + default: [ + ] + status: SUPPORTED + entry_schema: + type: string + config_drive: + type: boolean + description: enable config drive on the server + required: false + status: SUPPORTED + personality: + type: map + description: A map of files to create/overwrite on the server upon boot + required: false + default: { + } + status: SUPPORTED + entry_schema: + type: string + software_config_transport: + type: string + description: How the server should receive the metadata required for software configuration + required: false + default: POLL_SERVER_CFN + status: SUPPORTED + constraints: + - valid_values: + - POLL_SERVER_CFN + - POLL_SERVER_HEAT + - POLL_TEMP_URL + - ZAQAR_MESSAGE + user_data_format: + type: string + description: How the user_data should be formatted for the server + required: false + default: HEAT_CFNTOOLS + status: SUPPORTED + constraints: + - valid_values: + - SOFTWARE_CONFIG + - RAW + - HEAT_CFNTOOLS + diskConfig: + type: string + description: Control how the disk is partitioned when the server is created + required: false + status: SUPPORTED + constraints: + - valid_values: + - AUTO + - MANUAL + name: + type: string + description: Server name + required: false + status: SUPPORTED + scheduler_hints: + type: map + description: Arbitrary key-value pairs specified by the client to help boot a server + required: false + status: SUPPORTED + entry_schema: + type: string + attributes: + accessIPv4: + type: string + description: The manually assigned alternative public IPv4 address of the server + status: SUPPORTED + addresses: + type: map + description: A dict of all network addresses with corresponding port_id + status: SUPPORTED + entry_schema: + type: org.openecomp.datatypes.heat.novaServer.network.AddressInfo + accessIPv6: + type: string + description: The manually assigned alternative public IPv6 address of the server + status: SUPPORTED + instance_name: + type: string + description: AWS compatible instance name + status: SUPPORTED + name: + type: string + description: Name of the server + status: SUPPORTED + show: + type: string + description: Detailed information about resource + status: SUPPORTED + console_urls: + type: string + description: URLs of servers consoles + status: SUPPORTED \ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/PortGlobalTypesServiceTemplate.yaml b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/PortGlobalTypesServiceTemplate.yaml new file mode 100644 index 0000000000..09a6e33c9e --- /dev/null +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-core/src/test/resources/mock/toscaGlobalServiceTemplates/PortGlobalTypesServiceTemplate.yaml @@ -0,0 +1,11 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: PortGlobalTypes + template_version: 1.0.0 +description: Port TOSCA Global Types +imports: +- common_definitions: + file: CommonGlobalTypesServiceTemplate.yaml +node_types: + org.openecomp.resource.cp.nodes.network.Port: + derived_from: tosca.nodes.network.Port \ No newline at end of file -- cgit 1.2.3-korg