You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests on newly introduced feature #603 (providing support for non-top level objects in CRUD operations) fails, when bundle is generated with 'one-class-per-module' flag. Apparently that is happening due to change in the content of lookup table.
Steps to Reproduce
Generate ydktest model bundle with 'one-class-per-module' flag. Then run the script below.
Observe this error:
ERROR: test_iden_list (__main__.SanityYang)
----------------------------------------------------------------------
Traceback (most recent call last):
File "sdk/python/core/tests/test_sanity_levels.py", line 688, in test_iden_list
read_one = self.crud.read(self.ncc, filter)
File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/ydk/services/crud_service.py", line 63, in read
top_filters = _get_top_level_entity(filters, provider.get_session().get_root_schema())
File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/ydk/entity_utils/entity_utils.py", line 204, in _get_top_level_entity
return _datanode_to_entity(data_node)
File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/ydk/entity_utils/entity_utils.py", line 79, in _datanode_to_entity
entity = getattr(imported_module, class_name)()
AttributeError: 'module' object has no attribute 'runner.runner.Runner'
Current Behavior
Tests on newly introduced feature #603 (providing support for non-top level objects in CRUD operations) fails, when bundle is generated with 'one-class-per-module' flag. Apparently that is happening due to change in the content of lookup table.
Steps to Reproduce
Generate ydktest model bundle with 'one-class-per-module' flag. Then run the script below.
Observe this error:
Your Script
System Information
YDK-0.8.1 any system, any Python version
The text was updated successfully, but these errors were encountered: