summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--INFO.yaml6
-rw-r--r--adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/BpelRestClient.java2
-rw-r--r--adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/SDNCAdapterService.java3
-rw-r--r--adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/adapters/vnf/VnfAdapterRestExceptionTest.java71
-rw-r--r--adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/adapters/vnf/VolumeAdapterRestExceptionTest.java62
5 files changed, 3 insertions, 141 deletions
diff --git a/INFO.yaml b/INFO.yaml
index 85aebba3ce..0dadcf24f6 100644
--- a/INFO.yaml
+++ b/INFO.yaml
@@ -33,11 +33,6 @@ committers:
company: 'Ericsson'
id: 'byungwoojun'
timezone: ''
- - name: 'Claude Noshpitz'
- email: 'claude.noshpitz@att.com'
- company: 'ATT'
- id: 'clauden'
- timezone: ''
- name: 'Hui Deng'
email: 'denghui12@huawei.com'
company: 'Huawei'
@@ -111,6 +106,7 @@ tsc:
name: 'Heliu Zhong'
name: 'Yuanwei Yang'
name: 'Christophe Closset'
+ name: 'Claude Noshpitz'
link: 'https://lists.onap.org/pipermail/onap-tsc/2018-May/004802.html'
- type: 'addition'
name: 'Marcus Williams'
diff --git a/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/BpelRestClient.java b/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/BpelRestClient.java
index f51b27282c..c66b4a8207 100644
--- a/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/BpelRestClient.java
+++ b/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/BpelRestClient.java
@@ -235,7 +235,7 @@ public class BpelRestClient {
}
private void debug(String m) {
LOGGER.debug(m);
-// System.err.println(m);
+
}
private void sendOne(final String toBpelStr, final String bpelUrl, final boolean isxml) {
LOGGER.debug("Sending to BPEL server: "+bpelUrl);
diff --git a/adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/SDNCAdapterService.java b/adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/SDNCAdapterService.java
index c7f844bb4c..72e79e0826 100644
--- a/adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/SDNCAdapterService.java
+++ b/adapters/mso-sdnc-adapter/src/main/java/org/openecomp/mso/adapters/sdnc/SDNCAdapterService.java
@@ -29,7 +29,6 @@ import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
-//import org.openecomp.mso.adapters.sdnc.impl.MsoLogger;
import org.openecomp.mso.logger.MsoLogger;
import org.openecomp.mso.logger.MessageEnum;
@@ -55,7 +54,7 @@ public class SDNCAdapterService extends Service {
URL wsdlUrl = null;
try {
wsdlUrl = Thread.currentThread().getContextClassLoader().getResource("main/resources/SDNCAdapter.wsdl");
- //wsdlUrl = SDNCAdapterService.class.getClassLoader().getResource("SDNCAdapter.wsdl");
+
} catch (Exception e) {
logger.error(MessageEnum.RA_WSDL_NOT_FOUND, "SDNCAdapter.wsdl", "", "", MsoLogger.ErrorCode.DataError, "Exception - WSDL not found", e);
}
diff --git a/adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/adapters/vnf/VnfAdapterRestExceptionTest.java b/adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/adapters/vnf/VnfAdapterRestExceptionTest.java
deleted file mode 100644
index 2b258d646a..0000000000
--- a/adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/adapters/vnf/VnfAdapterRestExceptionTest.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * OPENECOMP - SO
- * ================================================================================
- * Copyright (C) 2018 Huawei Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-package org.openecomp.mso.adapters.vnf;
-
-import org.junit.Test;
-import org.openecomp.mso.adapters.vnfrest.CreateVfModuleRequest;
-import org.openecomp.mso.adapters.vnfrest.DeleteVfModuleRequest;
-import org.openecomp.mso.adapters.vnfrest.RollbackVfModuleRequest;
-import org.openecomp.mso.adapters.vnfrest.UpdateVfModuleRequest;
-
-public class VnfAdapterRestExceptionTest {
-
- VnfAdapterRest vnfAdapterRest = new VnfAdapterRest();
-
- @Test(expected = ClassFormatError.class)
- public void healthcheckClassFormatError() throws Exception {
- vnfAdapterRest.healthcheck();
- }
-
- @Test(expected = ClassFormatError.class)
- public void deleteVfModuleClassFormatError() throws Exception {
- DeleteVfModuleRequest deleteVfModuleRequest = new DeleteVfModuleRequest();
- deleteVfModuleRequest.setVfModuleId("moduleid");
- deleteVfModuleRequest.setVnfId("vnfid");
- vnfAdapterRest.deleteVfModule("vnfid", "moduleid", deleteVfModuleRequest);
- }
-
- @Test(expected = NullPointerException.class)
- public void queryVfModuleNullPointerException() throws Exception {
- vnfAdapterRest.queryVfModule("vnfid", "vfmoduleid", "cloudid", "tenantid", "modulename", true, "req-id", "sinstanceid");
- }
-
- @Test(expected = ClassFormatError.class)
- public void createVfModuleClassFormatError() throws Exception {
- CreateVfModuleRequest createVfModuleRequest = new CreateVfModuleRequest();
- createVfModuleRequest.setVnfId("vnfid");
- vnfAdapterRest.createVfModule("vnfid", createVfModuleRequest);
- }
-
- @Test(expected = ClassFormatError.class)
- public void updateVfModuleClassFormatError() throws Exception {
- UpdateVfModuleRequest updateVfModuleRequest = new UpdateVfModuleRequest();
- updateVfModuleRequest.setVnfId("vnfid");
- updateVfModuleRequest.setVfModuleId("moduleid");
- vnfAdapterRest.updateVfModule("vnfid", "moduleid", updateVfModuleRequest);
- }
-
- @Test(expected = NullPointerException.class)
- public void rollbackVfModuleNullPointerException() throws Exception {
- RollbackVfModuleRequest rollbackVfModuleRequest = new RollbackVfModuleRequest();
- vnfAdapterRest.rollbackVfModule("vnfid", "moduleid", rollbackVfModuleRequest);
- }
-
-} \ No newline at end of file
diff --git a/adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/adapters/vnf/VolumeAdapterRestExceptionTest.java b/adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/adapters/vnf/VolumeAdapterRestExceptionTest.java
deleted file mode 100644
index 26acc9b233..0000000000
--- a/adapters/mso-vnf-adapter/src/test/java/org/openecomp/mso/adapters/vnf/VolumeAdapterRestExceptionTest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*-
- * ============LICENSE_START=======================================================
- * OPENECOMP - SO
- * ================================================================================
- * Copyright (C) 2018 Huawei Intellectual Property. All rights reserved.
- * ================================================================================
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ============LICENSE_END=========================================================
- */
-package org.openecomp.mso.adapters.vnf;
-
-import org.junit.Test;
-import org.openecomp.mso.adapters.vnfrest.CreateVolumeGroupRequest;
-import org.openecomp.mso.adapters.vnfrest.DeleteVolumeGroupRequest;
-import org.openecomp.mso.adapters.vnfrest.RollbackVolumeGroupRequest;
-import org.openecomp.mso.adapters.vnfrest.UpdateVolumeGroupRequest;
-
-public class VolumeAdapterRestExceptionTest {
-
- VolumeAdapterRest volumeAdapterRest = new VolumeAdapterRest();
-
- @Test(expected = ClassFormatError.class)
- public void createVNFVolumesClassFormatError() throws Exception {
- volumeAdapterRest.createVNFVolumes(new CreateVolumeGroupRequest());
- }
-
- @Test(expected = ClassFormatError.class)
- public void deleteVNFVolumesClassFormatError() throws Exception {
- volumeAdapterRest.deleteVNFVolumes("grpid", new DeleteVolumeGroupRequest());
- }
-
- @Test(expected = ClassFormatError.class)
- public void rollbackVNFVolumesClassFormatError() throws Exception {
- volumeAdapterRest.rollbackVNFVolumes("grpid", new RollbackVolumeGroupRequest());
- }
-
- @Test(expected = ClassFormatError.class)
- public void updateVNFVolumesClassFormatError() throws Exception {
- volumeAdapterRest.updateVNFVolumes("grpid", new UpdateVolumeGroupRequest());
- }
-
- @Test(expected = NullPointerException.class)
- public void queryVNFVolumesNullPointerException() throws Exception {
- volumeAdapterRest.queryVNFVolumes("grpid", "cloudid", "tenantid", "stackid", true, "requestid", "serviceid");
- }
-
- @Test
- public void testMap() throws Exception {
- volumeAdapterRest.testMap();
- }
-
-} \ No newline at end of file