Add output validation for substitution mappings 35/25535/5
authorshangxdy <shang.xiaodong@zte.com.cn>
Mon, 5 Dec 2016 06:23:25 +0000 (14:23 +0800)
committershangxdy <shang.xiaodong@zte.com.cn>
Fri, 9 Dec 2016 15:40:40 +0000 (23:40 +0800)
commitd098a14d69bf78b7674ec5d75003c21250e640bc
treef2ecde70b315149ecbc78d71a135fe0e5cd391a0
parentc72383042c976022d8b49b3fc77a4c1a1b735ec0
Add output validation for substitution mappings

1. The outputs defined by the topology template have to match the
attributes of the node type or the substituted node template,
2.The observable attributes of the substituted node template have to be
defined as attributes of the node type or outputs in the topology
template.

The patch will be submitted to openstack  too.

JIRA: PARSER-115
Change-Id: Ifa62be9d5c1be79ceacfa1ae6e3835b2de446f88
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
tosca2heat/tosca-parser/toscaparser/common/exception.py
tosca2heat/tosca-parser/toscaparser/substitution_mappings.py
tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/databasesubsystem.yaml
tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/queuingsubsystem.yaml
tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/transactionsubsystem.yaml
tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py