mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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:
committed by
GitHub
parent
c46521a80d
commit
df3b00bce0
@@ -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"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user