mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-27 01:21:08 +02:00
Fix broken test case
This commit is contained in:
parent
baeb602fd8
commit
c86f409ca1
@ -950,7 +950,7 @@ func TestCore_HandleLogin_AuditTrail(t *testing.T) {
|
|||||||
if auth.ClientToken != clientToken {
|
if auth.ClientToken != clientToken {
|
||||||
t.Fatalf("bad client token: %#v", auth)
|
t.Fatalf("bad client token: %#v", auth)
|
||||||
}
|
}
|
||||||
if len(auth.Policies) != 2 || auth.Policies[0] != "foo" || auth.Policies[1] != "bar" {
|
if len(auth.Policies) != 3 || auth.Policies[0] != "foo" || auth.Policies[1] != "bar" || auth.Policies[2] != "default" {
|
||||||
t.Fatalf("bad: %#v", auth)
|
t.Fatalf("bad: %#v", auth)
|
||||||
}
|
}
|
||||||
if len(noop.RespReq) != 2 || !reflect.DeepEqual(noop.RespReq[1], lreq) {
|
if len(noop.RespReq) != 2 || !reflect.DeepEqual(noop.RespReq[1], lreq) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user