forked from TrueCloudLab/frostfs-api-go
service: implement BearerToken interface on BearerTokenMsg message
This commit: * implements (Set)ExpirationEpoch methods on BearerTokenMsg; * removes BearerTokenMsg wrapper.
This commit is contained in:
parent
42956686f6
commit
a3c4889945
5 changed files with 16 additions and 44 deletions
|
@ -136,5 +136,5 @@ func TestRequestVerificationHeader_GetBearerToken(t *testing.T) {
|
|||
|
||||
bearer := new(BearerTokenMsg)
|
||||
s.SetBearer(bearer)
|
||||
require.Equal(t, wrapBearerTokenMsg(bearer), s.GetBearerToken())
|
||||
require.Equal(t, bearer, s.GetBearerToken())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue