Skip to content

Commit

Permalink
fixes api session id in spiffe id test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Jul 22, 2024
1 parent 3f516c0 commit de69678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/api_session_certificates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func Test_Api_Session_Certs(t *testing.T) {
ctx.Req.NotEmpty(spiffeId)

apiSession := *adminClientClient.ApiSession.Load()
expectedId := fmt.Sprintf("%s/identity/%s/apiSession/%s/apiSessionCertificate/", ctx.ControllerConfig.SpiffeIdTrustDomain, adminClientApiSession.GetIdentityId(), apiSession.GetId())
expectedId := fmt.Sprintf("%s/identity/%s/apiSession/%s/apiSessionCertificate/", ctx.ControllerConfig.SpiffeIdTrustDomain, adminClientApiSession.GetId(), apiSession.GetId())
ctx.Req.True(strings.HasPrefix(spiffeId.String(), expectedId), "expected the spiffe id to have the prefix %s, but got %s", expectedId, spiffeId)

})
Expand Down

0 comments on commit de69678

Please sign in to comment.