mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-04-15 07:06:45 +00:00
Bump all dependencies
This commit is contained in:
@@ -7,8 +7,10 @@ import (
|
||||
"crypto/ecdsa"
|
||||
"crypto/elliptic"
|
||||
"crypto/rand"
|
||||
"crypto/sha256"
|
||||
"crypto/x509"
|
||||
"crypto/x509/pkix"
|
||||
"encoding/hex"
|
||||
"encoding/pem"
|
||||
"fmt"
|
||||
"testing"
|
||||
@@ -329,6 +331,13 @@ func TestWhoAmI_CSR_Parallel(t *testing.T) {
|
||||
csrConfig.CertData = crtPEM
|
||||
csrConfig.KeyData = keyPEM
|
||||
|
||||
bytesToHexOfSHA256 := func(b []byte) string {
|
||||
shasum := sha256.Sum256(b)
|
||||
return hex.EncodeToString(shasum[:])
|
||||
}
|
||||
|
||||
t.Logf("sha256 of crtPEM: %s", bytesToHexOfSHA256(crtPEM))
|
||||
|
||||
whoAmI, err := testlib.NewKubeclient(t, csrConfig).PinnipedConcierge.IdentityV1alpha1().WhoAmIRequests().
|
||||
Create(ctx, &identityv1alpha1.WhoAmIRequest{}, metav1.CreateOptions{})
|
||||
require.NoError(t, err, testlib.Sdump(err))
|
||||
|
||||
Reference in New Issue
Block a user