Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_api_client.TestStorage::test_content_update
Failed

TEST RESULT

Run At
Aug 7 2020, 11:38 AM
Details
self = <swh.storage.tests.test_api_client.TestStorage object at 0x7fd66bc40ac8> swh_storage = <RemoteStorage url=mock://example.com/> app_server = <module 'swh.storage.api.server' from '/var/lib/jenkins/workspace/DSTO/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/storage/api/server.py'> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fd66b2917f0> def test_content_update(self, swh_storage, app_server, sample_data): # TODO, journal_writer not supported swh_storage.journal_writer.journal = None with patch.object(server.storage.journal_writer, "journal", None): > super().test_content_update(swh_storage, sample_data) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_api_client.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.tests.test_api_client.TestStorage object at 0x7fd66bc40ac8> swh_storage = <RemoteStorage url=mock://example.com/> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fd66b2917f0> def test_content_update(self, swh_storage, sample_data): cont1 = sample_data.content if hasattr(swh_storage, "journal_writer"): swh_storage.journal_writer.journal = None # TODO, not supported swh_storage.content_add([cont1]) # alter the sha1_git for example cont1b = attr.evolve( cont1, sha1_git=hash_to_bytes("3a60a5275d0333bf13468e8b3dcab90f4046e654") ) swh_storage.content_update([cont1b.to_dict()], keys=["sha1_git"]) results = swh_storage.content_get_metadata([cont1.sha1]) expected_content = attr.evolve(cont1b, data=None).to_dict() > del expected_content["ctime"] E KeyError: 'ctime' .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:336: KeyError