Get rid of an extra dependency from c030551
I brought this over because I copied code from work in flight on another branch. But now the other branch doesn't use this package. No use bringing on another dependency if we can avoid it. Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
parent
76e89b523b
commit
aef25163e2
1
go.mod
1
go.mod
@ -14,7 +14,6 @@ require (
|
||||
github.com/golangci/golangci-lint v1.31.0
|
||||
github.com/google/go-cmp v0.5.2
|
||||
github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/sclevine/agouti v3.0.0+incompatible
|
||||
github.com/sclevine/spec v1.4.0
|
||||
github.com/spf13/cobra v1.0.0
|
||||
|
@ -14,7 +14,6 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/stretchr/testify/require"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
@ -201,7 +200,7 @@ func CreateTestOIDCProvider(ctx context.Context, t *testing.T) *configv1alpha1.O
|
||||
func randomIssuer() (string, error) {
|
||||
var buf [8]byte
|
||||
if _, err := io.ReadFull(rand.Reader, buf[:]); err != nil {
|
||||
return "", errors.WithMessage(err, "could not generate random state")
|
||||
return "", fmt.Errorf("could not generate random state: %w", err)
|
||||
}
|
||||
return fmt.Sprintf("http://test-issuer-%s.pinniped.dev", hex.EncodeToString(buf[:])), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user