Documentation
¶
Overview ¶
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.
Role ¶
Test support: server-assembly suites for the RPM 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 rpm.
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.
Outputs ¶
Assertions only:
- rpm_test.go: virtual metadata is signed with the configured GPG key.
- rpm_remote_cache_alias_test.go: a remote repository's cached repodata served by its -cache alias without asking the upstream (#1382), through the harness's remote world (harness.NewRemoteWorld) over the acceptance suite's upstream fixture (test/acceptance/testdata/rpm-upstream).
- yum_reindex_async_test.go: Calculate YUM Repository Metadata with each async value, queued or run before it answers, or refused.
References ¶
- Decision 0032: docs/research/decisions/0032-package-format-handlers.md.
- docs/testing/rpm.md.
- Decision 0044: docs/research/decisions/0044-modular-monolith-migration.md (test/server/artifacts/<type> holds each ecosystem's server-assembly suites).
- docs/testing/server-test-ownership.md: how CI selection gives the package an owner.
- https://github.com/weaveplatform/artifactweave/issues/1068, https://github.com/weaveplatform/artifactweave/issues/1082 and https://github.com/weaveplatform/artifactweave/issues/1382
Status ¶
Implemented P9c (the plan's P29 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/rpm/http (WEB-13).