Documentation
¶
Overview ¶
Package ssftest provides a backend-agnostic conformance suite for the sharedsignals.Store interface. Every backend (memory, sqlite, postgres, mongo) is expected to pass the same contract, so behavioral drift between them is caught here rather than in production.
This store carries more security contract than most: received events are the replay guard for inbound SETs, and the audit reads are documented to answer ErrNotFound rather than a distinguishable "forbidden" when a caller reaches across a tenant boundary. Those are the invariants worth pinning on every backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct {
Store ssf.Store
AppID id.AppID
EnvID id.EnvironmentID
// OtherAppID and OtherEnvID are a second tenant, used to prove that the
// audit reads refuse to cross the boundary.
OtherAppID id.AppID
OtherEnvID id.EnvironmentID
// UserID is a real user, for subject links.
UserID id.UserID
}
Fixture is one backend ready to test, plus the tenants its rows hang off.
Click to show internal directories.
Click to hide internal directories.