summaryrefslogtreecommitdiffstats
path: root/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2016-04-07 14:08:49 -0400
committershangxdy <shang.xiaodong@zte.com.cn>2016-04-07 14:59:30 -0400
commitc8201c119ec686e79797721156767685fe848aca (patch)
treecce6aa15ded38d89c18a14b76c21f21e0b1a24f7 /tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template
parent4e4c86a06d58b1816c074c7f9da4c58bbf10368c (diff)
Update tosca lib to version 0.5
Use tosca-parser and heat-translator to analyze to the basic nfv-tosca type definitions, and use simple tosca new feature such as policy, group and trigger, which are now supported by the latest version of tosca-parser and heat-translator. JIRA:PARSER-18 Change-Id: I797bcacbb5b32005d0aeb0f3f32851ac96e30f01 Signed--off-by: shangxdy <shang.xiaodong@zte.com.cn> Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template')
-rw-r--r--tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/definitions.yaml54
-rw-r--r--tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/subsystem.yaml85
-rw-r--r--tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/system.yaml51
3 files changed, 0 insertions, 190 deletions
diff --git a/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/definitions.yaml b/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/definitions.yaml
deleted file mode 100644
index 083ee75..0000000
--- a/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/definitions.yaml
+++ /dev/null
@@ -1,54 +0,0 @@
-tosca_definitions_version: tosca_simple_yaml_1_0
-
-node_types:
- example.TransactionSubsystem:
- properties:
- mq_server_ip:
- type: string
- receiver_port:
- type: integer
- attributes:
- receiver_ip:
- type: string
- receiver_port:
- type: integer
- capabilities:
- message_receiver:
- type: example.capabilities.Receiver
- requirements:
- - database_endpoint:
- capability: tosca.capabilities.Endpoint.Database
- node: tosca.nodes.Database
- relationship: tosca.relationships.ConnectsTo
-
- example.QueuingSubsystem:
- derived_from: tosca.nodes.SoftwareComponent
- requirements:
- - receiver1:
- node: example.TransactionSubsystem
- relationship: tosca.relationships.ConnectsTo
- - receiver2:
- node: example.TransactionSubsystem
- relationship: tosca.relationships.ConnectsTo
-
- example.DatabaseSubsystem:
- derived_from: tosca.nodes.Database
-
- example.SomeApp:
- derived_from: tosca.nodes.SoftwareComponent
- properties:
- admin_user:
- type: string
- pool_size:
- type: integer
- capabilities:
- message_receiver:
- type: example.capabilities.Receiver
-
-capability_types:
- example.capabilities.Receiver:
- derived_from: tosca.capabilities.Endpoint
- properties:
- server_ip:
- type: string
-
diff --git a/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/subsystem.yaml b/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/subsystem.yaml
deleted file mode 100644
index ddbc94e..0000000
--- a/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/subsystem.yaml
+++ /dev/null
@@ -1,85 +0,0 @@
-tosca_definitions_version: tosca_simple_yaml_1_0
-
-description: >
- Service template with topology_template, act as a nested system inside another system.
-
-imports:
- - definitions.yaml
-
-topology_template:
- description: Template of a database including its hosting stack.
-
- inputs:
- mq_server_ip:
- type: string
- description: IP address of the message queuing server to receive messages from.
- receiver_port:
- type: string
- description: Port to be used for receiving messages.
- my_cpus:
- type: integer
- description: Number of CPUs for the server.
- constraints:
- - valid_values: [ 1, 2, 4, 8 ]
-
- substitution_mappings:
- node_type: example.TransactionSubsystem
- capabilities:
- message_receiver: [ app, message_receiver ]
- requirements:
- database_endpoint: [ app, database ]
-
- node_templates:
- app:
- type: example.SomeApp
- properties:
- admin_user: foo
- pool_size: 10
- capabilities:
- message_receiver:
- properties:
- server_ip: { get_input: mq_server_ip }
- requirements:
- - host:
- node: websrv
-
- websrv:
- type: tosca.nodes.WebServer
- capabilities:
- data_endpoint:
- properties:
- port_name: { get_input: receiver_port }
- requirements:
- - host:
- node: server
-
- server:
- type: tosca.nodes.Compute
- capabilities:
- host:
- properties:
- disk_size: 10 GB
- num_cpus: { get_input: my_cpus }
- mem_size: 4096 MB
- os:
- properties:
- architecture: x86_64
- type: Linux
- distribution: Ubuntu
- version: 14.04
-
- outputs:
- receiver_ip:
- description: private IP address of the message receiver application
- value: { get_attribute: [ server, private_address ] }
-# It seems current _process_intrisic_function can not handle more than 2 arguments, save it for later
-# receiver_port:
-# description: Port of the message receiver endpoint
-# value: { get_attribute: [ app, data_endpoint, port_name ] }
-
- groups:
- webserver_group:
- members: [ websrv, server ]
- policies:
- - policy_name: none
-
diff --git a/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/system.yaml b/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/system.yaml
deleted file mode 100644
index 99aee0d..0000000
--- a/tosca2heat/tosca-parser-0.3.0/toscaparser/tests/data/topology_template/system.yaml
+++ /dev/null
@@ -1,51 +0,0 @@
-tosca_definitions_version: tosca_simple_yaml_1_0
-
-imports:
- - definitions.yaml
-
-topology_template:
- description: Template of online transaction processing service.
-
- node_templates:
- mq:
- type: example.QueuingSubsystem
- # properties:
- # to be updated when substitution_mapping is implemented
- # capabilities:
- # message_queue_endpoint:
- # to be updated when substitution_mapping is implemented
- requirements:
- - receiver1: trans1
- - receiver2: trans2
-
- trans1:
- type: example.TransactionSubsystem
- properties:
- # to be updated when substitution_mapping is implemented
- # mq_server_ip: { get_attribute: [ mq, server_ip ] }
- receiver_port: 8080
- # capabilities:
- # message_receiver:
- # to be updated when substitution_mapping is implemented
- requirements:
- - database_endpoint: dbsys
-
- trans2:
- type: example.TransactionSubsystem
- properties:
- # to be updated when substitution_mapping is implemented
- # mq_server_ip: { get_attribute: [ mq, server_ip ] }
- receiver_port: 8080
- # capabilities:
- # message_receiver:
- # to be updated when substitution_mapping is implemented
- requirements:
- - database_endpoint: dbsys
-
- dbsys:
- type: example.DatabaseSubsystem
- # properties:
- # to be updated when substitution_mapping is implemented
- # capabilities:
- # database_endpoint:
- # to be updated when substitution_mapping is implemented \ No newline at end of file