From 35ee855d664246d55694f06b61bde82277cb2c5c Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Wed, 29 Mar 2023 12:34:59 +0100 Subject: Backend support for custom functions Issue-ID: SDC-4455 Signed-off-by: JvD_Ericsson Change-Id: Idb0fd38681066ba9d541f8564c85e316cf03e927 --- .../customFunction.json | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 common-be/src/test/resources/toscaFunctionJsonDeserializer/customFunction.json (limited to 'common-be/src/test/resources') diff --git a/common-be/src/test/resources/toscaFunctionJsonDeserializer/customFunction.json b/common-be/src/test/resources/toscaFunctionJsonDeserializer/customFunction.json new file mode 100644 index 0000000000..0042975e29 --- /dev/null +++ b/common-be/src/test/resources/toscaFunctionJsonDeserializer/customFunction.json @@ -0,0 +1,45 @@ +{ + "type": "CUSTOM", + "name": "first_custom_function_name", + "parameters": [ + { + "type": "STRING", + "value": "string1" + }, + { + "type": "GET_ATTRIBUTE", + "propertyUniqueId": "36897651-f5e5-4603-8064-b60c771a3c37.descriptor_id", + "propertyName": "descriptor_id", + "propertySource": "SELF", + "sourceUniqueId": "36897651-f5e5-4603-8064-b60c771a3c37", + "sourceName": "testService", + "functionType": "GET_ATTRIBUTE", + "propertyPathFromSource": [ + "descriptor_id" + ] + }, + { + "type": "CUSTOM", + "name": "second_custom_function_name", + "parameters": [ + { + "type": "CONCAT", + "parameters": [ + { + "type": "STRING", + "value": "string2" + }, + { + "type": "YAML", + "value": "myList: [1, two, three three]\nget_something: [SELF, something]\nstring: this is my string\n" + } + ] + }, + { + "type": "STRING", + "value": "string3" + } + ] + } + ] +} \ No newline at end of file -- cgit 1.2.3-korg