Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/data.py
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | |||||
# Lightweight git repositories that will be loaded to generate | # Lightweight git repositories that will be loaded to generate | ||||
# input data for tests | # input data for tests | ||||
_TEST_ORIGINS = [ | _TEST_ORIGINS = [ | ||||
{ | { | ||||
"type": "git", | "type": "git", | ||||
"url": "https://github.com/memononen/libtess2", | "url": "https://github.com/memononen/libtess2", | ||||
"archives": ["libtess2.zip"], | "archives": ["libtess2.zip"], | ||||
"metadata": { | |||||
"@context": "https://doi.org/10.5063/schema/codemeta-2.0", | |||||
"description": ( | |||||
"Game and tools oriented refactored version of GLU tessellator." | |||||
), | |||||
}, | |||||
}, | }, | ||||
{ | { | ||||
"type": "git", | "type": "git", | ||||
"url": "https://github.com/wcoder/highlightjs-line-numbers.js", | "url": "https://github.com/wcoder/highlightjs-line-numbers.js", | ||||
"archives": [ | "archives": [ | ||||
"highlightjs-line-numbers.js.zip", | "highlightjs-line-numbers.js.zip", | ||||
"highlightjs-line-numbers.js_visit2.zip", | "highlightjs-line-numbers.js_visit2.zip", | ||||
], | ], | ||||
"metadata": {"description": "Line numbering plugin for Highlight.js",}, | "metadata": { | ||||
"@context": "https://doi.org/10.5063/schema/codemeta-2.0", | |||||
"description": "Line numbering plugin for Highlight.js", | |||||
}, | |||||
}, | }, | ||||
{ | { | ||||
"type": "git", | "type": "git", | ||||
"url": "repo_with_submodules", | "url": "repo_with_submodules", | ||||
"archives": ["repo_with_submodules.tgz"], | "archives": ["repo_with_submodules.tgz"], | ||||
"metadata": { | "metadata": { | ||||
"@context": "https://doi.org/10.5063/schema/codemeta-2.0", | |||||
"description": "This is just a sample repository with submodules", | "description": "This is just a sample repository with submodules", | ||||
}, | }, | ||||
}, | }, | ||||
] | ] | ||||
_contents = {} | _contents = {} | ||||
Show All 16 Lines | |||||
INDEXER_TOOL = { | INDEXER_TOOL = { | ||||
"tool_name": "swh-web tests", | "tool_name": "swh-web tests", | ||||
"tool_version": "1.0", | "tool_version": "1.0", | ||||
"tool_configuration": {}, | "tool_configuration": {}, | ||||
} | } | ||||
ORIGIN_METADATA_KEY = "vcs" | ORIGIN_METADATA_KEY = "keywords" | ||||
ORIGIN_METADATA_VALUE = "git" | ORIGIN_METADATA_VALUE = "git" | ||||
ORIGIN_MASTER_REVISION = {} | ORIGIN_MASTER_REVISION = {} | ||||
def _add_origin( | def _add_origin( | ||||
storage, search, counters, origin_url, visit_type="git", snapshot_branches={} | storage, search, counters, origin_url, visit_type="git", snapshot_branches={} | ||||
): | ): | ||||
▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines |