Event Timeline
Comment Actions
current status:
Initially, there was missing target directory entries in the objstorage, that's now fixed.
Now the test is still failing because of a shortage of metadata in the result computed.
In the test, the warning is explanable.
indexer.py 371 WARNING Content 616162 not found in objstorage
Note: 616162 is really the content id b'aab' ("sha1"). It's an implementation detail of the log instruction which hexifies the id.
In any case, this can be explained because when instantiated, the content-metadata-indexer is bootstraped with an empty objstorage instead of the tested one (objstorage is populated at the tests' initialization phase).
As seen through the following log:
################ {'indexer_storage': {'cls': 'memory', 'args': {}}, 'objstorage': {'cls': 'memory', 'args': {}}, 'storage': {'cls': 'memory', 'args': {}}, 'tools': [{'name': 'swh-metadata-translator', 'version': '0.0.2', 'configuration': {'context': 'NpmMapping'}}]} ############### c_metadata_indexer.objstorage.state {} # <- instead of the content setup-ed in the utils namespace...
Now, i just don't know whether that's the issue with the fact the test fails, failling because of the missing metadata in the result.