Add required definition in class of Input. 53/18653/1
authorshangxdy <shang.xiaodong@zte.com.cn>
Mon, 15 Aug 2016 07:43:07 +0000 (15:43 +0800)
committershangxdy <shang.xiaodong@zte.com.cn>
Mon, 15 Aug 2016 07:43:07 +0000 (15:43 +0800)
commitf52871b8f5ed66924ae8c715788d0bc09c1518ac
tree7661b3950879901ce4245ee67d5dc51dcfb7d524
parent5559b0c06930deb1c7831efe599a1036574f50b3
Add required definition in class of Input.

As a template designer;
I want to know if the parameters is missed when deploy a template, but
currently there is not validation about the required parameters;
So i add property in class of Input, and validate the require parameter.
Note: the patch will submit to Openstack community too.

JIRA:PARSER-88

Change-Id: I5763a18da4037b0f81a55b8c8d83414e685b03d2
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
tosca2heat/tosca-parser/toscaparser/parameters.py
tosca2heat/tosca-parser/toscaparser/tests/data/functions/test_get_property_with_host.yaml
tosca2heat/tosca-parser/toscaparser/tests/data/test_tosca_normative_type_by_shortname.yaml
tosca2heat/tosca-parser/toscaparser/tests/data/topology_template/system.yaml
tosca2heat/tosca-parser/toscaparser/tests/data/tosca_single_instance_wordpress.yaml
tosca2heat/tosca-parser/toscaparser/tests/data/tosca_single_instance_wordpress_with_local_abspath_import.yaml
tosca2heat/tosca-parser/toscaparser/tests/data/tosca_single_instance_wordpress_with_url_import.yaml
tosca2heat/tosca-parser/toscaparser/tests/test_functions.py
tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py
tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py
tosca2heat/tosca-parser/toscaparser/topology_template.py