use of org.onap.so.serviceinstancebeans.RequestDetails in project so by onap.
the class VnfRestHandlerTest method createTestRequest.
private ServiceInstancesRequest createTestRequest() {
ServiceInstancesRequest request = new ServiceInstancesRequest();
RequestDetails requestDetails = new RequestDetails();
RequestInfo requestInfo = new RequestInfo();
requestInfo.setInstanceName("instanceName");
requestDetails.setRequestInfo(requestInfo);
request.setRequestDetails(requestDetails);
return request;
}
use of org.onap.so.serviceinstancebeans.RequestDetails in project so by onap.
the class VolumeRestHandlerTest method createTestRequest.
private ServiceInstancesRequest createTestRequest() {
ServiceInstancesRequest request = new ServiceInstancesRequest();
RequestDetails requestDetails = new RequestDetails();
RequestInfo requestInfo = new RequestInfo();
requestInfo.setInstanceName("instanceName");
requestDetails.setRequestInfo(requestInfo);
request.setRequestDetails(requestDetails);
return request;
}
use of org.onap.so.serviceinstancebeans.RequestDetails in project so by onap.
the class VolumeGroupDeleteValidatorTest method validateSuccessTest.
@Test
public void validateSuccessTest() {
instanceIdMap.put("volumeGroupInstanceId", "1");
ServiceInstancesRequest request = new ServiceInstancesRequest();
RequestDetails details = new RequestDetails();
details.setCloudConfiguration(new CloudConfiguration());
request.setRequestDetails(details);
when(aaiDataRetrieval.isVolumeGroupRelatedToVFModule(any(CloudConfiguration.class), eq("1"))).thenReturn(false);
Optional<String> result = volumeGroupDeleteValidator.validate(instanceIdMap, request, null, null);
assertEquals(false, result.isPresent());
}
use of org.onap.so.serviceinstancebeans.RequestDetails in project so by onap.
the class NetworkRestHandlerTest method createTestRequest.
private ServiceInstancesRequest createTestRequest() {
ServiceInstancesRequest request = new ServiceInstancesRequest();
RequestDetails requestDetails = new RequestDetails();
RequestInfo requestInfo = new RequestInfo();
requestInfo.setInstanceName("instanceName");
requestDetails.setRequestInfo(requestInfo);
request.setRequestDetails(requestDetails);
return request;
}
use of org.onap.so.serviceinstancebeans.RequestDetails in project so by onap.
the class VfModuleRestHandlerTest method createTestRequest.
private ServiceInstancesRequest createTestRequest() {
ServiceInstancesRequest request = new ServiceInstancesRequest();
RequestDetails requestDetails = new RequestDetails();
RequestInfo requestInfo = new RequestInfo();
requestInfo.setInstanceName("instanceName");
requestDetails.setRequestInfo(requestInfo);
request.setRequestDetails(requestDetails);
return request;
}
Aggregations