From dfb69e3b0abe21faf38a68e7e73468f874e045f9 Mon Sep 17 00:00:00 2001 From: Aaron Hay Date: Sat, 21 Jul 2018 16:35:26 -0400 Subject: Add CDT CSIT support. Add six CDT CSIT tests for APPC. Change-Id: Iad0bb8a2efc9811868348668fcfbcacab6abddda Issue-ID: APPC-1091 Signed-off-by: Aaron Hay --- ..._Configure_vUSP - Revenue Assurance_0.0.1V.yaml | 13 +++ ...erence_AllAction_HealthCheckAnsible_0.0.1V.json | 48 ++++++++ ..._AllAction_vUSP - Revenue Assurance_0.0.1V.json | 124 +++++++++++++++++++++ ..._Configure_vUSP - Revenue Assurance_0.0.1V.json | 5 + .../cdt/data/vUSP_User Input Spreadsheet v.07.xlsx | Bin 0 -> 609997 bytes 5 files changed, 190 insertions(+) create mode 100755 test/csit/tests/appc/cdt/data/pd_Configure_vUSP - Revenue Assurance_0.0.1V.yaml create mode 100755 test/csit/tests/appc/cdt/data/reference_AllAction_HealthCheckAnsible_0.0.1V.json create mode 100755 test/csit/tests/appc/cdt/data/reference_AllAction_vUSP - Revenue Assurance_0.0.1V.json create mode 100755 test/csit/tests/appc/cdt/data/template_Configure_vUSP - Revenue Assurance_0.0.1V.json create mode 100755 test/csit/tests/appc/cdt/data/vUSP_User Input Spreadsheet v.07.xlsx (limited to 'test/csit/tests/appc/cdt/data') diff --git a/test/csit/tests/appc/cdt/data/pd_Configure_vUSP - Revenue Assurance_0.0.1V.yaml b/test/csit/tests/appc/cdt/data/pd_Configure_vUSP - Revenue Assurance_0.0.1V.yaml new file mode 100755 index 000000000..cea00f0f9 --- /dev/null +++ b/test/csit/tests/appc/cdt/data/pd_Configure_vUSP - Revenue Assurance_0.0.1V.yaml @@ -0,0 +1,13 @@ +--- +kind: "Property Definition" +version: V1 +vnf-parameter-list: +- name: vnf_name + type: null + description: dawnDescript + required: null + default: null + source: Manual + rule-type: null + request-keys: null + response-keys: null diff --git a/test/csit/tests/appc/cdt/data/reference_AllAction_HealthCheckAnsible_0.0.1V.json b/test/csit/tests/appc/cdt/data/reference_AllAction_HealthCheckAnsible_0.0.1V.json new file mode 100755 index 000000000..90fd0acd5 --- /dev/null +++ b/test/csit/tests/appc/cdt/data/reference_AllAction_HealthCheckAnsible_0.0.1V.json @@ -0,0 +1,48 @@ +{ + "reference_data": [ + { + "action": "HealthCheck", + "action-level": "vnf", + "scope": { + "vnf-type": "csit", + "vnfc-type-list": [], + "vnfc-type": "" + }, + "template": "Y", + "vm": [], + "device-protocol": "ANSIBLE", + "user-name": "", + "port-number": "", + "artifact-list": [ + { + "artifact-name": "template_HealthCheck_dawnMay17_0.0.1V.json", + "artifact-type": "config_template" + }, + { + "artifact-name": "pd_HealthCheck_dawnMay17_0.0.1V.yaml", + "artifact-type": "parameter_definitions" + }, + { + "artifact-name": "param_HealthCheck_dawnMay17_0.0.1V.json", + "artifact-type": "param_values" + } + ], + "scopeType": "vnf-type" + }, + { + "action": "AllAction", + "action-level": "vnf", + "scope": { + "vnf-type": "csit", + "vnfc-type-list": [], + "vnfc-type": "" + }, + "artifact-list": [ + { + "artifact-name": "reference_AllAction_dawnMay17_0.0.1V.json", + "artifact-type": "reference_template" + } + ] + } + ] +} diff --git a/test/csit/tests/appc/cdt/data/reference_AllAction_vUSP - Revenue Assurance_0.0.1V.json b/test/csit/tests/appc/cdt/data/reference_AllAction_vUSP - Revenue Assurance_0.0.1V.json new file mode 100755 index 000000000..f78debef4 --- /dev/null +++ b/test/csit/tests/appc/cdt/data/reference_AllAction_vUSP - Revenue Assurance_0.0.1V.json @@ -0,0 +1,124 @@ +{ + "reference_data": [ + { + "action": "Configure", + "action-level": "vnf", + "scope": { + "vnf-type": "vUSP - Revenue Assurance", + "vnfc-type": "" + }, + "template": "Y", + "vm": [ + { + "vm-instance": 1, + "vnfc": [ + { + "vnfc-instance": "1", + "vnfc-function-code": "rar", + "ipaddress-v4-oam-vip": "Y", + "group-notation-type": "first-vnfc-name", + "group-notation-value": "pair", + "vnfc-type": "vUSP vRAR" + } + ] + }, + { + "vm-instance": 2, + "vnfc": [ + { + "vnfc-instance": "1", + "vnfc-function-code": "rar", + "ipaddress-v4-oam-vip": "Y", + "group-notation-type": "first-vnfc-name", + "group-notation-value": "pair", + "vnfc-type": "vUSP vRAR" + } + ] + } + ], + "device-protocol": "ANSIBLE", + "user-name": "att", + "port-number": "5000", + "artifact-list": [ + { + "artifact-name": "template_Configure_vUSP-RevenueAssurance_0.0.1V..json", + "artifact-type": "config_template" + }, + { + "artifact-name": "pd_Configure_vUSP-RevenueAssurance_0.0.1V.yaml", + "artifact-type": "parameter_definitions" + }, + { + "artifact-name": "param_Configure_vUSP-RevenueAssurance_0.0.1V.json", + "artifact-type": "param_values" + } + ], + "scopeType": "vnf-type" + }, + { + "action": "ConfigBackup", + "action-level": "vnf", + "scope": { + "vnf-type": "vUSP - Revenue Assurance", + "vnfc-type": "", + "vnfc-type-list": [] + }, + "template": "Y", + "vm": [], + "device-protocol": "ANSIBLE", + "user-name": "att", + "port-number": "5000", + "artifact-list": [ + { + "artifact-name": "template_ConfigBackup_vUSP-vRAR_0.0.1V.json", + "artifact-type": "config_template" + }, + { + "artifact-name": "pd_ConfigBackup_vUSP-vRAR_0.0.1V.yaml", + "artifact-type": "parameter_definitions" + } + ], + "scopeType": "vnf-type" + }, + { + "action": "ConfigRestore", + "action-level": "vnf", + "scope": { + "vnf-type": "vUSP - Revenue Assurance", + "vnfc-type": "", + "vnfc-type-list": [] + }, + "template": "Y", + "vm": [], + "device-protocol": "ANSIBLE", + "user-name": "att", + "port-number": "5000", + "artifact-list": [ + { + "artifact-name": "template_ConfigRestore_vUSP-vRAR_0.0.1V.json", + "artifact-type": "config_template" + }, + { + "artifact-name": "pd_ConfigRestore_vUSP-vRAR_0.0.1V.yaml", + "artifact-type": "parameter_definitions" + } + ], + "scopeType": "vnf-type" + }, + { + "action": "AllAction", + "action-level": "vnf", + "scope": { + "vnf-type": "vUSP - Revenue Assurance", + "vnfc-type": "", + "vnfc-type-list": [] + }, + "artifact-list": [ + { + "artifact-name": "reference_AllAction_vUSP-RevenueAssurance_0.0.1V.json", + "artifact-type": "reference_template" + } + ] + } + ] +} \ No newline at end of file diff --git a/test/csit/tests/appc/cdt/data/template_Configure_vUSP - Revenue Assurance_0.0.1V.json b/test/csit/tests/appc/cdt/data/template_Configure_vUSP - Revenue Assurance_0.0.1V.json new file mode 100755 index 000000000..5dd853c5a --- /dev/null +++ b/test/csit/tests/appc/cdt/data/template_Configure_vUSP - Revenue Assurance_0.0.1V.json @@ -0,0 +1,5 @@ +{ + "PlaybookName": "rarf/latest/ansible/restore/site.yml", + "EnvParameters": {"vnf_instance":"${vnf_name}"}, + "Timeout": 600 +} diff --git a/test/csit/tests/appc/cdt/data/vUSP_User Input Spreadsheet v.07.xlsx b/test/csit/tests/appc/cdt/data/vUSP_User Input Spreadsheet v.07.xlsx new file mode 100755 index 000000000..3a5efcb22 Binary files /dev/null and b/test/csit/tests/appc/cdt/data/vUSP_User Input Spreadsheet v.07.xlsx differ -- cgit 1.2.3-korg