diff options
author | xu ran <xuranyjy@chinamobile.com> | 2020-04-28 07:56:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-28 07:56:30 +0000 |
commit | 3d0de25495ec04a6bba108ada5ac85c15fbb85b7 (patch) | |
tree | c1d91094c92353db50deed3e0a9bb0e0b367e1ca | |
parent | 8566fd62fdb496339cbaaa9f50800d64079a9410 (diff) | |
parent | 3dd653fdc5822f64d48960c62b8ee9322e7c4029 (diff) |
Merge "Changes for MDONS usecase"
3 files changed, 15 insertions, 9 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceLcmController.java b/server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceLcmController.java index 4e9102f8..2f63425d 100644 --- a/server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceLcmController.java +++ b/server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceLcmController.java @@ -83,12 +83,17 @@ public class ServiceLcmController { if(UuiCommonUtil.isNotNullOrEmpty(operationProgressInformation)&&UuiCommonUtil.isNotNullOrEmpty(operationProgressInformation.getOperationStatus())){ //serviceLcmService.updateServiceInstanceStatusById(operationProgressInformation.getOperationStatus().getResult(), serviceId); int progress =operationProgressInformation.getOperationStatus().getProgress(); - if(0<=progress&&progress<100){ - operationResult= CommonConstant.IN_PROGRESS_CODE; - }else if(progress==100){ - operationResult= CommonConstant.SUCCESS_CODE; - } - serviceLcmService.updateServiceInstanceOperation(serviceId,operationType,progress+"",operationResult); + String status = operationProgressInformation.getOperationStatus().getOperationContent().toLowerCase(); + if (status.contains("failed")) { + operationResult = CommonConstant.FAIL_CODE; + } else { + if(0<=progress&&progress<100){ + operationResult= CommonConstant.IN_PROGRESS_CODE; + }else if(progress==100){ + operationResult= CommonConstant.SUCCESS_CODE; + } + } + serviceLcmService.updateServiceInstanceOperation(serviceId,operationType,progress+"",operationResult); } return operationProgressInformation; } diff --git a/server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java b/server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java index 131b5574..ccf3d957 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java @@ -351,7 +351,7 @@ public interface AAIService { "Authorization: Basic QUFJOkFBSQ==", "Accept: application/json" }) - @PUT("/api/aai-query/v16?format=resource") + @PUT("/api/aai-query/v19?format=resource") Call<ResponseBody> querynNetworkResourceList(@Body RequestBody body); @Headers({ "X-TransactionId: 7777", diff --git a/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultCustomerService.java b/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultCustomerService.java index c63bd5fe..7cfb762e 100644 --- a/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultCustomerService.java +++ b/server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultCustomerService.java @@ -325,8 +325,9 @@ public class DefaultCustomerService implements CustomerService { PInterface pInterface = result.getPinterface(); niList.add(pInterface.getInterfaceName()); } - } - + + } + Collections.sort(niList); return niList; } |