[SDC-29] rebase continue work to align source
[sdc.git] / test-apis-ci / src / test / resources / CI / tests / importToscaResourceByCreateUrl / myComputeWithTopologyTemplate.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 topology_template:
3   description: Template of an application connecting to a database.
4  
5   node_templates:
6     web_app:
7       type: tosca.nodes.WebApplication.MyWebApp
8       requirements:
9         - host: web_server
10         - database_endpoint: db
11 node_types: 
12   org.openecomp.resource.MyCompute:
13     derived_from: tosca.nodes.Root
14     attributes:
15       private_address:
16         type: string
17       public_address:
18         type: string
19       networks:
20         type: map
21         entry_schema:
22           type: tosca.datatypes.network.NetworkInfo
23       ports:
24         type: map
25         entry_schema:
26           type: tosca.datatypes.network.PortInfo
27     requirements:
28       - local_storage: 
29           capability: tosca.capabilities.Attachment
30           node: tosca.nodes.BlockStorage
31           relationship: tosca.relationships.AttachesTo
32           occurrences: [0, UNBOUNDED]  
33     capabilities:
34       host: 
35         type: tosca.capabilities.Container
36         valid_source_types: [tosca.nodes.SoftwareComponent] 
37       endpoint :
38         type: tosca.capabilities.Endpoint.Admin 
39       os: 
40         type: tosca.capabilities.OperatingSystem
41       scalable:
42         type: tosca.capabilities.Scalable
43       binding:
44         type: tosca.capabilities.network.Bindable