testfixture

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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