diff options
author | aribeiro <anderson.ribeiro@est.tech> | 2021-05-18 20:57:07 +0100 |
---|---|---|
committer | Christophe Closset <christophe.closset@intl.att.com> | 2021-07-05 14:36:03 +0000 |
commit | 6047cd212696f5260d1296ce1fc3449dadb6005d (patch) | |
tree | 06812f8814816ade1442ca0393a91f09655f4fd1 /catalog-be/src/test/resources | |
parent | b835031b83230c36649c6e77787867a465e0ac47 (diff) |
Support for associating node types to models
Issue-ID: SDC-3597
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Change-Id: Icd0066240b78ba98d8f0efab66d11756f18cb251
Diffstat (limited to 'catalog-be/src/test/resources')
-rw-r--r-- | catalog-be/src/test/resources/node-types/TestNodeType001.yml | 18 | ||||
-rw-r--r-- | catalog-be/src/test/resources/node-types/TestNodeType001.zip | bin | 0 -> 558 bytes | |||
-rw-r--r-- | catalog-be/src/test/resources/node-types/TestNodeType002.zip | bin | 0 -> 559 bytes | |||
-rw-r--r-- | catalog-be/src/test/resources/node-types/invalid.json | 3 | ||||
-rw-r--r-- | catalog-be/src/test/resources/node-types/nodeTypeWithEmptyModels.json | 16 | ||||
-rw-r--r-- | catalog-be/src/test/resources/node-types/nodeTypeWithModelsField.json | 16 | ||||
-rw-r--r-- | catalog-be/src/test/resources/node-types/nodeTypeWithoutModelsField.json | 15 |
7 files changed, 68 insertions, 0 deletions
diff --git a/catalog-be/src/test/resources/node-types/TestNodeType001.yml b/catalog-be/src/test/resources/node-types/TestNodeType001.yml new file mode 100644 index 0000000000..6a312579d8 --- /dev/null +++ b/catalog-be/src/test/resources/node-types/TestNodeType001.yml @@ -0,0 +1,18 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + tosca.nodes.nfv.TestNodeType001: + derived_from: tosca.nodes.Root + description: The generic abstract type from which all VNF specific abstract node types shall be derived to form, together with other node types, the TOSCA service template(s) representing the VNFD + properties: + descriptor_id: # instead of vnfd_id + type: string # GUID + description: Globally unique identifier of the VNFD + required: true + descriptor_version: # instead of vnfd_version + type: string + description: Identifies the version of the VNFD + required: true + provider: # instead of vnf_provider + type: string + description: Provider of the VNF and of the VNFD + required: true diff --git a/catalog-be/src/test/resources/node-types/TestNodeType001.zip b/catalog-be/src/test/resources/node-types/TestNodeType001.zip Binary files differnew file mode 100644 index 0000000000..047088ca3f --- /dev/null +++ b/catalog-be/src/test/resources/node-types/TestNodeType001.zip diff --git a/catalog-be/src/test/resources/node-types/TestNodeType002.zip b/catalog-be/src/test/resources/node-types/TestNodeType002.zip Binary files differnew file mode 100644 index 0000000000..1185e3ffc1 --- /dev/null +++ b/catalog-be/src/test/resources/node-types/TestNodeType002.zip diff --git a/catalog-be/src/test/resources/node-types/invalid.json b/catalog-be/src/test/resources/node-types/invalid.json new file mode 100644 index 0000000000..0db3279e44 --- /dev/null +++ b/catalog-be/src/test/resources/node-types/invalid.json @@ -0,0 +1,3 @@ +{ + +} diff --git a/catalog-be/src/test/resources/node-types/nodeTypeWithEmptyModels.json b/catalog-be/src/test/resources/node-types/nodeTypeWithEmptyModels.json new file mode 100644 index 0000000000..535f7403eb --- /dev/null +++ b/catalog-be/src/test/resources/node-types/nodeTypeWithEmptyModels.json @@ -0,0 +1,16 @@ +{ + "payloadName": "TestNodeType002.yml", + "contactId": "jh0003", + "name": "TestNodeType002", + "description": "TestUploadNodeType002", + "resourceIconPath": "compute", + "resourceType": "VFC", + "categories": [{ + "name": "Generic", + "subcategories": [{ + "name": "Infrastructure" + }] + }], + "tags": ["TestUploadNodeType002"], + "model": "" +} diff --git a/catalog-be/src/test/resources/node-types/nodeTypeWithModelsField.json b/catalog-be/src/test/resources/node-types/nodeTypeWithModelsField.json new file mode 100644 index 0000000000..03e28e3399 --- /dev/null +++ b/catalog-be/src/test/resources/node-types/nodeTypeWithModelsField.json @@ -0,0 +1,16 @@ +{ + "payloadName": "TestNodeType001.yml", + "contactId": "jh0003", + "name": "TestNodeType001", + "description": "TestUploadNodeType001", + "resourceIconPath": "compute", + "resourceType": "VFC", + "categories": [{ + "name": "Generic", + "subcategories": [{ + "name": "Infrastructure" + }] + }], + "tags": ["TestUploadNodeType001"], + "model": "ETSI-SOL001-331" +} diff --git a/catalog-be/src/test/resources/node-types/nodeTypeWithoutModelsField.json b/catalog-be/src/test/resources/node-types/nodeTypeWithoutModelsField.json new file mode 100644 index 0000000000..3c0eb14bb3 --- /dev/null +++ b/catalog-be/src/test/resources/node-types/nodeTypeWithoutModelsField.json @@ -0,0 +1,15 @@ +{ + "payloadName": "TestNodeType002.yml", + "contactId": "jh0003", + "name": "TestNodeType002", + "description": "TestUploadNodeType002", + "resourceIconPath": "compute", + "resourceType": "VFC", + "categories": [{ + "name": "Generic", + "subcategories": [{ + "name": "Infrastructure" + }] + }], + "tags": ["TestUploadNodeType002"] +} |