summaryrefslogtreecommitdiffstats
path: root/nfvparser/toscaparser/tests/data/functions/test_token.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'nfvparser/toscaparser/tests/data/functions/test_token.yaml')
-rw-r--r--nfvparser/toscaparser/tests/data/functions/test_token.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/nfvparser/toscaparser/tests/data/functions/test_token.yaml b/nfvparser/toscaparser/tests/data/functions/test_token.yaml
new file mode 100644
index 0000000..495a930
--- /dev/null
+++ b/nfvparser/toscaparser/tests/data/functions/test_token.yaml
@@ -0,0 +1,15 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Template for deploying a single server with token function.
+
+topology_template:
+ node_templates:
+ server:
+ type: tosca.nodes.Compute
+
+ outputs:
+ url:
+ description: Get the first part of the ip
+ value: { token: [ get_attribute: [ server, public_address ],
+ '.' ,
+ 0 ] }