Search in sources :

Example 11 with NetworkResource

use of org.onap.so.db.catalog.beans.NetworkResource in project so by onap.

the class CatalogDbAdapterRest method resourceRecipe.

/**
 * Get the resource recipe info from catalog <br>
 *
 * @param rmUuid resource model uuid
 * @return the recipe information of the resource.
 * @since ONAP Beijing Release
 */
@GET
@Path("resourceRecipe")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response resourceRecipe(@QueryParam("resourceModelUuid") String rmUuid, @QueryParam("action") String action) {
    int respStatus = HttpStatus.SC_OK;
    String entity = "";
    try {
        if (rmUuid != null && !"".equals(rmUuid)) {
            logger.debug("Query recipe by resource model uuid: {}", rmUuid);
            // check vnf and network and ar, the resource could be any resource.
            Recipe recipe = null;
            VnfResource vnf = vnfResourceRepo.findResourceByModelUUID(rmUuid);
            if (vnf != null) {
                recipe = vnfRecipeRepo.findFirstVnfRecipeByNfRoleAndActionAndVersionStr(vnf.getModelName(), action, vnf.getModelVersion());
                // for network service fetch the default recipe
                if (recipe == null && vnf.getSubCategory().equalsIgnoreCase(NETWORK_SERVICE)) {
                    recipe = vnfRecipeRepo.findFirstVnfRecipeByNfRoleAndAction("NS_DEFAULT", action);
                }
            }
            if (null == recipe) {
                NetworkResource nResource = networkResourceRepo.findResourceByModelUUID(rmUuid);
                if (nResource != null) {
                    recipe = networkRecipeRepo.findFirstByModelNameAndActionAndVersionStr(nResource.getModelName(), action, nResource.getModelVersion());
                    // for network fetch the default recipe
                    if (recipe == null) {
                        recipe = networkRecipeRepo.findFirstByModelNameAndAction("SDNC_DEFAULT", action);
                    }
                }
            }
            if (null == recipe) {
                AllottedResource arResource = arResourceRepo.findResourceByModelUUID(rmUuid);
                if (arResource != null) {
                    recipe = arRecipeRepo.findByModelNameAndActionAndVersion(arResource.getModelName(), action, arResource.getModelVersion());
                }
            }
            if (null == recipe) {
                InstanceGroup grpResource = instanceGroupRepository.findByModelUUID(rmUuid);
                if (grpResource != null) {
                    recipe = vnfRecipeRepo.findFirstVnfRecipeByNfRoleAndActionAndVersionStr(grpResource.getModelName(), action, grpResource.getModelVersion());
                }
            }
            if (recipe != null) {
                QueryResourceRecipe resourceRecipe = new QueryResourceRecipe(recipe);
                entity = resourceRecipe.JSON2(false, false);
            } else {
                respStatus = HttpStatus.SC_NOT_FOUND;
            }
        } else {
            throw new Exception("Incoming parameter is null or blank");
        }
        return Response.status(respStatus).entity(entity).header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON).build();
    } catch (Exception e) {
        logger.error("Exception during query recipe by resource model uuid: ", e);
        CatalogQueryException excResp = new CatalogQueryException(e.getMessage(), CatalogQueryExceptionCategory.INTERNAL, Boolean.FALSE, null);
        return Response.status(HttpStatus.SC_INTERNAL_SERVER_ERROR).entity(new GenericEntity<CatalogQueryException>(excResp) {
        }).build();
    }
}
Also used : NetworkResource(org.onap.so.db.catalog.beans.NetworkResource) VnfResource(org.onap.so.db.catalog.beans.VnfResource) QueryResourceRecipe(org.onap.so.adapters.catalogdb.catalogrest.QueryResourceRecipe) VnfRecipe(org.onap.so.db.catalog.beans.VnfRecipe) Recipe(org.onap.so.db.catalog.beans.Recipe) QueryResourceRecipe(org.onap.so.adapters.catalogdb.catalogrest.QueryResourceRecipe) CatalogQueryException(org.onap.so.adapters.catalogdb.catalogrest.CatalogQueryException) AllottedResource(org.onap.so.db.catalog.beans.AllottedResource) CatalogQueryException(org.onap.so.adapters.catalogdb.catalogrest.CatalogQueryException) InstanceGroup(org.onap.so.db.catalog.beans.InstanceGroup) Path(javax.ws.rs.Path) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET)

Example 12 with NetworkResource

use of org.onap.so.db.catalog.beans.NetworkResource in project so by onap.

the class ToscaResourceInstaller method createNetworkCollection.

protected CollectionNetworkResourceCustomization createNetworkCollection(IEntityDetails cnrEntity, ToscaResourceStructure toscaResourceStructure, Service service) {
    CollectionNetworkResourceCustomization collectionNetworkResourceCustomization = new CollectionNetworkResourceCustomization();
    // **** Build Object to populate Collection_Resource table
    CollectionResource collectionResource = new CollectionResource();
    collectionResource.setModelName(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_NAME));
    collectionResource.setModelInvariantUUID(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_INVARIANTUUID));
    collectionResource.setModelUUID(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_UUID));
    collectionResource.setModelVersion(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_VERSION));
    collectionResource.setDescription(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_DESCRIPTION));
    collectionResource.setToscaNodeType(cnrEntity.getToscaType());
    toscaResourceStructure.setCatalogCollectionResource(collectionResource);
    // **** Build object to populate Collection_Resource_Customization table
    NetworkCollectionResourceCustomization ncfc = new NetworkCollectionResourceCustomization();
    ncfc.setFunction(getLeafPropertyValue(cnrEntity, "cr_function"));
    ncfc.setRole(getLeafPropertyValue(cnrEntity, "cr_role"));
    ncfc.setType(getLeafPropertyValue(cnrEntity, "cr_type"));
    ncfc.setModelInstanceName(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_NAME));
    ncfc.setModelCustomizationUUID(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_CUSTOMIZATIONUUID));
    Set<CollectionNetworkResourceCustomization> networkResourceCustomizationSet = new HashSet<>();
    networkResourceCustomizationSet.add(collectionNetworkResourceCustomization);
    ncfc.setNetworkResourceCustomization(networkResourceCustomizationSet);
    ncfc.setCollectionResource(collectionResource);
    toscaResourceStructure.setCatalogCollectionResourceCustomization(ncfc);
    // *** Build object to populate the Instance_Group table
    List<IEntityDetails> ncEntityList = getEntityDetails(toscaResourceStructure, EntityQuery.newBuilder("org.openecomp.groups.NetworkCollection"), TopologyTemplateQuery.newBuilder(SdcTypes.CR).customizationUUID(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_CUSTOMIZATIONUUID)), false);
    List<NetworkInstanceGroup> networkInstanceGroupList = new ArrayList<>();
    List<CollectionResourceInstanceGroupCustomization> collectionResourceInstanceGroupCustomizationList = new ArrayList<>();
    for (IEntityDetails ncGroupEntity : ncEntityList) {
        NetworkInstanceGroup networkInstanceGroup = new NetworkInstanceGroup();
        Metadata instanceMetadata = ncGroupEntity.getMetadata();
        networkInstanceGroup.setModelName(instanceMetadata.getValue(SdcPropertyNames.PROPERTY_NAME_NAME));
        networkInstanceGroup.setModelInvariantUUID(instanceMetadata.getValue(SdcPropertyNames.PROPERTY_NAME_INVARIANTUUID));
        networkInstanceGroup.setModelUUID(instanceMetadata.getValue(SdcPropertyNames.PROPERTY_NAME_UUID));
        networkInstanceGroup.setModelVersion(instanceMetadata.getValue(SdcPropertyNames.PROPERTY_NAME_VERSION));
        networkInstanceGroup.setToscaNodeType(ncGroupEntity.getToscaType());
        // Set
        networkInstanceGroup.setRole(SubType.SUB_INTERFACE.toString());
        // Role
        // Set
        networkInstanceGroup.setType(InstanceGroupType.L3_NETWORK);
        // type
        networkInstanceGroup.setCollectionResource(collectionResource);
        // ****Build object to populate
        // Collection_Resource_Instance_Group_Customization table
        CollectionResourceInstanceGroupCustomization crInstanceGroupCustomization = new CollectionResourceInstanceGroupCustomization();
        crInstanceGroupCustomization.setInstanceGroup(networkInstanceGroup);
        crInstanceGroupCustomization.setModelUUID(instanceMetadata.getValue(SdcPropertyNames.PROPERTY_NAME_UUID));
        crInstanceGroupCustomization.setModelCustomizationUUID(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_CUSTOMIZATIONUUID));
        // Loop through the template policy to find the subinterface_network_quantity property name. Then extract
        // the value for it.
        List<IEntityDetails> policyEntityList = getEntityDetails(toscaResourceStructure, EntityQuery.newBuilder("org.openecomp.policies.scaling.Fixed"), TopologyTemplateQuery.newBuilder(SdcTypes.SERVICE), true);
        if (policyEntityList != null) {
            for (IEntityDetails policyEntity : policyEntityList) {
                for (String policyNetworkCollection : policyEntity.getTargets()) {
                    if (policyNetworkCollection.equalsIgnoreCase(ncGroupEntity.getName())) {
                        Map<String, Property> propMap = policyEntity.getProperties();
                        if (propMap.get("quantity") != null) {
                            String quantity = getLeafPropertyValue(cnrEntity, getPropertyInput(propMap.get("quantity").toString()));
                            if (quantity != null) {
                                crInstanceGroupCustomization.setSubInterfaceNetworkQuantity(Integer.parseInt(quantity));
                            }
                        }
                    }
                }
            }
        }
        crInstanceGroupCustomization.setDescription(getLeafPropertyValue(cnrEntity, instanceMetadata.getValue(SdcPropertyNames.PROPERTY_NAME_NAME) + "_network_collection_description"));
        crInstanceGroupCustomization.setFunction(getLeafPropertyValue(cnrEntity, instanceMetadata.getValue(SdcPropertyNames.PROPERTY_NAME_NAME) + "_network_collection_function"));
        crInstanceGroupCustomization.setCollectionResourceCust(ncfc);
        collectionResourceInstanceGroupCustomizationList.add(crInstanceGroupCustomization);
        networkInstanceGroup.setCollectionInstanceGroupCustomizations(collectionResourceInstanceGroupCustomizationList);
        networkInstanceGroupList.add(networkInstanceGroup);
        toscaResourceStructure.setCatalogNetworkInstanceGroup(networkInstanceGroupList);
        List<IEntityDetails> networkEntityList = getEntityDetails(toscaResourceStructure, EntityQuery.newBuilder(SdcTypes.VL), TopologyTemplateQuery.newBuilder(SdcTypes.CR).customizationUUID(cnrEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_CUSTOMIZATIONUUID)), false);
        List<CollectionNetworkResourceCustomization> collectionNetworkResourceCustomizationList = new ArrayList<>();
        // *****Build object to populate the NetworkResource table
        NetworkResource networkResource = new NetworkResource();
        for (IEntityDetails networkEntity : networkEntityList) {
            String providerNetwork = getLeafPropertyValue(networkEntity, SdcPropertyNames.PROPERTY_NAME_PROVIDERNETWORK_ISPROVIDERNETWORK);
            if ("true".equalsIgnoreCase(providerNetwork)) {
                networkResource.setNeutronNetworkType(PROVIDER);
            } else {
                networkResource.setNeutronNetworkType(BASIC);
            }
            networkResource.setModelName(networkEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_NAME));
            networkResource.setModelInvariantUUID(networkEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_INVARIANTUUID));
            networkResource.setModelUUID(networkEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_UUID));
            networkResource.setModelVersion(networkEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_VERSION));
            networkResource.setAicVersionMax(networkEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_MAXINSTANCES));
            TempNetworkHeatTemplateLookup tempNetworkLookUp = tempNetworkLookupRepo.findFirstBynetworkResourceModelName(networkEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_NAME));
            if (tempNetworkLookUp != null) {
                HeatTemplate heatTemplate = heatRepo.findByArtifactUuid(tempNetworkLookUp.getHeatTemplateArtifactUuid());
                networkResource.setHeatTemplate(heatTemplate);
                networkResource.setAicVersionMin(tempNetworkLookUp.getAicVersionMin());
            }
            networkResource.setToscaNodeType(networkEntity.getToscaType());
            networkResource.setDescription(networkEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_DESCRIPTION));
            networkResource.setOrchestrationMode(HEAT);
            // Collection_Network_Resource_Customization table
            for (IEntityDetails networkMemberEntity : ncGroupEntity.getMemberNodes()) {
                collectionNetworkResourceCustomization.setModelInstanceName(networkMemberEntity.getName());
            }
            collectionNetworkResourceCustomization.setModelCustomizationUUID(networkEntity.getMetadata().getValue(SdcPropertyNames.PROPERTY_NAME_CUSTOMIZATIONUUID));
            collectionNetworkResourceCustomization.setNetworkTechnology(getLeafPropertyValue(networkEntity, SdcPropertyNames.PROPERTY_NAME_NETWORKTECHNOLOGY));
            collectionNetworkResourceCustomization.setNetworkType(getLeafPropertyValue(networkEntity, SdcPropertyNames.PROPERTY_NAME_NETWORKTYPE));
            collectionNetworkResourceCustomization.setNetworkRole(getLeafPropertyValue(networkEntity, SdcPropertyNames.PROPERTY_NAME_NETWORKROLE));
            collectionNetworkResourceCustomization.setNetworkScope(getLeafPropertyValue(networkEntity, SdcPropertyNames.PROPERTY_NAME_NETWORKSCOPE));
            collectionNetworkResourceCustomization.setInstanceGroup(networkInstanceGroup);
            collectionNetworkResourceCustomization.setNetworkResource(networkResource);
            collectionNetworkResourceCustomization.setNetworkResourceCustomization(ncfc);
            collectionNetworkResourceCustomizationList.add(collectionNetworkResourceCustomization);
        }
    }
    return collectionNetworkResourceCustomization;
}
Also used : CollectionResource(org.onap.so.db.catalog.beans.CollectionResource) CollectionResourceInstanceGroupCustomization(org.onap.so.db.catalog.beans.CollectionResourceInstanceGroupCustomization) ArrayList(java.util.ArrayList) Metadata(org.onap.sdc.toscaparser.api.elements.Metadata) NetworkCollectionResourceCustomization(org.onap.so.db.catalog.beans.NetworkCollectionResourceCustomization) IEntityDetails(org.onap.sdc.tosca.parser.api.IEntityDetails) NetworkResource(org.onap.so.db.catalog.beans.NetworkResource) TempNetworkHeatTemplateLookup(org.onap.so.db.catalog.beans.TempNetworkHeatTemplateLookup) HeatTemplate(org.onap.so.db.catalog.beans.HeatTemplate) CollectionNetworkResourceCustomization(org.onap.so.db.catalog.beans.CollectionNetworkResourceCustomization) NetworkInstanceGroup(org.onap.so.db.catalog.beans.NetworkInstanceGroup) Property(org.onap.sdc.toscaparser.api.Property) HashSet(java.util.HashSet)

Example 13 with NetworkResource

use of org.onap.so.db.catalog.beans.NetworkResource in project so by onap.

the class NetworkTest method BuildingBlockDetailSingleLookupValidationTest.

@Test
public void BuildingBlockDetailSingleLookupValidationTest() {
    NetworkResource latestNetwork = networkRepo.findFirstByModelNameOrderByModelVersionDesc("CONTRAIL30_GNDIRECT");
    assertEquals("10b36f65-f4e6-4be6-ae49-9596dc1c47fz", latestNetwork.getModelUUID());
}
Also used : NetworkResource(org.onap.so.db.catalog.beans.NetworkResource) SpringBootTest(org.springframework.boot.test.context.SpringBootTest) Test(org.junit.Test)

Example 14 with NetworkResource

use of org.onap.so.db.catalog.beans.NetworkResource in project so by onap.

the class ToscaResourceStructureTest method toscaResourceStructureBeanTest.

@Test
public void toscaResourceStructureBeanTest() {
    artifactInfo = mock(ArtifactInfoImpl.class);
    sdcCsarHelper = mock(SdcCsarHelperImpl.class);
    toscaResourceStructure = new ToscaResourceStructure();
    toscaResourceStructure.setHeatTemplateUUID("heatTemplateUUID");
    toscaResourceStructure.setAllottedList(new ArrayList<NodeTemplate>());
    toscaResourceStructure.setSdcCsarHelper(sdcCsarHelper);
    toscaResourceStructure.setServiceMetadata(new Metadata(new HashMap<>()));
    toscaResourceStructure.setCatalogService(new Service());
    toscaResourceStructure.setNetworkTypes(new ArrayList<>());
    toscaResourceStructure.setVfTypes(new ArrayList<>());
    toscaResourceStructure.setCatalogResourceCustomization(new AllottedResourceCustomization());
    toscaResourceStructure.setCatalogNetworkResourceCustomization(new NetworkResourceCustomization());
    toscaResourceStructure.setCatalogNetworkResource(new NetworkResource());
    toscaResourceStructure.setCatalogVfModule(new VfModule());
    toscaResourceStructure.setVnfResourceCustomization(new VnfResourceCustomization());
    toscaResourceStructure.setVfModuleCustomization(new VfModuleCustomization());
    toscaResourceStructure.setAllottedResource(new AllottedResource());
    toscaResourceStructure.setAllottedResourceCustomization(new AllottedResourceCustomization());
    toscaResourceStructure.setCatalogTempNetworkHeatTemplateLookup(new TempNetworkHeatTemplateLookup());
    toscaResourceStructure.setHeatFilesUUID("heatFilesUUID");
    toscaResourceStructure.setToscaArtifact(artifactInfo);
    toscaResourceStructure.setToscaCsar(new ToscaCsar());
    toscaResourceStructure.setVolHeatTemplateUUID("volHeatTemplateUUID");
    toscaResourceStructure.setEnvHeatTemplateUUID("envHeatTemplateUUID");
    toscaResourceStructure.setServiceVersion("serviceVersion");
    toscaResourceStructure.setWorkloadPerformance("workloadPerformance");
    toscaResourceStructure.setVfModule(new VfModule());
    toscaResourceStructure.setTempNetworkHeatTemplateLookup(new TempNetworkHeatTemplateLookup());
    toscaResourceStructure.setSuccessfulDeployment();
    assertEquals("heatTemplateUUID", toscaResourceStructure.getHeatTemplateUUID());
    assertThat(toscaResourceStructure.getAllottedList(), sameBeanAs(new ArrayList<NodeTemplate>()));
    assertEquals(sdcCsarHelper, toscaResourceStructure.getSdcCsarHelper());
    assertThat(toscaResourceStructure.getServiceMetadata(), sameBeanAs(new Metadata(new HashMap<>())));
    assertThat(toscaResourceStructure.getCatalogService(), sameBeanAs(new Service()));
    assertThat(toscaResourceStructure.getNetworkTypes(), sameBeanAs(new ArrayList<>()));
    assertThat(toscaResourceStructure.getVfTypes(), sameBeanAs(new ArrayList<>()));
    assertThat(toscaResourceStructure.getCatalogResourceCustomization(), sameBeanAs(new AllottedResourceCustomization()));
    assertThat(toscaResourceStructure.getCatalogNetworkResourceCustomization(), sameBeanAs(new NetworkResourceCustomization()));
    assertThat(toscaResourceStructure.getCatalogNetworkResource(), sameBeanAs(new NetworkResource()));
    assertThat(toscaResourceStructure.getCatalogVfModule(), sameBeanAs(new VfModule()));
    assertThat(toscaResourceStructure.getVnfResourceCustomization(), sameBeanAs(new VnfResourceCustomization()));
    assertThat(toscaResourceStructure.getVfModuleCustomization(), sameBeanAs(new VfModuleCustomization()));
    assertThat(toscaResourceStructure.getAllottedResource(), sameBeanAs(new AllottedResource()));
    assertThat(toscaResourceStructure.getAllottedResourceCustomization(), sameBeanAs(new AllottedResourceCustomization()));
    assertThat(toscaResourceStructure.getCatalogTempNetworkHeatTemplateLookup(), sameBeanAs(new TempNetworkHeatTemplateLookup()));
    assertEquals("heatFilesUUID", toscaResourceStructure.getHeatFilesUUID());
    assertEquals(artifactInfo, toscaResourceStructure.getToscaArtifact());
    assertThat(toscaResourceStructure.getToscaCsar(), sameBeanAs(new ToscaCsar()));
    assertEquals("volHeatTemplateUUID", toscaResourceStructure.getVolHeatTemplateUUID());
    assertEquals("envHeatTemplateUUID", toscaResourceStructure.getEnvHeatTemplateUUID());
    assertEquals("serviceVersion", toscaResourceStructure.getServiceVersion());
    assertEquals("workloadPerformance", toscaResourceStructure.getWorkloadPerformance());
    assertThat(toscaResourceStructure.getVfModule(), sameBeanAs(new VfModule()));
    assertThat(toscaResourceStructure.getTempNetworkHeatTemplateLookup(), sameBeanAs(new TempNetworkHeatTemplateLookup()));
    assertEquals(true, toscaResourceStructure.isDeployedSuccessfully());
}
Also used : ArtifactInfoImpl(org.onap.so.asdc.client.test.emulators.ArtifactInfoImpl) HashMap(java.util.HashMap) Metadata(org.onap.sdc.toscaparser.api.elements.Metadata) ArrayList(java.util.ArrayList) Service(org.onap.so.db.catalog.beans.Service) VfModule(org.onap.so.db.catalog.beans.VfModule) AllottedResource(org.onap.so.db.catalog.beans.AllottedResource) AllottedResourceCustomization(org.onap.so.db.catalog.beans.AllottedResourceCustomization) NetworkResource(org.onap.so.db.catalog.beans.NetworkResource) NodeTemplate(org.onap.sdc.toscaparser.api.NodeTemplate) TempNetworkHeatTemplateLookup(org.onap.so.db.catalog.beans.TempNetworkHeatTemplateLookup) SdcCsarHelperImpl(org.onap.sdc.tosca.parser.impl.SdcCsarHelperImpl) NetworkResourceCustomization(org.onap.so.db.catalog.beans.NetworkResourceCustomization) VfModuleCustomization(org.onap.so.db.catalog.beans.VfModuleCustomization) ToscaCsar(org.onap.so.db.catalog.beans.ToscaCsar) VnfResourceCustomization(org.onap.so.db.catalog.beans.VnfResourceCustomization) Test(org.junit.Test)

Aggregations

NetworkResource (org.onap.so.db.catalog.beans.NetworkResource)14 NetworkResourceCustomization (org.onap.so.db.catalog.beans.NetworkResourceCustomization)8 HeatTemplate (org.onap.so.db.catalog.beans.HeatTemplate)5 ArrayList (java.util.ArrayList)4 Test (org.junit.Test)4 NetworkException (org.onap.so.adapters.network.exceptions.NetworkException)3 CollectionNetworkResourceCustomization (org.onap.so.db.catalog.beans.CollectionNetworkResourceCustomization)3 Service (org.onap.so.db.catalog.beans.Service)3 MsoException (org.onap.so.openstack.exceptions.MsoException)3 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 List (java.util.List)2 Metadata (org.onap.sdc.toscaparser.api.elements.Metadata)2 AllottedResource (org.onap.so.db.catalog.beans.AllottedResource)2 TempNetworkHeatTemplateLookup (org.onap.so.db.catalog.beans.TempNetworkHeatTemplateLookup)2 NetworkType (org.onap.so.openstack.utils.MsoNeutronUtils.NetworkType)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 WireMock.aResponse (com.github.tomakehurst.wiremock.client.WireMock.aResponse)1 WireMock.post (com.github.tomakehurst.wiremock.client.WireMock.post)1 WireMock.urlPathEqualTo (com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo)1