tenantfixture

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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