Fix lint and unit test compilation

This commit is contained in:
Joshua Casey
2024-11-27 13:53:01 -06:00
parent 362d982906
commit 0d22ae2c1a
2 changed files with 14 additions and 1 deletions
@@ -20,6 +20,7 @@ import (
"k8s.io/client-go/kubernetes/fake"
supervisorfake "go.pinniped.dev/generated/latest/client/supervisor/clientset/versioned/fake"
"go.pinniped.dev/internal/config/supervisor"
"go.pinniped.dev/internal/federationdomain/endpoints/discovery"
"go.pinniped.dev/internal/federationdomain/endpoints/jwks"
"go.pinniped.dev/internal/federationdomain/federationdomainproviders"
@@ -359,7 +360,16 @@ func TestManager(t *testing.T) {
cache.SetStateEncoderHashKey(issuer2, []byte("some-state-encoder-hash-key-2"))
cache.SetStateEncoderBlockKey(issuer2, []byte("16-bytes-STATE02"))
subject = NewManager(nextHandler, dynamicJWKSProvider, idpLister, &cache, secretsClient, oidcClientsClient, plog.New())
subject = NewManager(
nextHandler,
dynamicJWKSProvider,
idpLister,
&cache,
secretsClient,
oidcClientsClient,
plog.New(),
supervisor.AuditSpec{},
)
})
when("given no providers via SetFederationDomains()", func() {
@@ -1,3 +1,6 @@
// Copyright 2024 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package requestlogger
import (