summaryrefslogtreecommitdiffstats
path: root/common-be/src/test/resources
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2023-03-29 12:34:59 +0100
committerJvD_Ericsson <jeff.van.dam@est.tech>2023-04-13 09:03:40 +0100
commit35ee855d664246d55694f06b61bde82277cb2c5c (patch)
treed0cabb56d4eb6ab853ffccb95d1f4267f8ea913e /common-be/src/test/resources
parent4e11060f0af869eba2c6129cfdfab84f25e51a6b (diff)
Backend support for custom functions
Issue-ID: SDC-4455 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Idb0fd38681066ba9d541f8564c85e316cf03e927
Diffstat (limited to 'common-be/src/test/resources')
-rw-r--r--common-be/src/test/resources/toscaFunctionJsonDeserializer/customFunction.json45
1 files changed, 45 insertions, 0 deletions
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