[openstack-dev] [Openstack-dev] [Congress] [Designate]
Carmine Annunziata
carmine.annunziata02 at gmail.com
Thu Jun 15 07:51:02 UTC 2017
Hi everyone,
I wrote a congress datasource driver and its unit test for designate, but i
got the following errors in the method test_update_from_datasource. It's
something wrong in the translation.
Here is the traceback:
File "congress/tests/datasources/test_designate_driver.py", line 34, in
setUp
self.driver = designate_driver.DesignateDriver(args=args)
File "congress/datasources/designate_driver.py", line 150, in __init__
super(DesignateDriver, self).__init__(name, args=args)
File "congress/datasources/datasource_driver.py", line 1282, in __init__
super(PollingDataSourceDriver, self).__init__(name, args=args)
File "congress/datasources/datasource_driver.py", line 324, in __init__
self.initialize_translators()
File "congress/datasources/datasource_driver.py", line 1324, in
initialize_translators
self.register_translator(translator)
File "congress/datasources/datasource_driver.py", line 457, in
register_translator
self._validate_translator(translator, related_tables)
File "congress/datasources/datasource_driver.py", line 446, in
_validate_translator
self._validate_by_translation_type(translator, related_tables)
File "congress/datasources/datasource_driver.py", line 428, in
_validate_by_translation_type
self._validate_hdict_type(translator, related_tables)
File "congress/datasources/datasource_driver.py", line 389, in
_validate_hdict_type
self._validate_translator(subtranslator, related_tables)
File "congress/datasources/datasource_driver.py", line 446, in
_validate_translator
self._validate_by_translation_type(translator, related_tables)
File "congress/datasources/datasource_driver.py", line 428, in
_validate_by_translation_type
self._validate_hdict_type(translator, related_tables)
File "congress/datasources/datasource_driver.py", line 386, in
_validate_hdict_type
self.check_params(field_translator.keys(),
AttributeError: 'str' object has no attribute 'keys'
Thank you,
Carmine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170615/5d9216eb/attachment.html>
More information about the OpenStack-dev
mailing list