frostfs-api-go/pkg/session
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
..
test [#283] pkg/session: Cover Token's Sign/Verify methods with unit test 2021-05-28 16:32:02 +03:00
session.go [#283] pkg/session: Implement Sign/Verify methods on Token 2021-05-28 16:32:02 +03:00
session_test.go [#283] pkg/session: Cover Token's Sign/Verify methods with unit test 2021-05-28 16:32:02 +03:00