Flipped status messages based on is operation 97/104397/2
authorBoslet, Cory <cory.boslet@att.com>
Wed, 25 Mar 2020 17:20:37 +0000 (13:20 -0400)
committerBenjamin, Max (mb388a) <mb388a@att.com>
Wed, 25 Mar 2020 18:56:31 +0000 (14:56 -0400)
Flipped status messages based on is operation performed and fixed typos
in message.

Issue-ID: SO-2766
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I763a847534700efef662313eead76f2ccafa53cf

adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/MsoNetworkAdapterImpl.java
adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/vnf/MsoVnfAdapterImpl.java

index 257374f..4728eff 100644 (file)
@@ -97,7 +97,7 @@ public class MsoNetworkAdapterImpl implements MsoNetworkAdapter {
     private static final String NETWORK_CREATED_STATUS_MESSAGE =
             "The new network was successfully created in the cloud";
     private static final String NETWORK_NOT_EXIST_STATUS_MESSAGE =
-            "The network as not found, thus no network was deleted in the cloud via this request";
+            "The network was not found, thus no network was deleted in the cloud via this request";
     private static final String NETWORK_DELETED_STATUS_MESSAGE = "The network was successfully deleted in the cloud";
 
     private static final Logger logger = LoggerFactory.getLogger(MsoNetworkAdapterImpl.class);
index 60c5a0c..f495015 100644 (file)
@@ -104,8 +104,6 @@ public class MsoVnfAdapterImpl implements MsoVnfAdapter {
     private static final String DELETE_VNF = "DeleteVNF";
     private static final String QUERY_STACK = "QueryStack";
     private static final String CREATE_VFM_MODULE = "CreateVFModule";
-    private static final String CREATE_VF_STACK = "Create VF: Stack";
-    private static final String STACK = "Stack";
     private static final String USER_ERROR = "USER ERROR";
     private static final String VERSION_MIN = "VersionMin";
     private static final String VERSION_MAX = "VersionMax";
@@ -113,7 +111,7 @@ public class MsoVnfAdapterImpl implements MsoVnfAdapter {
             "The vf module was found to already exist, thus no new vf module was created in the cloud via this request";
     private static final String VF_CREATED_STATUS_MESSAGE = "The new vf module was successfully created in the cloud";
     private static final String VF_NOT_EXIST_STATUS_MESSAGE =
-            "The vf module was not, thus no vf module was deleted in the cloud via this request";
+            "The vf module was not found, thus no vf module was deleted in the cloud via this request";
     private static final String VF_DELETED_STATUS_MESSAGE = "The vf module was successfully deleted in the cloud";
 
     @Autowired
@@ -1054,7 +1052,7 @@ public class MsoVnfAdapterImpl implements MsoVnfAdapter {
                             nestedTemplatesChecked, heatFilesObjects, backout.booleanValue(), failIfExists);
                     if (msoRequest.getRequestId() != null) {
                         msoHeatUtils.updateResourceStatus(msoRequest.getRequestId(),
-                                heatStack.isOperationPerformed() ? VF_EXIST_STATUS_MESSAGE : VF_CREATED_STATUS_MESSAGE);
+                                heatStack.isOperationPerformed() ? VF_CREATED_STATUS_MESSAGE : VF_EXIST_STATUS_MESSAGE);
                     }
                 } else {
                     throw new MsoHeatNotFoundException();