summaryrefslogtreecommitdiffstats
path: root/appc-config/appc-config-params/provider/src/test/resources/parser
diff options
context:
space:
mode:
Diffstat (limited to 'appc-config/appc-config-params/provider/src/test/resources/parser')
-rw-r--r--appc-config/appc-config-params/provider/src/test/resources/parser/merge-param.json8
-rw-r--r--appc-config/appc-config-params/provider/src/test/resources/parser/pd_with_required_keys.yaml96
-rw-r--r--appc-config/appc-config-params/provider/src/test/resources/parser/request-param.json10
-rw-r--r--appc-config/appc-config-params/provider/src/test/resources/parser/request-param_missing_keys.json6
-rw-r--r--appc-config/appc-config-params/provider/src/test/resources/parser/system-param.json6
5 files changed, 114 insertions, 12 deletions
diff --git a/appc-config/appc-config-params/provider/src/test/resources/parser/merge-param.json b/appc-config/appc-config-params/provider/src/test/resources/parser/merge-param.json
index 76aebb0ac..0c3a02331 100644
--- a/appc-config/appc-config-params/provider/src/test/resources/parser/merge-param.json
+++ b/appc-config/appc-config-params/provider/src/test/resources/parser/merge-param.json
@@ -1,6 +1,6 @@
{
- "Additional1": "XX.XX.XX",
- "Additional2": "XXXXXX",
- "Additiona3": "00",
- "Additional": "00"
+ "Additional1": "XX.XX.XX",
+ "Additional2": "XXXXXX",
+ "Additiona3": "00",
+ "Additional": "00"
}
diff --git a/appc-config/appc-config-params/provider/src/test/resources/parser/pd_with_required_keys.yaml b/appc-config/appc-config-params/provider/src/test/resources/parser/pd_with_required_keys.yaml
new file mode 100644
index 000000000..716766a2e
--- /dev/null
+++ b/appc-config/appc-config-params/provider/src/test/resources/parser/pd_with_required_keys.yaml
@@ -0,0 +1,96 @@
+# ============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============================================
+---
+kind: "Property Definition"
+version: "V1"
+vnf-parameter-list:
+- name: "LOCAL_ACCESS_IP_ADDR"
+ description: null
+ type: null
+ required: true
+ source: "INSTAR"
+ rule-type: "interface-ip-address"
+ default: "0.0.0.0"
+ request-keys:
+ - key-name: "address_fqdn"
+ key-value: "value"
+ - key-name: "address_type"
+ key-value: "v4"
+ response-keys: null
+- name: "LOCAL_CORE_ALT_IP_ADDR"
+ description: null
+ type: null
+ required: true
+ 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: null
+- name: "LOCAL_BILLING_IP_ADDR"
+ description: null
+ type: null
+ required: false
+ source: null
+ rule-type: null
+ default: "0.0.0.0"
+ request-keys: null
+ response-keys: null
+- name: "REMOTE_ACCESS_IP_ADDR"
+ description: null
+ type: null
+ required: false
+ source: null
+ rule-type: null
+ default: "0.0.0.0"
+ request-keys: null
+ response-keys: null
+- name: "REMOTE_CORE_ALT_IP_ADDR"
+ description: null
+ type: null
+ required: false
+ source: null
+ rule-type: null
+ default: "0:0:0:0"
+ request-keys: null
+ response-keys: null
+- name: "REMOTE_BILLING_IP_ADDR"
+ description: null
+ type: null
+ required: false
+ source: "Manual"
+ rule-type: null
+ default: "0.0.0.0"
+ request-keys: null
+ response-keys: null
+- name: "CORE_NETWORK_PLEN"
+ description: null
+ type: null
+ required: false
+ source: INSTAR
+ rule-type: null
+ default: "32"
+ request-keys: null
+ response-keys: null
diff --git a/appc-config/appc-config-params/provider/src/test/resources/parser/request-param.json b/appc-config/appc-config-params/provider/src/test/resources/parser/request-param.json
index f4dc6f2e3..fa141ea6c 100644
--- a/appc-config/appc-config-params/provider/src/test/resources/parser/request-param.json
+++ b/appc-config/appc-config-params/provider/src/test/resources/parser/request-param.json
@@ -1,6 +1,6 @@
-{
- "LOCAL_BILLING_IP_ADDR": "0.0.0.0",
- "REMOTE_CORE_ALT_IP_ADDR": "value",
- "REMOTE_BILLING_IP_ADDR": "0.0.0.0",
- "CORE_NETWORK_PLEN": "32"
+{
+ "LOCAL_BILLING_IP_ADDR": "0.0.0.0",
+ "REMOTE_CORE_ALT_IP_ADDR": "value",
+ "REMOTE_BILLING_IP_ADDR": "0.0.0.0",
+ "CORE_NETWORK_PLEN": "32"
}
diff --git a/appc-config/appc-config-params/provider/src/test/resources/parser/request-param_missing_keys.json b/appc-config/appc-config-params/provider/src/test/resources/parser/request-param_missing_keys.json
new file mode 100644
index 000000000..94630f8fb
--- /dev/null
+++ b/appc-config/appc-config-params/provider/src/test/resources/parser/request-param_missing_keys.json
@@ -0,0 +1,6 @@
+{
+ "LOCAL_CORE_ALT_IP_ADDR": "0.0.0.0",
+ "REMOTE_CORE_ALT_IP_ADDR": "value",
+ "REMOTE_BILLING_IP_ADDR": "0.0.0.0",
+ "CORE_NETWORK_PLEN": "32"
+}
diff --git a/appc-config/appc-config-params/provider/src/test/resources/parser/system-param.json b/appc-config/appc-config-params/provider/src/test/resources/parser/system-param.json
index bb3fdfc50..33672001e 100644
--- a/appc-config/appc-config-params/provider/src/test/resources/parser/system-param.json
+++ b/appc-config/appc-config-params/provider/src/test/resources/parser/system-param.json
@@ -1,5 +1,5 @@
{
- "LOCAL_ACCESS_IP_ADDR": "XX.XX.XX",
- "LOCAL_BILLING_IP_ADDR": "XXXXXX",
- "CORE_NETWORK_PLEN": "00"
+ "LOCAL_ACCESS_IP_ADDR": "XX.XX.XX",
+ "LOCAL_BILLING_IP_ADDR": "XXXXXX",
+ "CORE_NETWORK_PLEN": "00"
}