This commit is contained in:
Joshua Casey 2023-07-07 09:52:32 -07:00
parent 183c771d4e
commit 741ccfd2ce
5 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,6 @@ var (
) )
func TestLoad(t *testing.T) { func TestLoad(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
cert string cert string

View File

@ -256,7 +256,7 @@ func getAggregatedAPIServerConfig(
return apiServerConfig, nil return apiServerConfig, nil
} }
// main returns an error instead of calling plog.Fatal to allow defer statements to run // main returns an error instead of calling plog.Fatal to allow defer statements to run.
func main() error { func main() error {
defer plog.Setup()() defer plog.Setup()()

View File

@ -38,7 +38,7 @@ func (c ClientCertIssuers) Name() string {
} }
func (c ClientCertIssuers) IssueClientCertPEM(username string, groups []string, ttl time.Duration) ([]byte, []byte, error) { func (c ClientCertIssuers) IssueClientCertPEM(username string, groups []string, ttl time.Duration) ([]byte, []byte, error) {
var errs []error errs := make([]error, 0, len(c))
for _, issuer := range c { for _, issuer := range c {
certPEM, keyPEM, err := issuer.IssueClientCertPEM(username, groups, ttl) certPEM, keyPEM, err := issuer.IssueClientCertPEM(username, groups, ttl)

View File

@ -10,6 +10,7 @@ import (
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.pinniped.dev/internal/mocks/issuermocks" "go.pinniped.dev/internal/mocks/issuermocks"
) )

View File

@ -70,17 +70,17 @@ func (p *FederationDomainIssuer) validate() error {
return nil return nil
} }
// Issuer returns the issuer // Issuer returns the issuer.
func (p *FederationDomainIssuer) Issuer() string { func (p *FederationDomainIssuer) Issuer() string {
return p.issuer return p.issuer
} }
// IssuerHost returns the issuerHost // IssuerHost returns the issuerHost.
func (p *FederationDomainIssuer) IssuerHost() string { func (p *FederationDomainIssuer) IssuerHost() string {
return p.issuerHost return p.issuerHost
} }
// IssuerPath returns the issuerPath // IssuerPath returns the issuerPath.
func (p *FederationDomainIssuer) IssuerPath() string { func (p *FederationDomainIssuer) IssuerPath() string {
return p.issuerPath return p.issuerPath
} }