Documentation
¶
Overview ¶
Package contracttest exercises independently built distribution binaries. It is test infrastructure, not an additional protected production SPI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distribution ¶
func Distribution(t *testing.T, f ProcessFixture)
Distribution runs both real server modes, CLI apply/export, authenticated Admin/body contracts, bounded admission, protocol/stream/cancellation and persisted usage checks. It requires only public packages and loopback I/O.
Types ¶
type ProcessFixture ¶
type ProcessFixture struct {
BinDir string
Runtime distribution.Assembly
Validation distribution.Assembly
Envelopes []extension.Envelope
ProbePath string
EventFileEnv string
}
ProcessFixture supplies external assembly inputs. Binaries are named agw, agwd and agwctl; callers may give private commands those names in a temp dir. EventFileEnv selects an independently owned JSONL sink. ProbePath identifies a read-only contributed POST accepting {}. Envelopes must select a backend.