Help us shape the future of Go! Take the 2026 Go Developer Survey

testfixtures

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildManagedRouter added in v1.2.0

func BuildManagedRouter(testingInstance testing.TB, configuration proxy.Configuration, structuredLogger *zap.SugaredLogger, tenant ManagedTenant) (*gin.Engine, error)

BuildManagedRouter builds and provisions a router through the mandatory management API.

func ModelCatalog added in v1.0.0

func ModelCatalog(testingInstance testing.TB) proxy.ModelCatalog

ModelCatalog returns the normalized projection used by catalog assertions.

func NewProviderCatalogFromModelCatalog added in v1.2.0

func NewProviderCatalogFromModelCatalog(modelCatalog proxy.ModelCatalog) (*proxy.ProviderCatalog, error)

NewProviderCatalogFromModelCatalog returns strict construction errors to rejection tests.

func ProviderCatalog added in v1.2.0

func ProviderCatalog(testingInstance testing.TB) *proxy.ProviderCatalog

ProviderCatalog loads the repository provider catalog for tests.

func ProviderCatalogFromModelCatalog added in v1.2.0

func ProviderCatalogFromModelCatalog(testingInstance testing.TB, modelCatalog proxy.ModelCatalog) *proxy.ProviderCatalog

ProviderCatalogFromModelCatalog compiles a strict test catalog from a normalized projection.

func ProviderCatalogWithResourceVisibilityInterval added in v1.2.0

func ProviderCatalogWithResourceVisibilityInterval(testingInstance testing.TB, providerIdentifier string, retryIntervalMilliseconds int) *proxy.ProviderCatalog

ProviderCatalogWithResourceVisibilityInterval returns a catalog with one provider's pollable text interval changed for timing-independent lifecycle tests.

func WithModelCatalog added in v1.0.0

func WithModelCatalog(testingInstance testing.TB, configuration proxy.Configuration) proxy.Configuration

WithModelCatalog returns a configuration with the explicit provider catalog.

Types

type ManagedTenant added in v1.2.0

type ManagedTenant struct {
	Secret         string
	Defaults       proxy.TenantDefaults
	ProviderKeys   map[string]string
	ProviderFields map[string]map[string]string
}

ManagedTenant describes one tenant provisioned through the management contract for a router test.

func StandardManagedTenant added in v1.2.0

func StandardManagedTenant(secret string) ManagedTenant

StandardManagedTenant returns the common managed tenant used by black-box tests.

Jump to

Keyboard shortcuts

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