From 14c5c28d6f68ef772cf2f1739170b83e8b9f94c1 Mon Sep 17 00:00:00 2001 From: c00149107 Date: Thu, 14 Sep 2017 11:02:57 +0800 Subject: Add VFC UT Test JSON Add Test Json for UT of vfc adapter Change-Id: Id8854e80680031c450dae0965046c70c5da93913 Issue-ID:SO-133 Signed-off-by: c00149107 --- .../src/test/resources/json/LICENSE.txt | 19 ++++++++++++++ .../src/test/resources/json/createNsReq.json | 30 ++++++++++++++++++++++ .../src/test/resources/json/createNsRsp.json | 3 +++ .../src/test/resources/json/deleteNsReq.json | 5 ++++ .../src/test/resources/json/instantiateNsReq.json | 30 ++++++++++++++++++++++ .../src/test/resources/json/instantiateNsRsp.json | 3 +++ .../src/test/resources/json/queryJobReq.json | 5 ++++ .../src/test/resources/json/queryJobRsp.json | 10 ++++++++ .../src/test/resources/json/terminateNsReq.json | 5 ++++ .../src/test/resources/json/terminateNsRsp.json | 3 +++ 10 files changed, 113 insertions(+) create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/LICENSE.txt create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/createNsReq.json create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/createNsRsp.json create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/deleteNsReq.json create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsReq.json create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsRsp.json create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/queryJobReq.json create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/queryJobRsp.json create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/terminateNsReq.json create mode 100644 adapters/mso-vfc-adapter/src/test/resources/json/terminateNsRsp.json (limited to 'adapters/mso-vfc-adapter/src/test/resources') diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/LICENSE.txt b/adapters/mso-vfc-adapter/src/test/resources/json/LICENSE.txt new file mode 100644 index 0000000000..bc40e66b0b --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/LICENSE.txt @@ -0,0 +1,19 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2017 Huawei Technologies Co., Ltd. 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========================================================= + */ \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/createNsReq.json b/adapters/mso-vfc-adapter/src/test/resources/json/createNsReq.json new file mode 100644 index 0000000000..da50897b7c --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/createNsReq.json @@ -0,0 +1,30 @@ +{ + "nsServiceName":"vIMS", + "nsServiceDescription":"vIMS NS", + "nsOperationKey":{ + "serviceId":"9b9f02c0-298b-458a-bc9c-be3692e4f351", + "operationId":"9b9f02c0-298b-458a-bc9c-be3692e4f352", + "nodeTemplateUUID":"9b9f02c0-298b-458a-bc9c-be3692e4f353" + }, + "nsParameters":{ + "locationConstraints":[ + { + "vnfProfileId":"zte-CSCF-1.0", + "locationConstraints":{ + "vimId":"1" + } + } + ], + "additionalParamForNs":{ + "externalDataNetworkName":"Flow_out_net", + "m6000_mng_ip":"181.18.20.2", + "externalCompanyFtpDataNetworkName":"Flow_out_net", + "externalPluginManageNetworkName":"plugin_net_2014", + "externalManageNetworkName":"mng_net_2017", + "sfc_data_network":"sfc_data_net_2016", + "NatIpRange":"210.1.1.10-210.1.1.20", + "location":"4050083f-465f-4838-af1e-47a545222ad0", + "sdncontroller":"9b9f02c0-298b-458a-bc9c-be3692e4f35e" + } + } +} \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/createNsRsp.json b/adapters/mso-vfc-adapter/src/test/resources/json/createNsRsp.json new file mode 100644 index 0000000000..ccd1d66909 --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/createNsRsp.json @@ -0,0 +1,3 @@ +{ + "nsInstanceId": "9b9f02c0-298b-458a-bc9c-be3692e4f354" +} \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/deleteNsReq.json b/adapters/mso-vfc-adapter/src/test/resources/json/deleteNsReq.json new file mode 100644 index 0000000000..4f7c29f9d0 --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/deleteNsReq.json @@ -0,0 +1,5 @@ +{ + "serviceId":"9b9f02c0-298b-458a-bc9c-be3692e4f351", + "operationId":"9b9f02c0-298b-458a-bc9c-be3692e4f352", + "nodeTemplateUUID":"9b9f02c0-298b-458a-bc9c-be3692e4f353" +} \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsReq.json b/adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsReq.json new file mode 100644 index 0000000000..da50897b7c --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsReq.json @@ -0,0 +1,30 @@ +{ + "nsServiceName":"vIMS", + "nsServiceDescription":"vIMS NS", + "nsOperationKey":{ + "serviceId":"9b9f02c0-298b-458a-bc9c-be3692e4f351", + "operationId":"9b9f02c0-298b-458a-bc9c-be3692e4f352", + "nodeTemplateUUID":"9b9f02c0-298b-458a-bc9c-be3692e4f353" + }, + "nsParameters":{ + "locationConstraints":[ + { + "vnfProfileId":"zte-CSCF-1.0", + "locationConstraints":{ + "vimId":"1" + } + } + ], + "additionalParamForNs":{ + "externalDataNetworkName":"Flow_out_net", + "m6000_mng_ip":"181.18.20.2", + "externalCompanyFtpDataNetworkName":"Flow_out_net", + "externalPluginManageNetworkName":"plugin_net_2014", + "externalManageNetworkName":"mng_net_2017", + "sfc_data_network":"sfc_data_net_2016", + "NatIpRange":"210.1.1.10-210.1.1.20", + "location":"4050083f-465f-4838-af1e-47a545222ad0", + "sdncontroller":"9b9f02c0-298b-458a-bc9c-be3692e4f35e" + } + } +} \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsRsp.json b/adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsRsp.json new file mode 100644 index 0000000000..51e4d010d0 --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsRsp.json @@ -0,0 +1,3 @@ +{ + "jobId":"1" +} \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/queryJobReq.json b/adapters/mso-vfc-adapter/src/test/resources/json/queryJobReq.json new file mode 100644 index 0000000000..4f7c29f9d0 --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/queryJobReq.json @@ -0,0 +1,5 @@ +{ + "serviceId":"9b9f02c0-298b-458a-bc9c-be3692e4f351", + "operationId":"9b9f02c0-298b-458a-bc9c-be3692e4f352", + "nodeTemplateUUID":"9b9f02c0-298b-458a-bc9c-be3692e4f353" +} \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/queryJobRsp.json b/adapters/mso-vfc-adapter/src/test/resources/json/queryJobRsp.json new file mode 100644 index 0000000000..9238b472a7 --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/queryJobRsp.json @@ -0,0 +1,10 @@ +{ + "jobId": "1", + "responseDescriptor": { + "progress": "100", + "status": "finished", + "statusDescription": "OMC VMs are decommissioned in VIM", + "errorCode": "", + "responseId": "22" + } +} \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/terminateNsReq.json b/adapters/mso-vfc-adapter/src/test/resources/json/terminateNsReq.json new file mode 100644 index 0000000000..4f7c29f9d0 --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/terminateNsReq.json @@ -0,0 +1,5 @@ +{ + "serviceId":"9b9f02c0-298b-458a-bc9c-be3692e4f351", + "operationId":"9b9f02c0-298b-458a-bc9c-be3692e4f352", + "nodeTemplateUUID":"9b9f02c0-298b-458a-bc9c-be3692e4f353" +} \ No newline at end of file diff --git a/adapters/mso-vfc-adapter/src/test/resources/json/terminateNsRsp.json b/adapters/mso-vfc-adapter/src/test/resources/json/terminateNsRsp.json new file mode 100644 index 0000000000..51e4d010d0 --- /dev/null +++ b/adapters/mso-vfc-adapter/src/test/resources/json/terminateNsRsp.json @@ -0,0 +1,3 @@ +{ + "jobId":"1" +} \ No newline at end of file -- cgit 1.2.3-korg