boulder: github.com/letsencrypt/boulder/sa/satest Index | Files

package satest

import "github.com/letsencrypt/boulder/sa/satest"

Index

Package Files

satest.go

func CreateWorkingRegistration Uses

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 Uses

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.

Package satest imports 7 packages (graph). Updated 2019-06-21. Refresh now. Tools for package owners.