Fix tests
This commit is contained in:
parent
ee705088be
commit
e18866498d
|
@ -3706,7 +3706,7 @@ func TestTokenStore_RoleTokenFields(t *testing.T) {
|
||||||
req := logical.TestRequest(t, logical.UpdateOperation, "roles/test")
|
req := logical.TestRequest(t, logical.UpdateOperation, "roles/test")
|
||||||
req.Data = map[string]interface{}{
|
req.Data = map[string]interface{}{
|
||||||
"explicit_max_ttl": 7200,
|
"explicit_max_ttl": 7200,
|
||||||
"token_type": "default-batch",
|
"token_type": "default-service",
|
||||||
"period": 5,
|
"period": 5,
|
||||||
"bound_cidrs": boundCIDRs[0].String(),
|
"bound_cidrs": boundCIDRs[0].String(),
|
||||||
}
|
}
|
||||||
|
@ -3736,7 +3736,7 @@ func TestTokenStore_RoleTokenFields(t *testing.T) {
|
||||||
"token_explicit_max_ttl": int64(7200),
|
"token_explicit_max_ttl": int64(7200),
|
||||||
"explicit_max_ttl": int64(7200),
|
"explicit_max_ttl": int64(7200),
|
||||||
"renewable": false,
|
"renewable": false,
|
||||||
"token_type": "default-batch",
|
"token_type": "default-service",
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.Data["bound_cidrs"].([]*sockaddr.SockAddrMarshaler)[0].String() != "127.0.0.1" {
|
if resp.Data["bound_cidrs"].([]*sockaddr.SockAddrMarshaler)[0].String() != "127.0.0.1" {
|
||||||
|
|
Loading…
Reference in a new issue