conan

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 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.

Role

Test support: server-assembly suites for the Conan 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 conan.

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.
  • Remote sources over stub backends (sourceIdentity, sourceBackend), Conan archives from support.TarGz (conanTestArchive), and a token service for the clients' login (seedTokens).
  • 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.
  • The Conan 2 and Conan 1 binaries named by ARTIFACTWEAVE_CONAN2_BIN and ARTIFACTWEAVE_CONAN1_BIN; TestAccConanClients and TestAccConanRemoteClient skip a generation whose variable is unset. make conan-accept runs the TestAccConan tests here with coverage.

Outputs

Assertions only:

  • conan_test.go: search and package deletion, revision ordering, route and class policy, manifest and upload refusals, virtual members, the authentication boundary, the native revision lifecycle, the remote and virtual source with its failures, and the download policy of local and virtual repositories.
  • conan_client_test.go: create, upload, remove and download with each client generation on local, federated and virtual repositories.
  • conan_remote_test.go: a Conan remote's cache integrity and offline answers, the integrity of the archives it fetches, and a remote's download policy, directly and through a virtual repository.
  • conan_client_remote_test.go: each client generation downloads through a Conan remote from an upstream that the same client uploaded to.
  • username_case_test.go: the v1 and v2 login of a user named in another case gets that user's token, a token sent back as the password is echoed under any spelling of its user, and another user's name is refused.

References

Status

Implemented P9c (the plan's P31 group). P9d moved the tests here from the server root (TST-06) and the remote suites from internal/app (TST-07).

Jump to

Keyboard shortcuts

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