satest

package
v0.0.0-...-e77b886 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWorkingRegistration

func CreateWorkingRegistration(t *testing.T, sa core.StorageAdder) core.Registration

CreateWorkingRegistration inserts a new, correct Registration into SA using GoodKey under the hood. This a hack to allow both the CA and SA tests to benefit because the CA tests currently require a full-fledged SQLSAImpl. Long term, when the CA tests no longer need CreateWorkingRegistration, this and CreateWorkingRegistration can be pushed back into the SA tests proper.

func GoodJWK

func GoodJWK() *jose.JSONWebKey

GoodJWK returns a known-good JSONWebKey that is always the same. This a hack to allow both the CA and SA tests to benefit because the CA tests currently require a full-fledged SQLSAImpl. Long term, when the CA tests no longer need CreateWorkingRegistration, this and CreateWorkingRegistration can be pushed back into the SA tests proper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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