swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7fa0e0107208>
datadir = '/var/lib/jenkins/workspace/DLDBASE/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/package/nixguix/tests/data'
requests_mock_datadir_visits = <requests_mock.mocker.Mocker object at 0x7fa0e0a85518>
caplog = <_pytest.logging.LogCaptureFixture object at 0x7fa0e0a859b0>
def test_load_nixguix_one_common_artifact_from_other_loader(
swh_storage, datadir, requests_mock_datadir_visits, caplog
):
"""Misformatted revision should be caught and logged, then loading continues
"""
caplog.set_level(logging.ERROR, "swh.loader.package.nixguix.loader")
# 1. first ingest with for example the archive loader
gnu_url = "https://ftp.gnu.org/gnu/8sync/"
release = "0.1.0"
artifact_url = f"https://ftp.gnu.org/gnu/8sync/8sync-{release}.tar.gz"
gnu_artifacts = [
{
"time": 944729610,
"url": artifact_url,
"length": 221837,
"filename": f"8sync-{release}.tar.gz",
"version": release,
}
]
archive_loader = ArchiveLoader(swh_storage, url=gnu_url, artifacts=gnu_artifacts)
actual_load_status = archive_loader.load()
expected_snapshot_id = "f87a0a582d8a018370ba1956ffa5710eec2a2942"
> assert actual_load_status["status"] == "eventful"
E AssertionError: assert 'uneventful' == 'eventful'
E - eventful
E + uneventful
E ? ++
.tox/py3/lib/python3.7/site-packages/swh/loader/package/nixguix/tests/test_nixguix.py:610: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Nov 9 2021, 4:34 PM