From fd55542287f38a3af776334b9e12eefc83149af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Mart=C3=ADnez=20Fay=C3=B3?= Date: Thu, 11 Jul 2024 09:31:43 -0300 Subject: [PATCH] Update expected error message according with go-jose/go-jose#128 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Agustín Martínez Fayó --- pkg/server/plugin/nodeattestor/gcpiit/iit_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/plugin/nodeattestor/gcpiit/iit_test.go b/pkg/server/plugin/nodeattestor/gcpiit/iit_test.go index 0e172a9295..449b1b8983 100644 --- a/pkg/server/plugin/nodeattestor/gcpiit/iit_test.go +++ b/pkg/server/plugin/nodeattestor/gcpiit/iit_test.go @@ -78,7 +78,7 @@ func (s *IITAttestorSuite) TestErrorOnMissingPayload() { func (s *IITAttestorSuite) TestErrorOnMissingKid() { payload := s.signToken(testKey, "", buildDefaultClaims()) - s.requireAttestError(s.T(), payload, codes.InvalidArgument, "nodeattestor(gcp_iit): failed to validate the identity token signature: go-jose/go-jose: unsupported key type/format") + s.requireAttestError(s.T(), payload, codes.InvalidArgument, "nodeattestor(gcp_iit): failed to validate the identity token signature: go-jose/go-jose: JWK with matching kid not found in JWK Set") } func (s *IITAttestorSuite) TestErrorOnInvalidClaims() {