use of org.onap.so.bpmn.servicedecomposition.generalobjects.RequestParameters in project so by onap.
the class GeneratePayloadForCdsTest method createGeneralBuildingBlock.
private GeneralBuildingBlock createGeneralBuildingBlock() {
GeneralBuildingBlock generalBuildingBlock = new GeneralBuildingBlock();
RequestContext requestContext = new RequestContext();
RequestParameters requestParameters = new RequestParameters();
requestParameters.setUserParams(createRequestUserParams());
requestContext.setRequestParameters(requestParameters);
requestContext.setMsoRequestId(MSO_REQUEST_ID);
generalBuildingBlock.setRequestContext(requestContext);
return generalBuildingBlock;
}
use of org.onap.so.bpmn.servicedecomposition.generalobjects.RequestParameters in project so by onap.
the class BBInputSetupMapperLayerTest method mapRequestParameters.
protected RequestParameters mapRequestParameters(org.onap.so.serviceinstancebeans.RequestParameters requestParameters) {
RequestParameters requestParams = new RequestParameters();
requestParams.setaLaCarte(requestParameters.getALaCarte());
requestParams.setUsePreload(requestParameters.getUsePreload());
requestParams.setSubscriptionServiceType(requestParameters.getSubscriptionServiceType());
requestParams.setUserParams(requestParameters.getUserParams());
requestParams.setPayload(requestParameters.getPayload());
return requestParams;
}
use of org.onap.so.bpmn.servicedecomposition.generalobjects.RequestParameters in project so by onap.
the class InputParameterRetrieverTaskTest method getGeneralBuildingBlock.
private GeneralBuildingBlock getGeneralBuildingBlock(final Map<String, Object> userParams) {
final GeneralBuildingBlock buildingBlock = new GeneralBuildingBlock();
final RequestContext requestContext = new RequestContext();
final RequestParameters requestParameters = new RequestParameters();
requestParameters.setUserParams(Arrays.asList(userParams));
requestContext.setRequestParameters(requestParameters);
buildingBlock.setRequestContext(requestContext);
return buildingBlock;
}
use of org.onap.so.bpmn.servicedecomposition.generalobjects.RequestParameters in project so by onap.
the class AppcOrchestratorPreProcessorTest method fillRequiredAppcExecutionFieldsConfigModify.
private void fillRequiredAppcExecutionFieldsConfigModify() {
RequestContext context = new RequestContext();
RequestParameters requestParameters = new RequestParameters();
requestParameters.setPayload("{\"request_parameters\":{\"host_ip_address\":\"10.10.10.10\"},\"configuration_parameters\":{\"name1\":\"value1\",\"name2\":\"value2\"}}");
context.setRequestParameters(requestParameters);
context.setMsoRequestId("TEST-MSO-ID");
context.setRequestorId("testRequestorId");
execution.setVariable("aicIdentity", "AIC-TEST");
execution.setVariable("vmIdList", "VM-ID-LIST-TEST");
execution.setVariable("vserverIdList", "VSERVER-ID-LIST");
execution.setVariable("identityUrl", "IDENTITY-URL-TEST");
execution.getGeneralBuildingBlock().setRequestContext(context);
}
use of org.onap.so.bpmn.servicedecomposition.generalobjects.RequestParameters in project so by onap.
the class HomingV2Test method createBuildingBlockExecutionMock.
private BuildingBlockExecution createBuildingBlockExecutionMock(Map<String, Object> userParams) {
BuildingBlockExecution execution = mock(BuildingBlockExecution.class);
GeneralBuildingBlock generalBuildingBlock = mock(GeneralBuildingBlock.class);
RequestContext requestContext = mock(RequestContext.class);
RequestParameters requestParameters = mock(RequestParameters.class);
List<Map<String, Object>> userParamsList = new ArrayList<>();
userParamsList.add(userParams);
when(execution.getGeneralBuildingBlock()).thenReturn(generalBuildingBlock);
when(generalBuildingBlock.getRequestContext()).thenReturn(requestContext);
when(requestContext.getRequestParameters()).thenReturn(requestParameters);
when(requestParameters.getUserParams()).thenReturn(userParamsList);
return execution;
}
Aggregations