aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/controller/lcm/ServiceLcmController.java17
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/service/lcm/domain/aai/AAIService.java2
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/service/lcm/impl/DefaultCustomerService.java5
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;
}