1515package persona
1616
1717import (
18- "crypto/x509 "
18+ "math/big "
1919 "net/http"
2020 "net/http/httptest"
2121 "testing"
2222
2323 "github.com/google/go-cmp/cmp" /* copybara-comment */
24+ "github.com/google/go-cmp/cmp/cmpopts" /* copybara-comment */
2425 "gopkg.in/square/go-jose.v2" /* copybara-comment */
2526 "google.golang.org/protobuf/testing/protocmp" /* copybara-comment */
2627 "github.com/GoogleCloudPlatform/healthcare-federated-access-services/lib/globalflags" /* copybara-comment: globalflags */
@@ -96,12 +97,10 @@ func TestJWKS(t *testing.T) {
9697 want := & jose.JSONWebKeySet {
9798 Keys : []jose.JSONWebKey {
9899 {
99- Key : testkeys .PersonaBrokerKey .Public ,
100- Algorithm : "RS384" ,
101- Use : "sig" ,
102- KeyID : string (testkeys .PersonaBroker ),
103- Certificates : []* x509.Certificate {},
104- CertificateThumbprintSHA256 : []byte {},
100+ Key : testkeys .PersonaBrokerKey .Public ,
101+ Algorithm : "RS384" ,
102+ Use : "sig" ,
103+ KeyID : string (testkeys .PersonaBroker ),
105104 },
106105 },
107106 }
@@ -110,7 +109,7 @@ func TestJWKS(t *testing.T) {
110109 t .Fatalf ("httputils.DecodeJSON() failed: %v" , err )
111110 }
112111
113- if d := cmp .Diff (want , got ); len (d ) > 0 {
112+ if d := cmp .Diff (want , got , cmpopts . EquateEmpty (), cmp . AllowUnexported (big. Int {}) ); len (d ) > 0 {
114113 t .Errorf ("response (-want, +got): %s" , d )
115114 }
116115}
0 commit comments