Documentation
¶
Overview ¶
Package conformance provides the contract tests every identity broker implementation, an identitybroker.Core and identitybroker.CredentialVerifier, passes.
Importing testing from this non-test package is intentional: each implementation's tests call Run with a factory for fresh, empty instances. Most cases call the implementation the way Mecatl does, through identitybroker.NewInProcess, so the authentication step is always taken; cases about the calling workload call the Core directly. Cases are grouped by area, one file per area, so later work adds its cases in its own file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory func(t *testing.T, now func() time.Time) Implementation
Factory returns a fresh, empty implementation for one test, which reads the time from now. Each implementation it returns has its own signing key.
type Implementation ¶
type Implementation interface {
identitybroker.Core
identitybroker.CredentialVerifier
}
Implementation is an identity broker under test: the Core Mecatl's calls reach and the CredentialVerifier the broker's own checks and AS-1 call.