nixguix/lister: Rename listed origin visit type to tarball-directory

For the ones coming from a tarball. This matches the change happened in the associated
directory loader.

Refs. swh/infra/sysadm-environment#4906
This commit is contained in:
Antoine R. Dumont (@ardumont) 2023-06-08 11:24:38 +02:00
parent 197fb3400b
commit e0bcb64e0f
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
2 changed files with 4 additions and 4 deletions

View file

@ -603,7 +603,7 @@ class NixGuixLister(StatelessLister[PageResult]):
fallback_urls=fallback_urls,
checksums=checksums,
checksum_layout=MAPPING_CHECKSUM_LAYOUT[outputHashMode],
visit_type="directory" if is_tar else "content",
visit_type="tarball-directory" if is_tar else "content",
ref=None,
)
else:

View file

@ -291,9 +291,9 @@ def test_lister_nixguix_ok(datadir, swh_scheduler, requests_mock):
elif url.startswith("svn"): # mistyped artifact rendered as vcs nonetheless
visit_type = "svn"
elif "crates.io" in url or "codeload.github.com" in url:
visit_type = "directory"
visit_type = "tarball-directory"
else: # tarball artifacts
visit_type = "directory"
visit_type = "tarball-directory"
expected_visit_types[visit_type] += 1
assert set(expected_visit_types.keys()) == {
@ -301,7 +301,7 @@ def test_lister_nixguix_ok(datadir, swh_scheduler, requests_mock):
"git",
"svn",
"hg",
"directory",
"tarball-directory",
"git-checkout",
"svn-export",
"hg-checkout",