summaryrefslogtreecommitdiffstats
path: root/adapters/mso-vfc-adapter/src
diff options
context:
space:
mode:
authorc00149107 <chenchuanyu@huawei.com>2017-09-14 11:02:57 +0800
committerc00149107 <chenchuanyu@huawei.com>2017-09-14 11:02:57 +0800
commit14c5c28d6f68ef772cf2f1739170b83e8b9f94c1 (patch)
tree9bf2e6f20d64c05c31701a830f1f2b70c9199500 /adapters/mso-vfc-adapter/src
parent92ffbb4a56b1f84ed130b04ca3a9954ce610a02a (diff)
Add VFC UT Test JSON
Add Test Json for UT of vfc adapter Change-Id: Id8854e80680031c450dae0965046c70c5da93913 Issue-ID:SO-133 Signed-off-by: c00149107 <chenchuanyu@huawei.com>
Diffstat (limited to 'adapters/mso-vfc-adapter/src')
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/LICENSE.txt19
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/createNsReq.json30
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/createNsRsp.json3
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/deleteNsReq.json5
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsReq.json30
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/instantiateNsRsp.json3
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/queryJobReq.json5
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/queryJobRsp.json10
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/terminateNsReq.json5
-rw-r--r--adapters/mso-vfc-adapter/src/test/resources/json/terminateNsRsp.json3
10 files changed, 113 insertions, 0 deletions
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