use of org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoGenericVnf in project so by onap.
the class BuildingBlockTestDataSetup method buildGenericVnf.
public GenericVnf buildGenericVnf() {
genericVnfCounter++;
GenericVnf genericVnf = new GenericVnf();
genericVnf.setVnfId("testVnfId" + genericVnfCounter);
genericVnf.setVnfName("testVnfName" + genericVnfCounter);
genericVnf.setVnfType("testVnfType" + genericVnfCounter);
Platform platform = new Platform();
platform.setPlatformName("testPlatformName");
genericVnf.setPlatform(platform);
LineOfBusiness lob = new LineOfBusiness();
lob.setLineOfBusinessName("testLineOfBusinessName");
genericVnf.setLineOfBusiness(lob);
ModelInfoGenericVnf modelInfoGenericVnf = new ModelInfoGenericVnf();
modelInfoGenericVnf.setModelName("testModelName" + genericVnfCounter);
modelInfoGenericVnf.setModelCustomizationUuid("testModelCustomizationUUID" + genericVnfCounter);
modelInfoGenericVnf.setModelInvariantUuid("testModelInvariantUUID" + genericVnfCounter);
modelInfoGenericVnf.setModelVersion("testModelVersion" + genericVnfCounter);
modelInfoGenericVnf.setModelUuid("testModelUUID" + genericVnfCounter);
modelInfoGenericVnf.setModelInstanceName("testModelInstanceName" + genericVnfCounter);
genericVnf.setModelInfoGenericVnf(modelInfoGenericVnf);
return genericVnf;
}
use of org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoGenericVnf in project so by onap.
the class BBInputSetupTest method testMapCatalogVnf.
@Test
public void testMapCatalogVnf() {
ModelInfoGenericVnf modelInfoGenericVnf = new ModelInfoGenericVnf();
GenericVnf genericVnf = new GenericVnf();
RequestDetails requestDetails = new RequestDetails();
ModelInfo modelInfo = new ModelInfo();
modelInfo.setModelCustomizationUuid("modelCustomizationUUID");
requestDetails.setModelInfo(modelInfo);
Service service = new Service();
VnfResourceCustomization resourceCust = new VnfResourceCustomization();
resourceCust.setModelCustomizationUUID("vnfModelCustomizationUUID");
service.getVnfCustomizations().add(resourceCust);
resourceCust.setModelCustomizationUUID("modelCustomizationUUID");
doReturn(modelInfoGenericVnf).when(bbInputSetupMapperLayer).mapCatalogVnfToVnf(resourceCust);
SPY_bbInputSetup.mapCatalogVnf(genericVnf, modelInfo, service);
assertEquals(modelInfoGenericVnf, genericVnf.getModelInfoGenericVnf());
}
use of org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoGenericVnf in project so by onap.
the class ConfigAssignVnfTest method createGenericVnf.
private GenericVnf createGenericVnf() {
GenericVnf genericVnf = new GenericVnf();
genericVnf.setVnfId(GENERIC_VNF_ID);
genericVnf.setVnfName(GENERIC_VNF_NAME);
ModelInfoGenericVnf modelInfoGenericVnf = new ModelInfoGenericVnf();
modelInfoGenericVnf.setModelCustomizationUuid(TARGET_VNF_MODEL_CUSTOMIZATION_UUID);
modelInfoGenericVnf.setBlueprintName("blueprintTest");
modelInfoGenericVnf.setBlueprintVersion("blueprintVerTest");
genericVnf.setModelInfoGenericVnf(modelInfoGenericVnf);
return genericVnf;
}
use of org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoGenericVnf in project so by onap.
the class VnfmAdapterCreateVnfTaskTest method getModelInfoGenericVnf.
private ModelInfoGenericVnf getModelInfoGenericVnf() {
final ModelInfoGenericVnf modelInfoGenericVnf = new ModelInfoGenericVnf();
modelInfoGenericVnf.setModelInstanceName(MODEL_INSTANCE_NAME);
return modelInfoGenericVnf;
}
use of org.onap.so.bpmn.servicedecomposition.modelinfo.ModelInfoGenericVnf in project so by onap.
the class SdncInputParametersProviderImplTest method getGenericVnf.
private GenericVnf getGenericVnf() {
final GenericVnf genericVnf = getGenericVnf(GENERIC_VNF_TYPE);
final ModelInfoGenericVnf modelInfoGenericVnf = new ModelInfoGenericVnf();
modelInfoGenericVnf.setModelName(MODEL_NAME);
genericVnf.setModelInfoGenericVnf(modelInfoGenericVnf);
return genericVnf;
}
Aggregations