toscaparser: Avoid exception when creating our own 37/65437/4
authorLianhao Lu <lianhao.lu@intel.com>
Mon, 19 Nov 2018 08:28:05 +0000 (16:28 +0800)
committerLianhao Lu <lianhao.lu@intel.com>
Wed, 28 Nov 2018 04:36:45 +0000 (12:36 +0800)
commitfa91717ecc519f5ca5b26456a7f7ab3c77c253ce
treee9fdc1be9566b30df1c07f78ec84a2922db1111c
parent26fc7a76a06c83eae2a75a262953b3d8d9bb00b3
toscaparser: Avoid exception when creating our own

Fixed the bug that new exception is thrown when we're creating our own
exceptions.

JIRA: PARSER-187

Change-Id: If4c445eb9b5c6ff26d40cf6b3fa7f19cd31fd425
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
tosca2heat/tosca-parser/toscaparser/elements/tosca_type_validation.py
tosca2heat/tosca-parser/toscaparser/tests/data/custom_types/invalid_type.yaml [new file with mode: 0644]
tosca2heat/tosca-parser/toscaparser/tests/data/test_import_invalid_type.yaml [new file with mode: 0644]
tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py