aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'common-be/src/test/resources')
-rw-r--r--common-be/src/test/resources/toscaFunctionJsonDeserializer/concatFunction.json37
-rw-r--r--common-be/src/test/resources/toscaFunctionJsonDeserializer/getFunctionMissingType.json11
-rw-r--r--common-be/src/test/resources/toscaFunctionJsonDeserializer/getInput.json12
-rw-r--r--common-be/src/test/resources/toscaFunctionJsonDeserializer/getInputLegacy.json12
-rw-r--r--common-be/src/test/resources/toscaFunctionJsonDeserializer/yamlFunction.json4
5 files changed, 76 insertions, 0 deletions
diff --git a/common-be/src/test/resources/toscaFunctionJsonDeserializer/concatFunction.json b/common-be/src/test/resources/toscaFunctionJsonDeserializer/concatFunction.json
new file mode 100644
index 0000000000..808d96f3e6
--- /dev/null
+++ b/common-be/src/test/resources/toscaFunctionJsonDeserializer/concatFunction.json
@@ -0,0 +1,37 @@
+{
+ "type": "CONCAT",
+ "parameters": [
+ {
+ "propertyUniqueId": "e57525d7-2115-4934-9ba4-9cebfa22bad2.nf_naming",
+ "type": "GET_INPUT",
+ "propertySource": "SELF",
+ "propertyName": "instance_name",
+ "sourceName": "ciResVFc26a0b30ec20",
+ "sourceUniqueId": "aee643c9-6c8e-4a24-af7a-a9aff5c072c0",
+ "propertyPathFromSource": [
+ "nf_naming",
+ "instance_name"
+ ]
+ }, {
+ "type": "STRING",
+ "value": "my string"
+ },
+ {
+ "type": "CONCAT",
+ "parameters": [
+ {
+ "type": "STRING",
+ "value": "string1"
+ },
+ {
+ "type": "STRING",
+ "value": "string2"
+ },
+ {
+ "type": "YAML",
+ "value": "myList: [1, two, three three]\nget_something: [SELF, something]\nstring: this is my string\n"
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/common-be/src/test/resources/toscaFunctionJsonDeserializer/getFunctionMissingType.json b/common-be/src/test/resources/toscaFunctionJsonDeserializer/getFunctionMissingType.json
new file mode 100644
index 0000000000..23a2678587
--- /dev/null
+++ b/common-be/src/test/resources/toscaFunctionJsonDeserializer/getFunctionMissingType.json
@@ -0,0 +1,11 @@
+{
+ "propertyUniqueId": "e57525d7-2115-4934-9ba4-9cebfa22bad2.nf_naming",
+ "propertySource": "SELF",
+ "propertyName": "instance_name",
+ "sourceName": "ciResVFc26a0b30ec20",
+ "sourceUniqueId": "aee643c9-6c8e-4a24-af7a-a9aff5c072c0",
+ "propertyPathFromSource": [
+ "nf_naming",
+ "instance_name"
+ ]
+} \ No newline at end of file
diff --git a/common-be/src/test/resources/toscaFunctionJsonDeserializer/getInput.json b/common-be/src/test/resources/toscaFunctionJsonDeserializer/getInput.json
new file mode 100644
index 0000000000..a992f22a75
--- /dev/null
+++ b/common-be/src/test/resources/toscaFunctionJsonDeserializer/getInput.json
@@ -0,0 +1,12 @@
+{
+ "propertyUniqueId": "e57525d7-2115-4934-9ba4-9cebfa22bad2.nf_naming",
+ "type": "GET_INPUT",
+ "propertySource": "SELF",
+ "propertyName": "instance_name",
+ "sourceName": "ciResVFc26a0b30ec20",
+ "sourceUniqueId": "aee643c9-6c8e-4a24-af7a-a9aff5c072c0",
+ "propertyPathFromSource": [
+ "nf_naming",
+ "instance_name"
+ ]
+} \ No newline at end of file
diff --git a/common-be/src/test/resources/toscaFunctionJsonDeserializer/getInputLegacy.json b/common-be/src/test/resources/toscaFunctionJsonDeserializer/getInputLegacy.json
new file mode 100644
index 0000000000..c09571bb3e
--- /dev/null
+++ b/common-be/src/test/resources/toscaFunctionJsonDeserializer/getInputLegacy.json
@@ -0,0 +1,12 @@
+{
+ "propertyUniqueId": "e57525d7-2115-4934-9ba4-9cebfa22bad2.nf_naming",
+ "functionType": "GET_INPUT",
+ "propertySource": "SELF",
+ "propertyName": "instance_name",
+ "sourceName": "ciResVFc26a0b30ec20",
+ "sourceUniqueId": "aee643c9-6c8e-4a24-af7a-a9aff5c072c0",
+ "propertyPathFromSource": [
+ "nf_naming",
+ "instance_name"
+ ]
+} \ No newline at end of file
diff --git a/common-be/src/test/resources/toscaFunctionJsonDeserializer/yamlFunction.json b/common-be/src/test/resources/toscaFunctionJsonDeserializer/yamlFunction.json
new file mode 100644
index 0000000000..dfe63f00f4
--- /dev/null
+++ b/common-be/src/test/resources/toscaFunctionJsonDeserializer/yamlFunction.json
@@ -0,0 +1,4 @@
+{
+ "type": "YAML",
+ "value": "tosca_definitions_version: tosca_simple_yaml_1_0_0\nnode_types: \n tosca.nodes.Compute:\n derived_from: tosca.nodes.Root\n attributes:\n private_address:\n type: string\n public_address:\n type: string\n networks:\n type: map\n entry_schema:\n type: tosca.datatypes.network.NetworkInfo\n ports:\n type: map\n entry_schema:\n type: tosca.datatypes.network.PortInfo\n requirements:\n - local_storage: \n capability: tosca.capabilities.Attachment\n node: tosca.nodes.BlockStorage\n relationship: tosca.relationships.AttachesTo\n occurrences: [0, UNBOUNDED] \n capabilities:\n host: \n type: tosca.capabilities.Container\n valid_source_types: [tosca.nodes.SoftwareComponent] \n endpoint :\n type: tosca.capabilities.Endpoint.Admin \n os: \n type: tosca.capabilities.OperatingSystem\n scalable:\n type: tosca.capabilities.Scalable\n binding:\n type: tosca.capabilities.network.Bindable\n"
+} \ No newline at end of file