USER onap
ARG SERVER_PORT
-ARG PKG_FILENAME=nbi-rest-services-6.0.0-SNAPSHOT.jar
+ARG PKG_FILENAME=nbi-rest-services-6.0.1-SNAPSHOT.jar
ADD target/$PKG_FILENAME /opt/onap/app.jar
RUN mkdir temptoscafile && chown onap:onap temptoscafile/
<groupId>org.onap.externalapi-nbi</groupId>
<artifactId>nbi-rest-services</artifactId>
- <version>6.0.0-SNAPSHOT</version>
+ <version>6.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>externalapi-nbi</name>
--- /dev/null
+---
+distribution_type: 'maven'
+version: '6.0.1'
+project: 'externalapi-nbi'
+log_dir: 'externalapi-nbi-maven-stage-master/313/'
import org.onap.nbi.commons.MultiCriteriaRequestBuilder;
import org.onap.nbi.commons.ResourceManagement;
import org.onap.nbi.exceptions.ValidationException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Query;
@RequestMapping(OnapComponentsUrlPaths.SERVICE_ORDER_PATH)
public class ServiceOrderResource extends ResourceManagement {
+ private static final Logger LOGGER = LoggerFactory.getLogger(ServiceOrderResource.class);
+
@Autowired
ServiceOrderService serviceOrderService;
}
public ServiceOrder checkServiceOrder(ServiceOrder serviceOrder) {
+ LOGGER.debug("Checking Service order : {} ", serviceOrder.getId());
ServiceOrderInfo serviceOrderInfo = checkOrderConsistenceManager.checkServiceOrder(serviceOrder);
if (serviceOrderInfo.isServiceOrderRejected()) {
serviceOrderService.updateOrderState(serviceOrder, StateType.REJECTED);
// and e2eServiceInstances )APIs for service CRUD
// All E2E Services are required to be created in SDC under category "E2E Services" until SO fixes the
// multiple API issue.
- if (category.startsWith("e2e") || category.startsWith("CST")) {
+ if (category.startsWith("e2e") || category.startsWith("cst")) {
e2eService = true;
}
}
String serviceTypeFromJson = serviceOrderItem.getService().getServicetype();
String serviceType = serviceTypeFromJson != null ? serviceTypeFromJson : (String) serviceOrderItemInfo.getCatalogResponse().get("name");
if (!serviceNameExistsInAAI(servicesInAaiForCustomer, serviceType)) {
+ LOGGER.debug("Creating AAI Service Type : {} ", serviceType);
boolean serviceCreated = serviceOrderConsumerService.putServiceType(
serviceOrderInfo.getSubscriberInfo().getGlobalSubscriberId(), serviceType, serviceOrder);
if (!serviceCreated) {
Map<String, Long> internalIdOrderItemsMap = new HashMap<>();\r
if (orderItems != null) {\r
// first we save create all the execution tasks with order item id in relied tasks\r
+ LOGGER.debug("Creating {} relied tasks with order item id", orderItems.size());\r
for (ServiceOrderItem orderItem : orderItems) {\r
ExecutionTask task = new ExecutionTask();\r
task.setOrderItemId(orderItem.getId());\r
major = 6
minor = 0
-patch = 0
+patch = 1
base_version = ${major}.${minor}.${patch}