acl: use WhoAmI RPC endpoint in /acl/token/self (#25547)

ResolveToken RPC endpoint was only used by the /acl/token/self API. We should migrate to the WI-aware WhoAmI instead.

---------

Co-authored-by: Tim Gross <tgross@hashicorp.com>
This commit is contained in:
Piotr Kazmierczak
2025-04-22 17:53:39 +02:00
committed by GitHub
parent c46521a80d
commit df3b00bce0
3 changed files with 16 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ import (
func assertQueryMeta(t *testing.T, qm *QueryMeta) {
t.Helper()
must.NotEq(t, 0, qm.LastIndex, must.Sprint("bad index"))
must.NotEq(t, 0, qm.LastIndex, must.Sprint("expected QueryMeta.LastIndex to be != 0"))
must.True(t, qm.KnownLeader, must.Sprint("expected a known leader but gone none"))
}