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:
parent
197fb3400b
commit
e0bcb64e0f
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue