Fix a broken test
Changes made in tosca_single_instance_wordpress_with_local_abspath_import template to change imports path broke this test as it uses it for URL based testing. Change-Id: I7c2cd41a65d6c8c8cd26c2e483ee93e53b6a514e
This commit is contained in:
parent
cc0d096b25
commit
19c60b1242
@ -412,9 +412,9 @@ class ToscaTemplateTest(TestCase):
|
|||||||
'import.yaml')
|
'import.yaml')
|
||||||
self.assertRaises(exception.ValidationError, ToscaTemplate, tosca_tpl,
|
self.assertRaises(exception.ValidationError, ToscaTemplate, tosca_tpl,
|
||||||
None, False)
|
None, False)
|
||||||
err_msg = (_('Absolute file name "/toscaparser/tests/data/custom_types'
|
err_msg = (_('Absolute file name "/tmp/tosca-parser/toscaparser/tests'
|
||||||
'/wordpress.yaml" cannot be used in a URL-based input '
|
'/data/custom_types/wordpress.yaml" cannot be used in a '
|
||||||
'template "%(tpl)s".')
|
'URL-based input template "%(tpl)s".')
|
||||||
% {'tpl': tosca_tpl})
|
% {'tpl': tosca_tpl})
|
||||||
exception.ExceptionCollector.assertExceptionMessage(ImportError,
|
exception.ExceptionCollector.assertExceptionMessage(ImportError,
|
||||||
err_msg)
|
err_msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user