summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator/translator/tests/data
diff options
context:
space:
mode:
authorjulien zhang <zhang.jun3g@zte.com.cn>2016-09-01 02:20:06 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-01 02:20:06 +0000
commit4dc69488bb019b83e5ccebf4c77f4d7f9fd8e7c1 (patch)
tree8d856e5bcc4d1cece71076767dc2039fcb839376 /tosca2heat/heat-translator/translator/tests/data
parent5298fb1f996ab547c518b085e8c39fc5e0665bd9 (diff)
parentaef34ad9a966ca64aa365ee6aaada702b986f68b (diff)
Merge "Fix BlockStorageAttachment bug when translate compute node"
Diffstat (limited to 'tosca2heat/heat-translator/translator/tests/data')
-rw-r--r--tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml15
-rw-r--r--tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml11
2 files changed, 26 insertions, 0 deletions
diff --git a/tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml b/tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml
index d66569d..d67f022 100644
--- a/tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml
+++ b/tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml
@@ -15,6 +15,7 @@ resources:
user_data_format: SOFTWARE_CONFIG
depends_on:
- VDU2
+ - BlockStorage
VDU2:
type: OS::Nova::Server
@@ -25,6 +26,20 @@ resources:
- port: { get_resource: CP2 }
user_data_format: SOFTWARE_CONFIG
+ BlockStorage:
+ type: OS::Cinder::Volume
+ properties:
+ size: 10
+
+ tosca.relationships.attachesto_1:
+ type: OS::Cinder::VolumeAttachment
+ properties:
+ instance_uuid:
+ get_resource: VDU1
+ mountpoint: /data
+ volume_id:
+ get_resource: BlockStorage
+
CP1:
type: OS::Neutron::Port
properties:
diff --git a/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml b/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml
index e5c8d3c..edbbbe5 100644
--- a/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml
+++ b/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml
@@ -23,6 +23,17 @@ topology_template:
version: 6.5
requirements:
- high_availability: VDU2
+ - local_storage:
+ node: BlockStorage
+ relationship:
+ type: tosca.relationships.AttachesTo
+ properties:
+ location: /data
+
+ BlockStorage:
+ type: tosca.nodes.BlockStorage
+ properties:
+ size: 10 GB
VDU2:
type: tosca.nodes.nfv.VDU