aboutsummaryrefslogtreecommitdiffstats
path: root/appc-outbound/appc-network-inventory-client/provider/src
diff options
context:
space:
mode:
authorJoss Armstrong <joss.armstrong@ericsson.com>2018-12-04 18:13:22 +0000
committerTakamune Cho <takamune.cho@att.com>2018-12-06 01:28:09 +0000
commitb267dd31fa51c039b316c31566568046cdbdfb0d (patch)
treeca1f8554b424681ee173cd63d2491a9fdd267bb6 /appc-outbound/appc-network-inventory-client/provider/src
parent5b48ccd6a79559967cfcb47addc50c84f9fa7213 (diff)
Unit test fixes for APPC-1267
Removed code smell for <65% branch coverage - now 86%. Test cases now cover success scenarios for all methods. Coverage increased to 97%. Removed classloader code and unnecessary resource files Moved construction of objects to protected methods to facilitate testing. Issue-ID: APPC-1267 Change-Id: I07656a5464410ca5ca3cca55cefd54c03a711385 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
Diffstat (limited to 'appc-outbound/appc-network-inventory-client/provider/src')
-rw-r--r--appc-outbound/appc-network-inventory-client/provider/src/main/java/org/onap/appc/instar/node/InstarClientNode.java27
-rwxr-xr-xappc-outbound/appc-network-inventory-client/provider/src/main/resources/templates/sampleKeyContents1
-rw-r--r--appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestInstarClientNode.java160
-rw-r--r--appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter.txt37
-rw-r--r--appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter2.txt39
-rw-r--r--appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter3.txt39
-rw-r--r--appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt37
7 files changed, 98 insertions, 242 deletions
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/main/java/org/onap/appc/instar/node/InstarClientNode.java b/appc-outbound/appc-network-inventory-client/provider/src/main/java/org/onap/appc/instar/node/InstarClientNode.java
index 797bbd5e7..4087e2ad2 100644
--- a/appc-outbound/appc-network-inventory-client/provider/src/main/java/org/onap/appc/instar/node/InstarClientNode.java
+++ b/appc-outbound/appc-network-inventory-client/provider/src/main/java/org/onap/appc/instar/node/InstarClientNode.java
@@ -5,6 +5,8 @@
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Copyright (C) 2017 Amdocs
+ * ================================================================================
+ * Modifications Copyright (C) 2018 Ericsson
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,6 +48,7 @@ public class InstarClientNode implements SvcLogicJavaPlugin {
private static final EELFLogger log = EELFManager.getInstance().getLogger(InstarClientNode.class);
+
public void getInstarInfo(Map<String, String> inParams, SvcLogicContext ctx)
throws SvcLogicException {
log.info("Received getInstarInfo call with params : " + inParams);
@@ -57,25 +60,26 @@ public class InstarClientNode implements SvcLogicJavaPlugin {
log.info("Processing Key : " + instarKey);
log.info("Searching key for : " + "INSTAR." + instarKey);
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
- RuleHandlerInterface handler;
log.info("Received Context : " + ctx.getAttribute("INSTAR." + instarKey));
Parameter params = mapper
.readValue(ctx.getAttribute(InstarClientConstant.SOURCE_SYSTEM_INSTAR + "." + instarKey),
Parameter.class);
-
+ RuleHandlerInterface handler;
log.info("Processing rule Type : " + params.getRuleType());
if (params.getRuleType().equals(InstarClientConstant.INTERFACE_IP_ADDRESS)) {
- handler = new InterfaceIpAddressImpl(params, ctx);
+ handler = createHandler(params, ctx);
} else {
throw new SvcLogicException("No Rule Defined to process :" + params.getRuleType());
}
handler.processRule();
}
log.info("responsePrefix =" + responsePrefix);
+ log.info("instar key values =" + ctx.getAttribute(InstarClientConstant.INSTAR_KEY_VALUES));
ctx.setAttribute(responsePrefix + InstarClientConstant.INSTAR_KEY_VALUES,
ctx.getAttribute(InstarClientConstant.INSTAR_KEY_VALUES));
ctx.setAttribute(responsePrefix + InstarClientConstant.OUTPUT_PARAM_STATUS,
InstarClientConstant.OUTPUT_STATUS_SUCCESS);
+ log.info(ctx.getAttribute("TEST." + InstarClientConstant.OUTPUT_PARAM_STATUS));
ctx.setAttribute(InstarClientConstant.INSTAR_KEY_VALUES, null);
} catch (Exception e) {
ctx.setAttribute(responsePrefix + InstarClientConstant.OUTPUT_PARAM_STATUS,
@@ -88,12 +92,10 @@ public class InstarClientNode implements SvcLogicJavaPlugin {
private static String[] getKeys(String keyString) {
log.error("Received Key String as :" + keyString);
-
String key = keyString
.replace("[", "")
.replace("]", "")
.replace("\"", "");
-
if (key.contains(",")) {
return key.split(",");
} else {
@@ -108,14 +110,12 @@ public class InstarClientNode implements SvcLogicJavaPlugin {
try {
HashMap<String, String> input = new HashMap<>();
input.putAll(inParams);
- RestClientInterface rcINterface = new InstarRestClientImpl(input);
+ RestClientInterface rcINterface = createRestClientInterface(input);
String response = rcINterface.sendRequest(inParams.get("operationName"));
-
responsePrefix = StringUtils.isNotBlank(responsePrefix) ? responsePrefix + "." : "";
ctx.setAttribute(responsePrefix + InstarClientConstant.OUTPUT_PARAM_STATUS,
InstarClientConstant.OUTPUT_STATUS_SUCCESS);
ctx.setAttribute(responsePrefix + InstarClientConstant.INSTAR_KEY_VALUES, response);
-
} catch (Exception e) {
ctx.setAttribute(responsePrefix + InstarClientConstant.OUTPUT_PARAM_STATUS,
InstarClientConstant.OUTPUT_STATUS_FAILURE);
@@ -135,12 +135,11 @@ public class InstarClientNode implements SvcLogicJavaPlugin {
log.info("Processing Key : " + aaiKey);
log.info("Searching key for : " + "AAI." + aaiKey);
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
- RuleHandlerInterface handler;
log.info("Received Context : " + ctx.getAttribute("AAI." + aaiKey));
Parameter params = mapper.readValue(
ctx.getAttribute(AaiClientConstant.SOURCE_SYSTEM_AAI + "." + aaiKey), Parameter.class);
log.info("Processing rule Type : " + params.getRuleType());
- handler = new AaiInterfaceRulesHandler(params, ctx);
+ RuleHandlerInterface handler = new AaiInterfaceRulesHandler(params, ctx);
handler.processRule();
}
log.info("responsePrefix =" + responsePrefix);
@@ -157,4 +156,12 @@ public class InstarClientNode implements SvcLogicJavaPlugin {
throw new SvcLogicException(e.getMessage());
}
}
+
+ protected RuleHandlerInterface createHandler(Parameter params, SvcLogicContext ctx) {
+ return new InterfaceIpAddressImpl(params, ctx);
+ }
+
+ protected RestClientInterface createRestClientInterface(Map<String, String> input) {
+ return new InstarRestClientImpl(input);
+ }
}
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/main/resources/templates/sampleKeyContents b/appc-outbound/appc-network-inventory-client/provider/src/main/resources/templates/sampleKeyContents
deleted file mode 100755
index 90e3ec789..000000000
--- a/appc-outbound/appc-network-inventory-client/provider/src/main/resources/templates/sampleKeyContents
+++ /dev/null
@@ -1 +0,0 @@
-{"name":"LOCAL_ACCESS_IP_ADDR","description":"this is the node0 tacplus server IP address","type":"ipv4_address","required":true,"source":"INSTAR","rule-type":"interface-ip-address","default":null,"request-keys":null,"response-keys":[{"unique-key-name":"addressfqdn","unique-key-value":"00000000000000","field-key-name":"ipaddress-v4"}]} \ No newline at end of file
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestInstarClientNode.java b/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestInstarClientNode.java
index 60676ccf4..ce3dd76dc 100644
--- a/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestInstarClientNode.java
+++ b/appc-outbound/appc-network-inventory-client/provider/src/test/java/org/onap/appc/instar/node/TestInstarClientNode.java
@@ -5,6 +5,8 @@
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Copyright (C) 2017 Amdocs
+ * ================================================================================
+ * Modifications Copyrigh (C) 2018 Ericsson
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,125 +25,125 @@
package org.onap.appc.instar.node;
-import static org.junit.Assert.assertTrue;
-
-import java.net.URI;
-import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;
-import javax.net.ssl.HostnameVerifier;
-import javax.net.ssl.SSLContext;
-import javax.ws.rs.HttpMethod;
-
-import org.apache.commons.io.IOUtils;
-import org.apache.commons.lang3.StringUtils;
-import org.json.JSONObject;
+import org.jline.utils.Log;
import org.junit.Assert;
+import org.junit.Rule;
import org.junit.Test;
+import org.junit.rules.ExpectedException;
+import org.powermock.api.mockito.PowerMockito;
+import org.mockito.Mockito;
import org.onap.appc.aai.utils.AaiClientConstant;
-import org.onap.appc.instar.dme2client.SecureRestClientTrustManager;
+import org.onap.appc.instar.interfaceImpl.InstarRestClientImpl;
+import org.onap.appc.instar.interfaceImpl.InterfaceIpAddressImpl;
+import org.onap.appc.instar.interfaces.RuleHandlerInterface;
import org.onap.appc.instar.utils.InstarClientConstant;
import org.onap.ccsdk.sli.core.sli.SvcLogicContext;
-
-import com.sun.jersey.api.client.Client;
-import com.sun.jersey.api.client.ClientResponse;
-import com.sun.jersey.api.client.WebResource;
-import com.sun.jersey.api.client.config.DefaultClientConfig;
-import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter;
+import org.onap.ccsdk.sli.core.sli.SvcLogicException;
public class TestInstarClientNode {
//ONAP Migration
- @Test(expected=Exception.class)
+ @Rule
+ public ExpectedException expectedEx = ExpectedException.none();
+
+ @Test
public void testInstarClientNode() throws Exception {
SvcLogicContext ctx = new SvcLogicContext();
- String key_conetent = IOUtils.toString(TestInstarClientNode.class.getClassLoader().getResourceAsStream("templates/sampleKeyContents"), Charset.defaultCharset());
+ String key_content = "{\"name\":\"LOCAL_ACCESS_IP_ADDR\",\"description\":\"this is the node0 tacplus server IP address\",\"type\":"
+ + "\"ipv4_address\",\"required\":true,\"source\":\"INSTAR\",\"rule-type\":\"interface-ip-address\",\"default\":null,\"request-keys\":"
+ + "null,\"response-keys\":[{\"unique-key-name\":\"addressfqdn\",\"unique-key-value\":\"00000000000000\",\"field-key-name\":\"ipaddress-v4\"}]}";
+ Map<String, String> inParams = new HashMap<String, String>();
+ inParams.put(InstarClientConstant.INPUT_PARAM_RESPONSE_PRIFIX, "");
+ inParams.put(InstarClientConstant.INSTAR_KEYS, "LOCAL_ACCESS_IP_ADDR");
+ inParams.put("operationName", InstarClientConstant.OPERATION_GET_IPADDRESS_BY_VNF_NAME);
+ ctx.setAttribute("INSTAR.LOCAL_ACCESS_IP_ADDR", key_content);
+ ctx.setAttribute(InstarClientConstant.INPUT_PARAM_RESPONSE_PRIFIX, "");
+ ctx.setAttribute(InstarClientConstant.VNF_NAME, "basx0003v");
+ InstarClientNode icn = PowerMockito.spy(new InstarClientNode());
+ RuleHandlerInterface mockRuleHandler = Mockito.mock(InterfaceIpAddressImpl.class);
+ Mockito.doReturn(mockRuleHandler).when(icn).createHandler(Mockito.any(), Mockito.any());
+ Mockito.doNothing().when(mockRuleHandler).processRule();
+ icn.getInstarInfo(inParams, ctx);
+ Log.info(ctx.getStatus());
+ Assert.assertEquals(InstarClientConstant.OUTPUT_STATUS_SUCCESS, ctx.getAttribute("" + InstarClientConstant.OUTPUT_PARAM_STATUS));
+ }
+
+ @Test
+ public void testInstarClientNodeFailure() throws Exception {
+ SvcLogicContext ctx = new SvcLogicContext();
+ String key_content = "{\"name\":\"LOCAL_ACCESS_IP_ADDR\",\"description\":\"this is the node0 tacplus server IP address\",\"type\":"
+ + "\"ipv4_address\",\"required\":true,\"source\":\"INSTAR\",\"rule-type\":\"NON_INTERFACE_IP_ADDRESS\",\"default\":null,\"request-keys\":"
+ + "null,\"response-keys\":[{\"unique-key-name\":\"addressfqdn\",\"unique-key-value\":\"00000000000000\",\"field-key-name\":\"ipaddress-v4\"}]}";
+ Log.info(key_content);
Map<String, String> inParams = new HashMap<String, String>();
inParams.put(InstarClientConstant.INPUT_PARAM_RESPONSE_PRIFIX, "TEST");
inParams.put(InstarClientConstant.INSTAR_KEYS, "LOCAL_ACCESS_IP_ADDR");
inParams.put("operationName", InstarClientConstant.OPERATION_GET_IPADDRESS_BY_VNF_NAME);
- ctx.setAttribute("INSTAR.LOCAL_ACCESS_IP_ADDR", key_conetent);
+ ctx.setAttribute("INSTAR.LOCAL_ACCESS_IP_ADDR", key_content);
ctx.setAttribute(InstarClientConstant.INPUT_PARAM_RESPONSE_PRIFIX, "TEST");
ctx.setAttribute(InstarClientConstant.VNF_NAME, "basx0003v");
InstarClientNode icn = new InstarClientNode();
+ expectedEx.expect(SvcLogicException.class);
+ expectedEx.expectMessage("No Rule Defined to process :");
icn.getInstarInfo(inParams, ctx);
- String address = (new JSONObject(ctx.getAttribute("TEST." + InstarClientConstant.INSTAR_KEY_VALUES))).getString("LOCAL_ACCESS_IP_ADDR");
}
- @Test(expected=Exception.class)
+
+ @Test
public void testInstarData() throws Exception {
- InstarClientNode inNode = new InstarClientNode();
+ InstarClientNode icn = Mockito.spy(new InstarClientNode());
SvcLogicContext ctx = new SvcLogicContext ();
Map<String, String> inParams = new HashMap<String, String>();
+ InstarRestClientImpl mockRestClient = Mockito.mock(InstarRestClientImpl.class);
+ Mockito.doReturn(mockRestClient).when(icn).createRestClientInterface(Mockito.any());
+ Mockito.doReturn("Test-data").when(mockRestClient).sendRequest(Mockito.anyString());
+ inParams.put(InstarClientConstant.VNF_NAME, "basx0003v");
+ inParams.put("operationName", InstarClientConstant.OPERATION_GET_IPADDRESS_BY_VNF_NAME);
+ icn.getInstarData(inParams, ctx);
+ Assert.assertEquals(InstarClientConstant.OUTPUT_STATUS_SUCCESS, ctx.getAttribute("" + InstarClientConstant.OUTPUT_PARAM_STATUS));
+ Assert.assertEquals("Test-data", ctx.getAttribute(InstarClientConstant.INSTAR_KEY_VALUES));
+ }
+ @Test
+ public void testInstarDataFailure() throws Exception {
+ InstarClientNode icn = new InstarClientNode();
+ SvcLogicContext ctx = new SvcLogicContext ();
+ Map<String, String> inParams = new HashMap<String, String>();
inParams.put(InstarClientConstant.VNF_NAME, "basx0003v");
inParams.put("operationName", InstarClientConstant.OPERATION_GET_IPADDRESS_BY_VNF_NAME);
- inNode.getInstarData(inParams, ctx);
- }
+ expectedEx.expect(SvcLogicException.class);
+ expectedEx.expectMessage("Cannot find Property file -SDNC_CONFIG_DIR");
+ icn.getInstarData(inParams, ctx);
+ }
@Test
public void TestGetAaiInfo() throws Exception {
InstarClientNode aaiNode=new InstarClientNode();
Map<String, String> inParams=new HashMap<String, String> ();
SvcLogicContext ctx=new SvcLogicContext();
- String keyVals=new String("[\"LOCAL_CORE_ALT_IP_ADDR\",\"REMOTE_ACCESS_IP_ADDR\",\"PARAMETER3\",\"PARAMETER4\"]");
+ String keyVals = new String("[\"vnf_name\"]");
inParams.put("aaiKeys",keyVals);
inParams.put("responsePrefix","test");
- String yamlParameterString=IOUtils.toString(TestInstarClientNode.class.getClassLoader().getResourceAsStream("./YamlParameter.txt"), Charset.defaultCharset());
- ctx.setAttribute(AaiClientConstant.SOURCE_SYSTEM_AAI + "." + "LOCAL_CORE_ALT_IP_ADDR",yamlParameterString);
- String yamlParameterString2=IOUtils.toString(TestInstarClientNode.class.getClassLoader().getResourceAsStream("./YamlParameter2.txt"), Charset.defaultCharset());
- ctx.setAttribute(AaiClientConstant.SOURCE_SYSTEM_AAI + "." + "REMOTE_ACCESS_IP_ADDR",yamlParameterString2);
- String yamlParameterString3=IOUtils.toString(TestInstarClientNode.class.getClassLoader().getResourceAsStream("./YamlParameter3.txt"), Charset.defaultCharset());
- ctx.setAttribute(AaiClientConstant.SOURCE_SYSTEM_AAI + "." + "PARAMETER3",yamlParameterString3);
- String yamlParameterString4=IOUtils.toString(TestInstarClientNode.class.getClassLoader().getResourceAsStream("./YamlParameter4.txt"), Charset.defaultCharset());
- ctx.setAttribute(AaiClientConstant.SOURCE_SYSTEM_AAI + "." + "PARAMETER4",yamlParameterString4);
- stubAaiVnfInfoData(ctx);
+ String parameterString="{\"name\":\"vnf_name\",\"description\":null,\"type\":null,\"required\":false,\"source\":\"A&AI\","
+ + "\"rule-type\":\"vnf-name\",\"default\":null,\"request-keys\":null,\"response-keys\":[{\"unique-key-name\":\"parent-name\","
+ + "\"unique-key-value\":\"vnf\",\"field-key-name\":\"vnf-name\",\"filter-by-field\":null,\"filter-by-value\":null}]}";
+ ctx.setAttribute(AaiClientConstant.SOURCE_SYSTEM_AAI + "." + "vnf_name",parameterString);
aaiNode.getAaiInfo(inParams, ctx);
- String [] valToCompare={"\"LOCAL_CORE_ALT_IP_ADDR\":\"testVnf\"",
- "\"REMOTE_ACCESS_IP_ADDR\":\"testVnfc2,testVnfc3\"",
- "\"PARAM3\":\"testVnfcIpv4Address1\"",
- "\"PARAM4\":\"server1,server2,server3\""};
- String value=ctx.getAttribute("test."+AaiClientConstant.AAI_KEY_VALUES);
- boolean pass=false;
- for (int i=0;i<valToCompare.length;i++) {
- if (!StringUtils.contains(value,valToCompare[i] )) {
- //System.out.println(value+"....... "+valToCompare[i].toString());
- pass=false;
- break;
- }
- else {
- pass=true;
- }
- }
- assertTrue(pass);
+ Assert.assertEquals(InstarClientConstant.OUTPUT_STATUS_SUCCESS, ctx.getAttribute("test." + InstarClientConstant.OUTPUT_PARAM_STATUS));
}
- public void stubAaiVnfInfoData(SvcLogicContext context) {
-
- context.setAttribute("tmp.vnfInfo.vm-count","3");
- context.setAttribute("tmp.vnfInfo.vnf.vnf-name","testVnf");
- context.setAttribute("tmp.vnfInfo.vnf.vnf-oam-ipv4-address","test-ipv4-address");
- context.setAttribute("tmp.vnfInfo.vm[0].vserver-name","server1");
- context.setAttribute("tmp.vnfInfo.vm[0].vserver-id","serverId1");
- context.setAttribute("tmp.vnfInfo.vm[0].vnfc-count","1");
- context.setAttribute("tmp.vnfInfo.vm[0].vnfc-name","testVnfc1");
- context.setAttribute("tmp.vnfInfo.vm[0].vnfc-function-code","msc");
- context.setAttribute("tmp.vnfInfo.vm[0].vnfc-ipaddress-v4-oam-vip","testVnfcIpv4Address1");
-
- context.setAttribute("tmp.vnfInfo.vm[1].vserver-name","server2");
- context.setAttribute("tmp.vnfInfo.vm[1].vserver-id","serverId2");
- context.setAttribute("tmp.vnfInfo.vm[1].vnfc-count","1");
- context.setAttribute("tmp.vnfInfo.vm[1].vnfc-name","testVnfc2");
- context.setAttribute("tmp.vnfInfo.vm[1].vnfc-function-code","testFnCode");
- context.setAttribute("tmp.vnfInfo.vm[1].vnfc-ipaddress-v4-oam-vip","testVnfcIpv4Address2");
-
- context.setAttribute("tmp.vnfInfo.vm[2].vserver-name","server3");
- context.setAttribute("tmp.vnfInfo.vm[2].vserver-id","serverId3");
- context.setAttribute("tmp.vnfInfo.vm[2].vnfc-count","1");
- context.setAttribute("tmp.vnfInfo.vm[2].vnfc-name","testVnfc3");
- context.setAttribute("tmp.vnfInfo.vm[2].vnfc-function-code","testFnCode");
- context.setAttribute("tmp.vnfInfo.vm[2].vnfc-ipaddress-v4-oam-vip","testVnfcIpv4Address3");
-
+ @Test
+ public void TestGetAaiInfoFailure() throws Exception {
+ InstarClientNode aaiNode=new InstarClientNode();
+ Map<String, String> inParams= Mockito.spy(new HashMap<String, String> ());
+ inParams.put(InstarClientConstant.INPUT_PARAM_RESPONSE_PRIFIX, "");
+ Mockito.doThrow(new RuntimeException("Test-exception")).when(inParams).get(AaiClientConstant.AAI_KEYS);
+ SvcLogicContext ctx=new SvcLogicContext();
+ expectedEx.expect(SvcLogicException.class);
+ expectedEx.expectMessage("Test-exception");
+ aaiNode.getAaiInfo(inParams, ctx);
}
}
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter.txt b/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter.txt
deleted file mode 100644
index 1cec7f6d0..000000000
--- a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-# ============LICENSE_START==========================================
-# ONAP : APPC
-# ===================================================================
-# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the License);
-# you may not use this software 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.
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-# ============LICENSE_END============================================
-name: "LOCAL_CORE_ALT_IP_ADDR"
-description: null
-type: null
-required: false
-source: "A&AI"
-rule-type: null
-default: "0:0:0:0"
-request-keys:
-- key-name: "address_fqdn"
- key-value: "value"
-- key-name: "address_type"
- key-value: "v4"
-response-keys:
-- unique-key-name: "parent-name"
-- unique-key-value: "vnf"
-- field-key-name: "vnf-name"
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter2.txt b/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter2.txt
deleted file mode 100644
index 46560e323..000000000
--- a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter2.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-# ============LICENSE_START==========================================
-# ONAP : APPC
-# ===================================================================
-# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the License);
-# you may not use this software 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.
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-# ============LICENSE_END============================================
-name: "REMOTE_ACCESS_IP_ADDR"
-description: null
-type: null
-required: false
-source: "A&AI"
-rule-type: null
-default: "0:0:0:0"
-request-keys:
-- key-name: "address_fqdn"
- key-value: "value"
-- key-name: "address_type"
- key-value: "v4"
-response-keys:
-- unique-key-name: "parent-name"
-- unique-key-value: "vnfc"
-- field-key-name: "vnfc-name"
-- filter-by-field: "vnfc-function-code"
-- filter-by-value: "testFnCode"
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter3.txt b/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter3.txt
deleted file mode 100644
index ab17c2546..000000000
--- a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter3.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-# ============LICENSE_START==========================================
-# ONAP : APPC
-# ===================================================================
-# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the License);
-# you may not use this software 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.
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-# ============LICENSE_END============================================
-name: "PARAM3"
-description: null
-type: null
-required: false
-source: "A&AI"
-rule-type: null
-default: "0:0:0:0"
-request-keys:
-- key-name: "address_fqdn"
- key-value: "value"
-- key-name: "address_type"
- key-value: "v4"
-response-keys:
-- unique-key-name: "parent-name"
-- unique-key-value: "vnfc"
-- field-key-name: "ipaddress-v4-oam-vip"
-- filter-by-field: "vnfc-function-code"
-- filter-by-value: "msc"
diff --git a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt b/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt
deleted file mode 100644
index a9d0fbbd7..000000000
--- a/appc-outbound/appc-network-inventory-client/provider/src/test/resources/YamlParameter4.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-# ============LICENSE_START==========================================
-# ONAP : APPC
-# ===================================================================
-# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
-# ===================================================================
-#
-# Unless otherwise specified, all software contained herein is licensed
-# under the Apache License, Version 2.0 (the License);
-# you may not use this software 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.
-#
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-# ============LICENSE_END============================================
-name: "PARAM4"
-description: null
-type: null
-required: false
-source: "A&AI"
-rule-type: null
-default: "0:0:0:0"
-request-keys:
-- key-name: "address_fqdn"
- key-value: "value"
-- key-name: "address_type"
- key-value: "v4"
-response-keys:
-- unique-key-name: "parent-name"
-- unique-key-value: "vserver"
-- field-key-name: "vserver-name"