tenantfixture

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenAt

func OpenAt(t testing.TB, catalog fs.FS, ledger string, version uint) (*pgxpool.Pool, *migrate.Migrate)

func OpenDatabase

func OpenDatabase(t testing.TB) *pgxpool.Pool

Types

type ControlBoundaryFixture

type ControlBoundaryFixture struct {
	EnvironmentBoundaryFixture
	Policy, Destination, Record [2]int
	Binding, Attempt            int
	Request                     string
}

func SeedControlBoundary

func SeedControlBoundary(t testing.TB, tx pgx.Tx, currentSchema bool) ControlBoundaryFixture

type ControlMismatch

type ControlMismatch struct {
	Table, Column, Constraint string
	Parent, Child             any
}

func ControlMismatches

func ControlMismatches(f ControlBoundaryFixture) []ControlMismatch

type EnvironmentBoundaryFixture

type EnvironmentBoundaryFixture struct {
	Org, Project, Environment, Credential, Source [2]int
	Enabled, Secret, Variable                     int
}

func SeedEnvironmentBoundary

func SeedEnvironmentBoundary(t testing.TB, tx pgx.Tx, currentSchema bool) EnvironmentBoundaryFixture

type PipelineBoundaryFixture

type PipelineBoundaryFixture struct {
	EnvironmentBoundaryFixture
	Projects, EnabledScopes, Specs, Versions, Refs, Authorities        [4]int
	Members                                                            [2]int
	Reports                                                            [4]string
	Binding, Run, Deployment, Validation, Reference, Draft, Checkpoint int
}

func SeedPipelineBoundary

func SeedPipelineBoundary(t testing.TB, tx pgx.Tx, current bool) PipelineBoundaryFixture

type PipelineMismatch

type PipelineMismatch struct {
	Table, Column, Constraint string
	Parent                    any
	Child                     int
}

func PipelineMismatches

func PipelineMismatches(f PipelineBoundaryFixture, other int) []PipelineMismatch

Jump to

Keyboard shortcuts

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