docker

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

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.

Role

Server-assembly suite, outside the modules: it drives the production router through HTTP requests. It is a package of its own so that CI selection can run it alone; its owner in tools/citestselection/test_ownership.json is docker.

Inputs

  • The world of test/server/support/registryfixture and the registry fixtures of test/server/support (PushImage, RegistryManifest, RegistryConfig and RegistryLayer).
  • support.DockerRoutes, the route inventory.
  • The application runtime and the production router from test/server/support/harness, through the harness's remote world under the name the tests had in internal/app (fixture_test.go, newRemoteWorld): the generic remote repository remote over a fake upstream, the users reader and denied and the remote-read permission, beside which the tests retype the remote or add the repositories they need.

Outputs

  • TestAccDockerRouteTablesCoverImplemented fails while a route of support.DockerRoutes has no status row or no principal row.
  • TestAcc results for the token flow, OIDC users, probe headers, listings, manifest redirects, blob downloads, subdomain and reverse-proxy routing, and multi-architecture deletes.
  • TestAcc results for registry remotes (registry_remote_test.go, registry_remote_fault_test.go and registry_remote_errors_test.go): pulls through refresh and offline answers, indexes and referrers, no-store and native routes, invalid index children, integrity and denied paths, foreign layers, a revocation during a fetch, and the answers to an upstream's 401, 403, 429 and 502.
  • TestAcc results for download headers and ranges (registry_download_headers_test.go): the file headers of a local and a remote manifest and blob, and the whole content a GET or HEAD with Range gets through the Docker API (issues 1336, 1337 and 1338).
  • TestAcc results for conditional pulls (registry_preconditions_test.go): a local manifest, plain and redirected, and a remote blob and manifest, first fetched and again, ignore If-Match and If-Unmodified-Since and answer If-None-Match and If-Modified-Since as before (#1437).
  • TestAcc results for refusals (registry_refusal_test.go): 7.x's 403 UNAUTHORIZED for a pull, a blob read, a tags list, a push and a delete the caller's permissions refuse, by password, registry token and anonymous token, in a local repository and a remote's cache, with the 401s that stay (#1276); and a remote whose upstream refuses its credentials, whose 401 challenge with error="invalid_request" lets a containerd-style client reach the upstream twice per request, not five times (#1277).

References

  • Decision 0031: docs/research/decisions/0031-docker-oci-registry.md.
  • Research 23: docs/research/23-docker-oci-registry.md.
  • Decision 0007: docs/research/decisions/0007-remote-repositories.md; docs/operations/registry-remote.md.
  • docs/testing/server-test-ownership.md: how CI selection gives the package an owner.

Status

Implemented P6; P9b moved the tests here from the server root (issue 673), and P9d the registry remote suites from internal/app (TST-07, issue 1096).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL