From 54fdb67b49134fe357a6415fba761bab2588a197 Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Fri, 26 Aug 2022 00:23:01 +0200 Subject: Resolution processors tests and extendability - Open resolution processors for in-CBA customization - Improve resolution tests verification - Use RestProcessor for testing RestProcessor Issue-ID: CCSDK-3716 Signed-off-by: Lukasz Rajewski Change-Id: I7c05fc940647f40c20c37b4f7fcfe29f2c3076ba --- .../Definitions/resources_definition_types.json | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) (limited to 'components/model-catalog/blueprint-model/test-blueprint') diff --git a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json index e679a9a22..98f77266a 100644 --- a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json +++ b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/resources_definition_types.json @@ -108,6 +108,90 @@ "type": "string" }, "updated-by": "Steve, Siani ", + "sources": { + "aai-data": { + "type": "source-rest", + "properties": { + "type": "JSON", + "verb": "GET", + "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id", + "path": "", + "input-key-mapping": { + "vnf-id": "vnf-id" + }, + "output-key-mapping": { + "aai-get-resource": "vnf-id" + }, + "key-dependencies": [ + "vnf-id" + ] + } + } + } + }, + "aai-get-resource-null": { + "tags": "aai-get", + "name": "aai-get-resource-null", + "property": { + "description": "primary aai data to get resource with empty content", + "type": "string" + }, + "updated-by": "Rajewski, Lukasz ", + "sources": { + "aai-data": { + "type": "source-rest", + "properties": { + "type": "JSON", + "verb": "GET", + "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id", + "path": "", + "input-key-mapping": { + "vnf-id": "vnf-id" + }, + "key-dependencies": [ + "vnf-id" + ] + } + } + } + }, + "aai-get-resource-wrong-mapping": { + "tags": "aai-get", + "name": "aai-get-resource-wrong-mapping", + "property": { + "description": "primary aai data to get resource with wrong mapping", + "type": "string" + }, + "updated-by": "Rajewski, Lukasz ", + "sources": { + "aai-data": { + "type": "source-rest", + "properties": { + "type": "JSON", + "verb": "GET", + "url-path": "/aai/v22/network/generic-vnfs/generic-vnf/$vnf-id", + "path": "", + "input-key-mapping": { + "vnf-id": "vnf-id" + }, + "output-key-mapping": { + "aai-get-resource-wrong-mapping": "wrong" + }, + "key-dependencies": [ + "vnf-id" + ] + } + } + } + }, + "aai-get-json-resource": { + "tags": "aai-get-json", + "name": "aai-get-json-resource", + "property": { + "description": "primary aai data to get resource", + "type": "json" + }, + "updated-by": "Rajewski, Lukasz ", "sources": { "aai-data": { "type": "source-rest", -- cgit 1.2.3-korg