Search in sources :

Example 11 with VnfRollback

use of org.onap.so.openstack.beans.VnfRollback in project so by onap.

the class MsoVnfAdapterImplTest method updateVnfTest_NestedBaseHeatStackNotFound.

@Test
public void updateVnfTest_NestedBaseHeatStackNotFound() throws Exception {
    expectedException.expect(VnfException.class);
    MsoRequest msoRequest = getMsoRequest();
    mockOpenStackResponseAccess(wireMockServer, wireMockPort);
    mockOpenStackGetStackVfModule_200(wireMockServer);
    mockOpenstackGetWithResponse(wireMockServer, "/mockPublicUrl/stacks/volumeGroupHeatStackId", HttpStatus.SC_OK, "OpenstackResponse_Stack_Created_VfModule.json");
    mockOpenstackGetWithResponse(wireMockServer, "/mockPublicUrl/stacks/baseVfHeatStackId", HttpStatus.SC_NOT_FOUND, "OpenstackResponse_Stack_Created_VfModule.json");
    Map<String, Object> map = new HashMap<>();
    map.put("key1", "value1");
    instance.updateVfModule("mtn13", "CloudOwner", "88a6ca3ee0394ade9403f075db23167e", "vnf", "1", vnfName, "VFMOD", "volumeGroupHeatStackId", "baseVfHeatStackId", "vfModuleStackId", "88a6ca3ee0394ade9403f075db23167e", map, msoRequest, new Holder<Map<String, String>>(), new Holder<VnfRollback>());
}
Also used : VnfRollback(org.onap.so.openstack.beans.VnfRollback) HashMap(java.util.HashMap) MsoRequest(org.onap.so.entity.MsoRequest) HashMap(java.util.HashMap) Map(java.util.Map) Test(org.junit.Test)

Aggregations

VnfRollback (org.onap.so.openstack.beans.VnfRollback)11 HashMap (java.util.HashMap)10 Map (java.util.Map)10 Test (org.junit.Test)9 MsoRequest (org.onap.so.entity.MsoRequest)9 VfModuleCustomization (org.onap.so.db.catalog.beans.VfModuleCustomization)3 JsonParseException (com.fasterxml.jackson.core.JsonParseException)1 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ArrayList (java.util.ArrayList)1 VnfException (org.onap.so.adapters.vnf.exceptions.VnfException)1 VnfNotFound (org.onap.so.adapters.vnf.exceptions.VnfNotFound)1 CloudSite (org.onap.so.db.catalog.beans.CloudSite)1 HeatEnvironment (org.onap.so.db.catalog.beans.HeatEnvironment)1 HeatFiles (org.onap.so.db.catalog.beans.HeatFiles)1 HeatTemplate (org.onap.so.db.catalog.beans.HeatTemplate)1 HeatTemplateParam (org.onap.so.db.catalog.beans.HeatTemplateParam)1 VfModule (org.onap.so.db.catalog.beans.VfModule)1 VnfResource (org.onap.so.db.catalog.beans.VnfResource)1 MavenLikeVersioning (org.onap.so.db.catalog.utils.MavenLikeVersioning)1 StackInfo (org.onap.so.openstack.beans.StackInfo)1