diff options
author | julien zhang <zhang.jun3g@zte.com.cn> | 2017-09-01 07:11:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-01 07:11:47 +0000 |
commit | 6eac11f48f8b664af928620bf2661987aa318725 (patch) | |
tree | 039a964682e0d53556ab5d8323aaedc247db22fc /tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py | |
parent | 7407c6c4cb09a80ec35a48716d4436ff98aba23f (diff) | |
parent | 726292f65a8e7df9eb7faa4614d77a049218f665 (diff) |
Merge "Add import file with suffix of yml testcases"
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py b/tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py index f7c22ab..2048a83 100644 --- a/tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py +++ b/tosca2heat/tosca-parser/toscaparser/tests/test_toscatplvalidation.py @@ -446,6 +446,18 @@ heat-translator/master/translator/tests/data/custom_types/wordpress.yaml self.assertTrue(custom_defs.get("mycompany.tosca.nodes." "WebApplication.WordPress")) + def test_imports_file_with_suffix_yml(self): + tpl_snippet = ''' + imports: + - custom_types/wordpress.yml + ''' + path = 'toscaparser/tests/data/tosca_elk.yaml' + custom_defs = self._imports_content_test(tpl_snippet, + path, + "node_types") + self.assertTrue(custom_defs.get("tosca.nodes." + "WebApplication.WordPress")) + def test_import_error_file_uri(self): tpl_snippet = ''' imports: |