forked from TrueCloudLab/frostfs-api-go
[#298] pkg/session/test: Set lifetime fields in Generate func
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
779a61c97d
commit
cc1163fd57
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ func Generate() *session.Token {
|
||||||
tok.SetID(uid)
|
tok.SetID(uid)
|
||||||
tok.SetOwnerID(ownerID)
|
tok.SetOwnerID(ownerID)
|
||||||
tok.SetSessionKey(keyBin)
|
tok.SetSessionKey(keyBin)
|
||||||
|
tok.SetExp(11)
|
||||||
|
tok.SetNbf(22)
|
||||||
|
tok.SetIat(33)
|
||||||
|
|
||||||
return tok
|
return tok
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue