aboutsummaryrefslogtreecommitdiffstats
path: root/appc-inbound/appc-artifact-handler/provider/src/test/resources
diff options
context:
space:
mode:
authorRamya Balaji <rb111y@att.com>2017-09-11 15:50:25 -0400
committerSkip Wonnell <skip@att.com>2017-09-12 12:50:28 +0000
commitc0eaebba5cd79c295b3e112e2f3632bc5559b237 (patch)
treefb434fad80b01504bff28d000fb00f1c72858ef6 /appc-inbound/appc-artifact-handler/provider/src/test/resources
parent66384fab722a35403c8510f25b30f9b9c9ad9a0b (diff)
Junit Cases for Artifact Handler.
Issue-ID : APPC-168 Change-Id: Id2b211d5656ffa8d5f326c30d745bc497e76f4d0 Signed-off-by: Ramya Balaji <rb111y@att.com>
Diffstat (limited to 'appc-inbound/appc-artifact-handler/provider/src/test/resources')
-rwxr-xr-xappc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template100
-rwxr-xr-xappc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template.json100
2 files changed, 200 insertions, 0 deletions
diff --git a/appc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template b/appc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template
index e69de29bb..ef4772df8 100755
--- a/appc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template
+++ b/appc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template
@@ -0,0 +1,100 @@
+{
+"reference_data" : [
+{
+"action": "ConfigureTest",
+"action-level":"VNF",
+"scope": {
+"vnf-type": "TestvUSP - vDBE-IPX HUB",
+"vnfc-type": "TestDBE-VM #1"
+},
+"template": "Y",
+"vm": [
+{
+"vm-instance": 1,
+"vnfc": [
+{
+"vnfc-instance": 1,
+"vnfc-type": "TestDBE-VM #1",
+"vnfc-function-code": "Testdbg",
+"group-notation-type": "GNType",
+"ipaddress-v4-oam-vip": "N",
+"group-notation-value": "GNValue"
+},
+{
+"vnfc-instance": 2,
+"vnfc-type": "TestDBE-VM #1",
+"vnfc-function-code": "Testdbg",
+"group-notation-type": "GNType",
+"ipaddress-v4-oam-vip": "Y",
+"group-notation-value": "GNValue"
+}
+]
+},
+{
+"vm-instance": 2,
+"vnfc": [{
+"vnfc-instance": 1,
+"vnfc-type": "TestDBE-VM #1",
+"vnfc-function-code": "Testdbg",
+"group-notation-type": "GNType",
+"ipaddress-v4-oam-vip": "Y",
+"group-notation-value": "GNValue"
+}
+]
+}
+],
+"device-protocol": "TestNETCONF-XML",
+"user-name": "Testnetconf",
+"port-number": "22",
+"download-dg-reference" : "TestDownloadDGReference",
+"artifact-list": [
+{
+"artifact-name": "TestvDBE-I_template.json",
+"artifact-type": "Testconfig_template"
+},
+{
+"artifact-name": "TESTvDBE-I_parameter_definitions.json",
+"artifact-type": "Testparameter_definitions"
+},
+{
+"artifact-name": "PD_JunitTESTvDBE-I_parameter_yang.json",
+"artifact-type": "PD_definations"
+}
+]
+},
+{
+ "action": "ConfigModify",
+ "action-level": "VNF",
+ "scope": {
+ "vnf-type": "vDBE-I",
+ "vnfc-type": null
+ },
+ "template": "Y",
+ "device-protocol": "NETCONF-XML",
+ "user-name": "Testnetconf",
+ "port-number": "22",
+ "artifact-list": [
+ {
+ "artifact-name": "template_ConfigModify_vDBE-I_0.0.1V.xml",
+ "artifact-type": "config_template"
+ },
+ {
+ "artifact-name": "pd_ConfigModify_vDBE-I_0.0.1V.yaml",
+ "artifact-type": "parameter_definitions"
+ }
+ ]
+},
+
+{
+ "action": "HealthCheck",
+ "action-level": "VM",
+ "scope": {
+ "vnf-type": "vDBE-I",
+ "vnfc-type": null
+ },
+ "template": "N",
+ "device-protocol": "REST",
+ "vnfc-function-code": ["SSC","MMSC"]
+}
+]
+}
diff --git a/appc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template.json b/appc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template.json
new file mode 100755
index 000000000..ef4772df8
--- /dev/null
+++ b/appc-inbound/appc-artifact-handler/provider/src/test/resources/templates/reference_template.json
@@ -0,0 +1,100 @@
+{
+"reference_data" : [
+{
+"action": "ConfigureTest",
+"action-level":"VNF",
+"scope": {
+"vnf-type": "TestvUSP - vDBE-IPX HUB",
+"vnfc-type": "TestDBE-VM #1"
+},
+"template": "Y",
+"vm": [
+{
+"vm-instance": 1,
+"vnfc": [
+{
+"vnfc-instance": 1,
+"vnfc-type": "TestDBE-VM #1",
+"vnfc-function-code": "Testdbg",
+"group-notation-type": "GNType",
+"ipaddress-v4-oam-vip": "N",
+"group-notation-value": "GNValue"
+},
+{
+"vnfc-instance": 2,
+"vnfc-type": "TestDBE-VM #1",
+"vnfc-function-code": "Testdbg",
+"group-notation-type": "GNType",
+"ipaddress-v4-oam-vip": "Y",
+"group-notation-value": "GNValue"
+}
+]
+},
+{
+"vm-instance": 2,
+"vnfc": [{
+"vnfc-instance": 1,
+"vnfc-type": "TestDBE-VM #1",
+"vnfc-function-code": "Testdbg",
+"group-notation-type": "GNType",
+"ipaddress-v4-oam-vip": "Y",
+"group-notation-value": "GNValue"
+}
+]
+}
+],
+"device-protocol": "TestNETCONF-XML",
+"user-name": "Testnetconf",
+"port-number": "22",
+"download-dg-reference" : "TestDownloadDGReference",
+"artifact-list": [
+{
+"artifact-name": "TestvDBE-I_template.json",
+"artifact-type": "Testconfig_template"
+},
+{
+"artifact-name": "TESTvDBE-I_parameter_definitions.json",
+"artifact-type": "Testparameter_definitions"
+},
+{
+"artifact-name": "PD_JunitTESTvDBE-I_parameter_yang.json",
+"artifact-type": "PD_definations"
+}
+]
+},
+{
+ "action": "ConfigModify",
+ "action-level": "VNF",
+ "scope": {
+ "vnf-type": "vDBE-I",
+ "vnfc-type": null
+ },
+ "template": "Y",
+ "device-protocol": "NETCONF-XML",
+ "user-name": "Testnetconf",
+ "port-number": "22",
+ "artifact-list": [
+ {
+ "artifact-name": "template_ConfigModify_vDBE-I_0.0.1V.xml",
+ "artifact-type": "config_template"
+ },
+ {
+ "artifact-name": "pd_ConfigModify_vDBE-I_0.0.1V.yaml",
+ "artifact-type": "parameter_definitions"
+ }
+ ]
+},
+
+{
+ "action": "HealthCheck",
+ "action-level": "VM",
+ "scope": {
+ "vnf-type": "vDBE-I",
+ "vnfc-type": null
+ },
+ "template": "N",
+ "device-protocol": "REST",
+ "vnfc-function-code": ["SSC","MMSC"]
+}
+]
+}