conformance

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Run

func Run(t *testing.T, factory Factory)

Run executes the identity broker contract against factory.

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.

Jump to

Keyboard shortcuts

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