kidstoretest

package
v0.3.19 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 5 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAll

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

RunAll runs the complete KidStorage test suite against the provided factory.

func TestAddAndGetByKid

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

func TestAsymmetricKeyRoundTrip

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

func TestCleanExpired

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

func TestExpiredKidNotReturned

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

func TestGetByUnknownKid

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

func TestGetKeyByClientIDAlwaysNotFound

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

func TestListKids added in v0.3.11

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

TestListKids checks keys.KidLister: every kid that GetKeyByKid would return, and no expired one, so a JWKS endpoint can publish retired public keys during their grace period (issue 421). A store that doesn't implement KidLister skips it.

func TestOverwriteSameKid

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

func TestPersistence

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

func TestRemoveIdempotent

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

func TestZeroExpiryNeverExpires

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

Types

type Factory

type Factory func(t *testing.T) keys.KidStorage

Factory creates a fresh KidStorage for each test.

Jump to

Keyboard shortcuts

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