ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
.setSuccess(true);
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result =
+ this.rendererServiceOperations.serviceImplementation(input, false).get();
assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
}
.setSuccess(true);
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
doReturn(RpcResultBuilder.failed().buildFuture()).when(this.olmService).servicePowerSetup(any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result =
+ this.rendererServiceOperations.serviceImplementation(input, false).get();
assertEquals(ResponseCodes.RESPONSE_FAILED, result.getConfigurationResponseCommon().getResponseCode());
}
ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
.setSuccess(true);
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
}
ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
.setSuccess(true);
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
}
ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
.setSuccess(true);
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
}
for (String tpToken : interfaceTokens) {
ServiceImplementationRequestInput input = ServiceDataUtils
.buildServiceImplementationRequestInputTerminationPointResource(tpToken);
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input)
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false)
.get();
assertEquals(ResponseCodes.RESPONSE_FAILED, result.getConfigurationResponseCommon().getResponseCode());
}
.buildServiceImplementationRequestInputTerminationPointResource(StringConstants.NETWORK_TOKEN);
// writePortMapping(input, StringConstants.NETWORK_TOKEN);
doReturn(RpcResultBuilder.failed().buildFuture()).when(this.olmService).servicePowerSetup(any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_FAILED, result.getConfigurationResponseCommon().getResponseCode());
}
.setMeasurements(measurementsList)
.build();
doReturn(RpcResultBuilder.success(getPmOutput).buildFuture()).when(this.olmService).getPm(any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_FAILED, result.getConfigurationResponseCommon().getResponseCode());
}
.build();
when(this.olmService.getPm(any())).thenReturn(RpcResultBuilder.success(getPmOutput).buildFuture());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_FAILED, result.getConfigurationResponseCommon().getResponseCode());
}
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
ServiceImplementationRequestInput input = ServiceDataUtils
.buildServiceImplementationRequestInputTerminationPointResource(StringConstants.NETWORK_TOKEN);
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
}
ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
.setSuccess(true);
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
}
ServicePathOutputBuilder mockOutputBuilder = new ServicePathOutputBuilder().setResult("success")
.setSuccess(true);
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
}
doReturn(mockOutputBuilder.build()).when(this.deviceRenderer).setupServicePath(any(), any());
ServiceImplementationRequestInput input = ServiceDataUtils
.buildServiceImplementationRequestInputTerminationPointResource(StringConstants.NETWORK_TOKEN);
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_OK, result.getConfigurationResponseCommon().getResponseCode());
}
.build();
doReturn(RpcResultBuilder.success(getPmOutput).buildFuture()).when(this.olmService).getPm(any());
- ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input).get();
+ ServiceImplementationRequestOutput result = this.rendererServiceOperations.serviceImplementation(input,
+ false).get();
assertEquals(ResponseCodes.RESPONSE_FAILED, result.getConfigurationResponseCommon().getResponseCode());
}