frostfs-api-go/pkg/session/test
Leonard Lyubich fb0b1ea108 [#283] pkg/session: Cover Token's Sign/Verify methods with unit test
Add `sessiontest.GenerateSigned` function which returns signed random token.
Clarify that `sessiontest.Generate` returns an unsigned token. Use these
functions to assert the correctness of `Sign` / `VerifySignature` methods.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-28 16:32:02 +03:00
..
token.go [#283] pkg/session: Cover Token's Sign/Verify methods with unit test 2021-05-28 16:32:02 +03:00