Documentation
¶
Overview ¶
Package testfixture writes ephemeral, genuinely signed offline bundles for integration tests. Callers supply independently inspected source claims.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixture ¶
type Fixture struct {
Directory string
Pinned releasetrust.PinnedTrust
Target releaseidentity.Identity
Identities []releaseidentity.Identity
Bundle upgradebundle.Bundle
Plan upgradecompat.Plan
Signer *trustfixture.Fixture
}
func Write ¶
func Write(t testing.TB, source upgradecompat.InstalledSource, targets []Target) Fixture
Write signs each supplied actual target schema and SQL inventory into an ordered route from an inspected fresh/legacy genesis. It never invents schema facts or bypasses verification. The returned Bundle also supports real same-release restart and intermediate-hop planning with inspected claims.
type Target ¶
type Target struct {
Version string
Sequence uint64
Commit string
Migrations releaseidentity.MigrationManifest
SchemaSHA256 releaseidentity.Digest
}
Click to show internal directories.
Click to hide internal directories.