Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/utils.py
Show All 33 Lines | |||||
BASE_TEST_CONFIG: Dict[str, Dict[str, Any]] = { | BASE_TEST_CONFIG: Dict[str, Dict[str, Any]] = { | ||||
"storage": {"cls": "memory"}, | "storage": {"cls": "memory"}, | ||||
"objstorage": {"cls": "memory"}, | "objstorage": {"cls": "memory"}, | ||||
INDEXER_CFG_KEY: {"cls": "memory"}, | INDEXER_CFG_KEY: {"cls": "memory"}, | ||||
} | } | ||||
ORIGINS = [ | |||||
Origin(url="https://github.com/SoftwareHeritage/swh-storage"), | |||||
Origin(url="rsync://ftp.gnu.org/gnu/3dldf"), | |||||
Origin(url="https://forge.softwareheritage.org/source/jesuisgpl/"), | |||||
Origin(url="https://pypi.org/project/limnoria/"), | |||||
Origin(url="http://0-512-md.googlecode.com/svn/"), | |||||
Origin(url="https://github.com/librariesio/yarn-parser"), | |||||
Origin(url="https://github.com/librariesio/yarn-parser.git"), | |||||
] | |||||
ORIGIN_VISITS = [ | ORIGIN_VISITS = [ | ||||
{"type": "git", "origin": ORIGINS[0].url}, | {"type": "git", "origin": "https://github.com/SoftwareHeritage/swh-storage"}, | ||||
{"type": "ftp", "origin": ORIGINS[1].url}, | {"type": "ftp", "origin": "rsync://ftp.gnu.org/gnu/3dldf"}, | ||||
{"type": "deposit", "origin": ORIGINS[2].url}, | { | ||||
{"type": "pypi", "origin": ORIGINS[3].url}, | "type": "deposit", | ||||
{"type": "svn", "origin": ORIGINS[4].url}, | "origin": "https://forge.softwareheritage.org/source/jesuisgpl/", | ||||
{"type": "git", "origin": ORIGINS[5].url}, | }, | ||||
{"type": "git", "origin": ORIGINS[6].url}, | {"type": "pypi", "origin": "https://pypi.org/project/limnoria/"}, | ||||
{"type": "svn", "origin": "http://0-512-md.googlecode.com/svn/"}, | |||||
{"type": "git", "origin": "https://github.com/librariesio/yarn-parser"}, | |||||
{"type": "git", "origin": "https://github.com/librariesio/yarn-parser.git"}, | |||||
] | ] | ||||
ORIGINS = [Origin(url=visit["origin"]) for visit in ORIGIN_VISITS] | |||||
DIRECTORY = Directory( | DIRECTORY = Directory( | ||||
id=hash_to_bytes("34f335a750111ca0a8b64d8034faec9eedc396be"), | id=hash_to_bytes("34f335a750111ca0a8b64d8034faec9eedc396be"), | ||||
entries=( | entries=( | ||||
DirectoryEntry( | DirectoryEntry( | ||||
name=b"index.js", | name=b"index.js", | ||||
type="file", | type="file", | ||||
target=hash_to_bytes("01c9379dfc33803963d07c1ccc748d3fe4c96bb5"), | target=hash_to_bytes("01c9379dfc33803963d07c1ccc748d3fe4c96bb5"), | ||||
▲ Show 20 Lines • Show All 673 Lines • Show Last 20 Lines |