From e1ad31691ea4249a7dd33e9280dd6d0df8bc9475 Mon Sep 17 00:00:00 2001 From: shangxdy Date: Thu, 13 Jul 2017 17:51:42 +0800 Subject: Add getting custom node by capability Currently _get_node_type_by_cap in nodetype definition is only concerned standard node, not consider custom node, the patch will support to get node by custom node. JIRA: PARSER-126 Change-Id: I822acc8bfb747562dc084783d863adf31603e794 Signed-off-by: shangxdy --- tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tosca2heat/tosca-parser/toscaparser/tests') diff --git a/tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py b/tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py index 77232df..fac8687 100644 --- a/tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py +++ b/tosca2heat/tosca-parser/toscaparser/tests/test_toscatpl.py @@ -571,7 +571,8 @@ class ToscaTemplateTest(TestCase): exception.ExceptionCollector.assertExceptionMessage( exception.UnknownFieldError, err7_msg) - err8_msg = _('\'Node template "server1" was not found.\'') + err8_msg = _('\'Node template "server1" was not found in ' + '"webserver".\'') exception.ExceptionCollector.assertExceptionMessage( KeyError, err8_msg) -- cgit 1.2.3-korg