summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2016-08-22 15:22:56 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2016-08-22 15:22:56 +0800
commit36852516fac11727c2fd4ee429214d6346628f32 (patch)
tree0d367a7297055502c59939b0bcd03ecc0fe28e99 /tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml
parent6fecb729f550f4f543739375df8148ab9de38668 (diff)
Add high_availability test case
As a template designer; I want to define a vdu with high availability; So i will add test case to violate high_availability requirement in VDU; JIRA:PARSER-94 Change-Id: Icd35e5a533231395a2174cdc20b747a9ab803599 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml')
-rw-r--r--tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml32
1 files changed, 32 insertions, 0 deletions
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 1112234..538d63d 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
@@ -21,6 +21,26 @@ topology_template:
type: Linux
distribution: RHEL
version: 6.5
+ requirements:
+ - high_availability: VDU2
+
+ VDU2:
+ type: tosca.nodes.nfv.VDU
+ capabilities:
+ host:
+ properties:
+ num_cpus: 2
+ disk_size: 10 GB
+ mem_size: 512 MB
+ # Guest Operating System properties
+ os:
+ properties:
+ # host Operating System image properties
+ architecture: x86_64
+ type: Linux
+ distribution: RHEL
+ version: 6.5
+
CP1:
type: tosca.nodes.nfv.CP
properties:
@@ -33,6 +53,18 @@ topology_template:
node: VDU1
relationship: tosca.relationships.nfv.VirtualBindsTo
+ CP2:
+ type: tosca.nodes.nfv.CP
+ properties:
+ ip_address: 192.168.0.56
+ requirements:
+ - virtualLink:
+ node: VL1
+# relationship: tosca.relationships.nfv.VirtualLinksTo
+ - virtualBinding:
+ node: VDU2
+ relationship: tosca.relationships.nfv.VirtualBindsTo
+
VL1:
type: tosca.nodes.nfv.VL
properties: