forked from TrueCloudLab/frostfs-api-go
Update to neofs-api v1.1.0
This commit is contained in:
parent
fe6672d480
commit
ee584f325c
17 changed files with 2989 additions and 104 deletions
|
@ -115,3 +115,16 @@ func TestRequestVerificationHeader_SetToken(t *testing.T) {
|
|||
|
||||
require.Equal(t, token, h.GetToken())
|
||||
}
|
||||
|
||||
func TestRequestVerificationHeader_SetBearer(t *testing.T) {
|
||||
aclRules := []byte{1, 2, 3}
|
||||
|
||||
token := new(BearerTokenMsg)
|
||||
token.SetACLRules(aclRules)
|
||||
|
||||
h := new(RequestVerificationHeader)
|
||||
|
||||
h.SetBearer(token)
|
||||
|
||||
require.Equal(t, token, h.GetBearer())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue