summaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/test/resources/resource-examples/moduleTest
diff options
context:
space:
mode:
Diffstat (limited to 'asdc-controller/src/test/resources/resource-examples/moduleTest')
-rw-r--r--asdc-controller/src/test/resources/resource-examples/moduleTest/base_TEST.env6
-rw-r--r--asdc-controller/src/test/resources/resource-examples/moduleTest/base_TEST.yaml44
-rw-r--r--asdc-controller/src/test/resources/resource-examples/moduleTest/notif-structure.json67
-rw-r--r--asdc-controller/src/test/resources/resource-examples/moduleTest/service-Testalts1-csar.csarbin0 -> 51765 bytes
-rw-r--r--asdc-controller/src/test/resources/resource-examples/moduleTest/testalts0_modules.json25
5 files changed, 142 insertions, 0 deletions
diff --git a/asdc-controller/src/test/resources/resource-examples/moduleTest/base_TEST.env b/asdc-controller/src/test/resources/resource-examples/moduleTest/base_TEST.env
new file mode 100644
index 0000000000..c72f90646e
--- /dev/null
+++ b/asdc-controller/src/test/resources/resource-examples/moduleTest/base_TEST.env
@@ -0,0 +1,6 @@
+parameters:
+ TEST_Role_net_name:
+ TEST_flavor_name:
+ TEST_image_name:
+ TEST_server_name:
+ TEST_vnf_id:
diff --git a/asdc-controller/src/test/resources/resource-examples/moduleTest/base_TEST.yaml b/asdc-controller/src/test/resources/resource-examples/moduleTest/base_TEST.yaml
new file mode 100644
index 0000000000..84f757ccba
--- /dev/null
+++ b/asdc-controller/src/test/resources/resource-examples/moduleTest/base_TEST.yaml
@@ -0,0 +1,44 @@
+heat_template_version: 2013-05-23
+
+description: heat template that creates TEST VNF
+
+parameters:
+ TEST_server_name:
+ type: string
+ label: TEST server name
+ description: TEST server name
+ TEST_image_name:
+ type: string
+ label: image name
+ description: TEST image name
+ TEST_flavor_name:
+ type: string
+ label: TEST flavor name
+ description: flavor name of TEST instance
+
+ TEST_Role_net_name:
+ type: string
+ label: TEST network name
+ description: TEST network name
+ TEST_vnf_id:
+ type: string
+ label: TEST VNF Id
+ description: TEST VNF Id
+
+resources:
+
+ TEST:
+ type: OS::Nova::Server
+ properties:
+ name: { get_param: TEST_server_name }
+ image: { get_param: TEST_image_name }
+ flavor: { get_param: TEST_flavor_name }
+ networks:
+ - port: { get_resource: TEST_port_0}
+ metadata:
+ vnf_id: {get_param: TEST_vnf_id}
+
+ TEST_port_0:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_param: TEST_Role_net_name }
diff --git a/asdc-controller/src/test/resources/resource-examples/moduleTest/notif-structure.json b/asdc-controller/src/test/resources/resource-examples/moduleTest/notif-structure.json
new file mode 100644
index 0000000000..b2f11c43eb
--- /dev/null
+++ b/asdc-controller/src/test/resources/resource-examples/moduleTest/notif-structure.json
@@ -0,0 +1,67 @@
+{
+ "serviceName": "testALTS1",
+ "serviceInvariantUUID": "155006dc-f0b4-4d6d-b217-72c75e819cdb",
+ "serviceUUID": "3e56620a-1566-4268-8629-58aae07df9e5",
+ "serviceVersion": "2.0",
+ "serviceArtifacts":
+ [{
+ "artifactName": "service-Testalts1-csar.csar",
+ "artifactType": "TOSCA_CSAR",
+ "artifactURL": "service-Testalts1-csar.csar",
+ "artifactChecksum": "NTdjNDdiMTU5YjVkNzQxYjNkZWQ2N2M5YTdiYjQ3MGI=",
+ "artifactDescription": "TOSCA representation of the asset",
+ "artifactTimeout": 0,
+ "artifactUUID": "9e2c10dc-a3a6-4799-b0a9-a128fbf7a9b1",
+ "artifactVersion": "2.0"
+ }],
+ "resources":
+ [
+ {
+ "resourceInstanceName": "testALTS 0",
+ "resourceInvariantUUID": "51c7fb99-642a-4c02-8d8d-e206fc170b6d",
+ "resourceCustomizationUUID": "364a5635-f63b-45f3-9c3d-14993d996e35",
+ "resourceName": "resourceName-1",
+ "resourceType": "VF",
+ "resourceUUID": "a81db5a3-7c23-4376-8c42-ec610aaea135",
+ "resourceVersion": "2.0",
+ "category": "Network L4+",
+ "subcategory": "Common Network Resources",
+ "artifacts":
+ [
+ {
+ "artifactChecksum": "ZGY5NzliMTI4NDA4NGYyOWIyYTA4N2NmYzZiYWU5MmM=",
+ "artifactDescription": "Auto-generated VF Modules information artifact",
+ "artifactName": "testalts0_modules.json",
+ "artifactType": "VF_MODULES_METADATA",
+ "artifactURL": "testalts0_modules.json",
+ "artifactUUID": "68be0190-fb74-408e-81db-d90a5e3aecb5",
+ "artifactTimeout": 0,
+ "artifactVersion": "2.0"
+ },
+ {
+ "artifactChecksum": "MDJlOTUwMDY0YzU3YjRjZTM0ZmZmYTM5NTE5ZThkNDI=",
+ "artifactDescription": "created from csar",
+ "artifactName": "base_TEST.yaml",
+ "artifactTimeout": 120,
+ "artifactType": "HEAT",
+ "artifactURL": "base_TEST.yaml",
+ "artifactUUID": "d7c1d4ca-3fdc-4880-86dc-90ca724fbcd7",
+ "artifactVersion": "2.0",
+ "generatedArtifact": "57f6520b-fa65-4544-90de-95c8190c2e6c"
+ },
+ {
+ "artifactChecksum": "YWQ2MmE0Y2NjNGE4YmJlOTk0YmZhYmIxYTc1YWZkY2M=",
+ "artifactDescription": "Auto-generated HEAT Environment deployment artifact",
+ "artifactName": "base_TEST.env",
+ "artifactTimeout": 0,
+ "artifactType": "HEAT_ENV",
+ "artifactURL": "base_TEST.env",
+ "artifactUUID": "57f6520b-fa65-4544-90de-95c8190c2e6c",
+ "artifactVersion": "1.0"
+ }
+ ]
+ }
+ ],
+ "serviceDescription": "ALTS service",
+ "distributionID": "03f016c8-7d8e-412b-901d-e96c7c66459b"
+} \ No newline at end of file
diff --git a/asdc-controller/src/test/resources/resource-examples/moduleTest/service-Testalts1-csar.csar b/asdc-controller/src/test/resources/resource-examples/moduleTest/service-Testalts1-csar.csar
new file mode 100644
index 0000000000..3d29ab8cec
--- /dev/null
+++ b/asdc-controller/src/test/resources/resource-examples/moduleTest/service-Testalts1-csar.csar
Binary files differ
diff --git a/asdc-controller/src/test/resources/resource-examples/moduleTest/testalts0_modules.json b/asdc-controller/src/test/resources/resource-examples/moduleTest/testalts0_modules.json
new file mode 100644
index 0000000000..4dfb97dbc8
--- /dev/null
+++ b/asdc-controller/src/test/resources/resource-examples/moduleTest/testalts0_modules.json
@@ -0,0 +1,25 @@
+[
+ {
+ "vfModuleModelName": "Testalts..base_TEST..module-0",
+ "vfModuleModelInvariantUUID": "2cec5cc9-9b83-46ff-948e-1c0bd726d1ce",
+ "vfModuleModelVersion": "2",
+ "vfModuleModelUUID": "a3253fe9-2877-489d-9a41-dd3f38d4b4c1",
+ "vfModuleModelCustomizationUUID": "2d1c5862-7555-48d9-8aa9-1a34b5b70f6a",
+ "isBase": true,
+ "artifacts": [
+ "d7c1d4ca-3fdc-4880-86dc-90ca724fbcd7",
+ "57f6520b-fa65-4544-90de-95c8190c2e6c"
+ ],
+ "properties": {
+ "min_vf_module_instances": "1",
+ "vf_module_label": "base_TEST",
+ "max_vf_module_instances": "1",
+ "vfc_list": "",
+ "vf_module_description": "",
+ "vf_module_type": "Base",
+ "availability_zone_count": "",
+ "volume_group": "false",
+ "initial_count": "1"
+ }
+ }
+]