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.