Documentation ¶
Overview ¶
Package enkstest provides test helpers and provisioners.
Index ¶
Constants ¶
View Source
const ( Audience = "test-aud" Issuer = "test-iss" Name = "Test issuer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapResponse ¶
type BootstrapResponse struct { Signer crypto.Signer HealthAuthority *verificationmodel.HealthAuthority HealthAuthorityKey *verificationmodel.HealthAuthorityKey AuthorizedApp *authorizedappmodel.AuthorizedApp SignatureInfo *exportmodel.SignatureInfo ExportConfig *exportmodel.ExportConfig }
BootstrapResponse is the response from a successful bootstrap.
type Server ¶
func NewServer ¶
func NewServer(tb testing.TB, testDatabaseInstance *database.TestInstance) *Server
NewServer sets up local servers for running tests. The server runs on a single address with different subpaths for each service.
func (*Server) AddHealthAuthorityKey ¶ added in v0.25.0
func (s *Server) AddHealthAuthorityKey(ctx context.Context, healthAuthority *verificationmodel.HealthAuthority, healthAuthorityKey *verificationmodel.HealthAuthorityKey) error
AddHealthAuthorityKey updates the health authority. This exists so tests can override the PEM without exposing all the internal packages.
Click to show internal directories.
Click to hide internal directories.