Documentation
¶
Overview ¶
Package artifacts runs the artifacts management API on the assembled server: deploying, reading and deleting items with their checksums, properties and sidecars; the storage views and summary; the trash can; copy and move; build-info and promotion; the GET searches and AQL; reindex; repository configuration; remote sources and upstream searches; download redirects; multipart uploads; and idempotent build appends.
Role ¶
Test support: server-assembly suites for the artifacts management API, which drive the production router through HTTP requests. The package's owner in tools/citestselection/test_ownership.json is shared, so a change to it selects full CI. Its directory also holds the ecosystem suites, one package per format under test/server/artifacts/<type>.
Inputs ¶
- The production router from test/server/support/harness, over in-memory stores seeded by test/server/support: the admin user, whose password is "pw", and the users, permissions and repositories each world adds.
- The worlds of fixture_test.go, which keep the names of the router guards' fixtures in internal/app: the harness's item world (newItemWorld); the guards' status fixture's users, repositories and fixture files, with a token service and the multipart upload service (statusFixture), without what only the guards' format, build, search, overwrite, key pair, permission and token rows need; the repository world over a store whose repository index can be made to fail (newRepoWorld); and the identity world (newIdentityWorld). The router's paths, media types, limits and messages that the tests name are constants there, spelled as the router and its handlers spell them.
- The worlds that some files build for themselves: builds and their promotion (aql_builds_test.go), searches (searches_test.go), Maven layouts (searches_layout_test.go), a Maven upstream behind a fake server (searches_upstream_test.go), reindex with a recording format (reindex_test.go) and remote sources over stub backends (source_test.go).
- PostgreSQL through internal/app/storetest for the cases that run on it too (idempotency_sql_test.go, keyed_operations_test.go, properties_long_test.go, streamed_lists_test.go); they skip without Docker. SQLite in a file for the streamed lists and their memory (streamed_lists_test.go, streamed_memory_test.go).
Outputs ¶
Assertions only, one file or group of files per area:
- items_test.go: deploy and download, matrix parameters, checksum policies and checksum deploys, folders, repository classes, deletes and item permissions, and AQL find; aql_actions_test.go and aql_builds_test.go: AQL delete, property updates and builds.
- storage_test.go, storage_list_test.go and storageinfo_test.go: file and folder info, listings, properties, statistics, permissions and the storage summary; mirrors_test.go: the blob mirrors in the summary and their repair; metadata_stats_test.go and properties_long_test.go: statistics writes and long property values.
- trash_test.go, trash_handlers_test.go and trash_views_test.go: the trash can on and off, restore, empty and its storage views; transfer_test.go: copy and move, archive explode, archive entries, those of lost, unreadable and corrupt archives included, and folder archive downloads.
- builds_test.go, builds_diff_test.go, builds_promote_test.go and builds_routes_test.go: build-info publish, read, rename, diff, promotion and retention; idempotency_test.go and idempotency_sql_test.go: idempotent build appends and their replay; keyed_operations_test.go: every operation that declares Idempotency-Key, replayed once on SQLite and PostgreSQL.
- searches_test.go, searches_builds_test.go, searches_layout_test.go and searches_versions_test.go: the GET searches; searches_upstream*_test.go: searches that reach a remote repository's upstream.
- reindex_test.go and reindex_remote_test.go: the reindex operations.
- repositories_test.go, repositories_format_class_test.go, repo_environments_test.go and virtual_members_test.go: the repository configuration API.
- streamed_lists_test.go: Get Repositories without limit and the dependency search, written from store pages (#1409), against the bytes they collected, on the in-memory store, SQLite and PostgreSQL, and their store faults before and after the first byte; streamed_memory_test.go: the heap while a deep file list of 50,000 files, and the folder information of the folder holding them, stream.
- source_test.go, source_listing_test.go, cache_maintenance_test.go and smart_status_test.go: remote sources, browsing, cache maintenance and the smart remote diagnostic.
- redirect_test.go, download_policy_test.go, folder_limit_test.go, checksum_files_test.go, sidecar_rights_test.go, overwrite_test.go, format_test.go and trace_test.go: download redirects and policies, folder downloads, checksum and sidecar files, overwrite refusals, what the format sees, and the trace endpoint.
- protocol_download_policy_test.go: native protocol downloads and metadata under the download policy (issues 1237 and 1251).
- folder_archive_policy_test.go: the folder archive download's policy (issue 1253).
- multipart_test.go: the JFrog CLI's multipart upload.
- repositories_paging_test.go and repositories_walk_test.go: Get Repositories' limit and offset (#1367), and its next link, followed from the first window to the last as an administrator, a partial reader and anonymous (#1408).
References ¶
- Decision 0004: docs/research/decisions/0004-storage-sql-metadata-and-blobs.md.
- Decision 0012: docs/research/decisions/0012-search-and-aql.md.
- Decision 0014: docs/research/decisions/0014-build-info.md.
- Decision 0029: docs/research/decisions/0029-cdn-delivery-and-download-redirect.md.
- Decision 0043: docs/research/decisions/0043-api-reliability.md.
- Decision 0044: docs/research/decisions/0044-modular-monolith-migration.md (test/server/<module> holds each module's server-assembly suites).
- Plan: docs/implementation/plan.md#p9d-modular-monolith-migration, epic TST (https://github.com/weaveplatform/artifactweave/issues/945).
- docs/testing/server-test-ownership.md: how CI selection gives the package an owner.
- https://github.com/weaveplatform/artifactweave/issues/1067
Status ¶
Implemented P3 (repositories, items, storage, copy and move, the trash can, the CLI's AQL and, with issue 91, multipart uploads), the mirror administration of P2b, P4b (download redirects), P5 (full AQL, searches and build-info), P8 (reindex) and P9 (remote sources, browsing, cache maintenance and upstream searches), with the idempotent build appends of decision 0043 in P9c. P9d moved the router-level tests out of the server root (TST-05); the tests that call unexported router code stay beside the router in internal/app as <name>_internal_test.go.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package agentpackages runs the Agent Packages routes of the assembled server: the APM protocol and the package lifecycle.
|
Package agentpackages runs the Agent Packages routes of the assembled server: the APM protocol and the package lifecycle. |
|
Package agentplugins runs the Agent Plugins routes of the assembled server: the stored marketplace files that track the repository tree, and their permissions.
|
Package agentplugins runs the Agent Plugins routes of the assembled server: the stored marketplace files that track the repository tree, and their permissions. |
|
Package chef runs the Chef routes of the assembled server: cached remote cookbook metadata and the generic paths that must not bypass it.
|
Package chef runs the Chef routes of the assembled server: cached remote cookbook metadata and the generic paths that must not bypass it. |
|
Package conan runs the Conan routes of the assembled server: revisions, search, uploads and their refusals, virtual and remote repositories, and the pinned Conan 2 and Conan 1 clients.
|
Package conan runs the Conan routes of the assembled server: revisions, search, uploads and their refusals, virtual and remote repositories, and the pinned Conan 2 and Conan 1 clients. |
|
Package conda runs the Conda routes of the assembled server: the native channel, its indexes and their trust boundary, remote and virtual repositories, and CEP-16 shards.
|
Package conda runs the Conda routes of the assembled server: the native channel, its indexes and their trust boundary, remote and virtual repositories, and CEP-16 shards. |
|
Package cran runs the CRAN routes of the assembled server: remote and offline indexes, virtual members, POST uploads and the archive migration.
|
Package cran runs the CRAN routes of the assembled server: remote and offline indexes, virtual members, POST uploads and the archive migration. |
|
Package debian runs the Debian snapshot routes of the assembled server, with their read guards and their refusals of unavailable or corrupt indexes, a remote Debian repository's relay of upstream files, its .ddeb cache, its indexes cached as fetched, its component files and its -cache alias's metadata, index reads with a query or matrix parameters, a malformed package stored unindexed with and without metadata validation, a Debian repository's configuration, and the async values of the Debian reindex.
|
Package debian runs the Debian snapshot routes of the assembled server, with their read guards and their refusals of unavailable or corrupt indexes, a remote Debian repository's relay of upstream files, its .ddeb cache, its indexes cached as fetched, its component files and its -cache alias's metadata, index reads with a query or matrix parameters, a malformed package stored unindexed with and without metadata validation, a Debian repository's configuration, and the async values of the Debian reindex. |
|
Package docker runs the Docker and OCI registry routes of the assembled server: the route and principal matrix, the status table, the registry token flow, listings, manifests, blobs and deletes.
|
Package docker runs the Docker and OCI registry routes of the assembled server: the route and principal matrix, the status table, the registry token flow, listings, manifests, blobs and deletes. |
|
Package gems runs the RubyGems and Bundler routes of the assembled server across local, remote, federated and virtual repositories.
|
Package gems runs the RubyGems and Bundler routes of the assembled server across local, remote, federated and virtual repositories. |
|
Package generic runs the generic remote repository routes of the assembled application: downloads through the remote cache, sidecars, authorization and its revocation, restarts and signed delivery.
|
Package generic runs the generic remote repository routes of the assembled application: downloads through the remote cache, sidecars, authorization and its revocation, restarts and signed delivery. |
|
Package golang runs the Go module proxy routes of the assembled server: the route and principal matrix and the status table.
|
Package golang runs the Go module proxy routes of the assembled server: the route and principal matrix and the status table. |
|
Package helm runs the classic Helm repository routes of the assembled server: the route and principal matrix and the status table.
|
Package helm runs the classic Helm repository routes of the assembled server: the route and principal matrix and the status table. |
|
Package helmoci replays against the assembled server the requests that jf helm push and jf rt bp send after helm pushes a chart to an OCI repository, and the listings helm and signing clients read from a blacked-out one.
|
Package helmoci replays against the assembled server the requests that jf helm push and jf rt bp send after helm pushes a chart to an OCI repository, and the listings helm and signing clients read from a blacked-out one. |
|
Package hex runs the Hex routes of the assembled server: the signed registry of local, virtual and remote repositories, and the routes and classes it refuses.
|
Package hex runs the Hex routes of the assembled server: the signed registry of local, virtual and remote repositories, and the routes and classes it refuses. |
|
Package huggingface runs the Hugging Face Xet routes of the assembled server: reconstruction, capabilities, shard authentication and commit provenance, and the pinned native client.
|
Package huggingface runs the Hugging Face Xet routes of the assembled server: reconstruction, capabilities, shard authentication and commit provenance, and the pinned native client. |
|
Package maven runs the Maven routes of the assembled server: the route and principal matrix, the status table, snapshot deploys, metadata rebuilt on read, version resolution and the calculateMetadata and generatePom operations.
|
Package maven runs the Maven routes of the assembled server: the route and principal matrix, the status table, snapshot deploys, metadata rebuilt on read, version resolution and the calculateMetadata and generatePom operations. |
|
Package nix runs the Nix remote routes of the assembled application: the native binary cache routes of a remote repository against the generic and cache routes that must not bypass their validation.
|
Package nix runs the Nix remote routes of the assembled application: the native binary cache routes of a remote repository against the generic and cache routes that must not bypass their validation. |
|
Package npm runs the npm routes of the assembled server: the route and principal matrix, the status tables, login and logout, the auth lines, reindex and the layout conversion.
|
Package npm runs the npm routes of the assembled server: the route and principal matrix, the status tables, login and logout, the auth lines, reindex and the layout conversion. |
|
Package nuget runs the NuGet routes of the assembled server: the route and principal matrix, the status table, API keys, client writes, reindex, the v3 remote and the symbol server.
|
Package nuget runs the NuGet routes of the assembled server: the route and principal matrix, the status table, API keys, client writes, reindex, the v3 remote and the symbol server. |
|
Package opkg runs the Opkg routes of the assembled server: the signing of a virtual feed, and the async values of the opkg reindex.
|
Package opkg runs the Opkg routes of the assembled server: the signing of a virtual feed, and the async values of the opkg reindex. |
|
Package p2 runs the P2 routes of the assembled server: remote and virtual repositories, archive suffixes, external composite children and their origins, and the cache's integrity.
|
Package p2 runs the P2 routes of the assembled server: remote and virtual repositories, archive suffixes, external composite children and their origins, and the cache's integrity. |
|
Package puppet runs the Puppet routes of the assembled application: a remote module cache through refresh, offline and integrity failures, and a local repository's registered routes, lists and reindex.
|
Package puppet runs the Puppet routes of the assembled application: a remote module cache through refresh, offline and integrity failures, and a local repository's registered routes, lists and reindex. |
|
Package pypi runs the PyPI routes of the assembled server: the route and principal matrix, the status table, the JSON routes, uploads, the pip install sequence and reindex.
|
Package pypi runs the PyPI routes of the assembled server: the route and principal matrix, the status table, the JSON routes, uploads, the pip install sequence and reindex. |
|
Package rpm runs the RPM routes of the assembled server: the signing of virtual repository metadata, a remote's repodata on its -cache alias, and the async values of the YUM reindex.
|
Package rpm runs the RPM routes of the assembled server: the signing of virtual repository metadata, a remote's repodata on its -cache alias, and the async values of the YUM reindex. |
|
Package terraform runs the Terraform registry routes of the assembled server: the route and principal matrix, the status tables, module init, provider install and jf terraform publish.
|
Package terraform runs the Terraform registry routes of the assembled server: the route and principal matrix, the status tables, module init, provider install and jf terraform publish. |
|
Package terraformbackend runs the Terraform remote state routes of the assembled server: the route and principal matrix, the status table and state read through the item routes.
|
Package terraformbackend runs the Terraform remote state routes of the assembled server: the route and principal matrix, the status table and state read through the item routes. |
|
Package vcs runs the VCS routes of the assembled server: the REST contract and GitLab subgroups, the STASH, OLDSTASH and Artifactory peer providers, and file delivery.
|
Package vcs runs the VCS routes of the assembled server: the REST contract and GitLab subgroups, the STASH, OLDSTASH and Artifactory peer providers, and file delivery. |