Documentation
¶
Overview ¶
Package integrationtest provides selection and completion enforcement for repository-owned, build-tagged integration suites.
Index ¶
- Constants
- func CleanupDocker(t *testing.T, name, service string)
- func CleanupDockerImage(t *testing.T, reference, service string)
- func LoadPinnedImage(t *testing.T, service string) string
- func RequireDocker(t *testing.T, service string)
- func RequireEnv(t *testing.T, names ...string) map[string]string
- func Run(t *testing.T, service string, fn func(*testing.T))
- func WaitFor(t *testing.T, timeout time.Duration, probe func() (bool, string))
- type Selection
Constants ¶
const ( // ServicesEnv selects comma-separated integration services. ServicesEnv = "CHASSIS_INTEGRATION_SERVICES" // MarkerDirEnv is set by scripts/test-integration.sh. A selected suite only // writes its completion marker after its callback returns without failing or // skipping. MarkerDirEnv = "CHASSIS_INTEGRATION_MARKER_DIR" )
Variables ¶
This section is empty.
Functions ¶
func CleanupDocker ¶
CleanupDocker removes a suite-owned container and its attached anonymous volumes, preserving any primary test failure while making removal failure fail an otherwise successful owner.
func CleanupDockerImage ¶
CleanupDockerImage removes a suite-owned image and propagates removal failures using the same bounded cleanup contract as CleanupDocker.
func LoadPinnedImage ¶
LoadPinnedImage returns the immutable image reference registered for service. Selected live suites call this so missing or mutable image config is a hard failure, not a silent skip.
func RequireDocker ¶
RequireDocker hard-fails selected suites when Docker is unavailable or unhealthy. Selected live suites must not skip required service startup.
func RequireEnv ¶
RequireEnv returns required endpoint/config values. It must be called inside Run so missing configuration for a selected service is a hard failure.
Types ¶
type Selection ¶
type Selection struct {
// contains filtered or unexported fields
}
Selection is an immutable set of explicitly selected service names.
func ParseSelection ¶
ParseSelection parses the exact, comma-separated service selector contract. Empty input selects no services. Empty tokens, duplicates, invalid names, and the script-only "all" selector are rejected.