Skip to content

Commit

Permalink
Update expected error message according with go-jose/go-jose#128
Browse files Browse the repository at this point in the history
Signed-off-by: Agustín Martínez Fayó <[email protected]>
  • Loading branch information
amartinezfayo committed Jul 11, 2024
1 parent 5c207ba commit fd55542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/plugin/nodeattestor/gcpiit/iit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit fd55542

Please sign in to comment.