cran

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 cran runs the CRAN routes of the assembled server: remote and offline indexes, virtual members, POST uploads and the archive migration.

Role

Test support: server-assembly suites for the CRAN ecosystem, outside the modules. They drive the production router through HTTP requests. The package is one of its own so that CI selection can run it alone; its owner in tools/citestselection/test_ownership.json is cran.

Inputs

  • The production router from test/server/support/harness, through the harness's item world under the root's name (fixture_test.go, newItemWorld): the users reader, deployer and user, the deploy-libs permission and eight local, remote and virtual repositories, with the request and seed helpers of test/server/support.
  • The CRAN assertthat fixtures in internal/artifacts/ecosystem/cran/testdata, read root-relative through repopath, remote sources over stub backends (sourceIdentity, sourceBackend), and archives from support.TarGz (conanTestArchive).
  • The harness's remote world (harness.NewRemoteWorld): a CRAN remote over a chi upstream the test serves, through the remote cache and its validation.

Outputs

Assertions only:

  • cran_test.go and cran_routes_test.go: virtual index filtering, native POST and reindex, remote index faults and authority checks, offline cached reads, nested virtual members, upload refusals and overwrite authority, index variants, and the download policy: its 404 for indexes and remote or virtual packages, and packages its patterns reject kept in local, remote and virtual indexes while their GETs are refused or passed over to the next member, a virtual package served from a member whose patterns reject only its index, and a remote's index checked at its own path, never at its feed folder.
  • cran_archive_test.go: the archive migration, its rollback, refusals, collisions, destination policy and storage failure.
  • cran_xz_test.go: a .tar.xz source package that lost its xz index and footer, refused at deploy, from a remote's upstream and through a virtual over that remote (#1331).

References

Status

Implemented P9c (the plan's P32 group). P9d moved the router-level tests here from the server root (TST-06), and the tests that call the protocol's unexported code moved with it to internal/artifacts/ecosystem/cran/http (WEB-15).

Jump to

Keyboard shortcuts

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