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
|
@ -140,3 +140,23 @@ func TestListRequestGettersSetters(t *testing.T) {
|
|||
require.Equal(t, owner, m.GetOwnerID())
|
||||
})
|
||||
}
|
||||
|
||||
func TestExtendedACLKey(t *testing.T) {
|
||||
s := new(ExtendedACLKey)
|
||||
|
||||
id := CID{1, 2, 3}
|
||||
s.SetID(id)
|
||||
require.Equal(t, id, s.GetID())
|
||||
}
|
||||
|
||||
func TestExtendedACLValue(t *testing.T) {
|
||||
s := new(ExtendedACLValue)
|
||||
|
||||
acl := []byte{1, 2, 3}
|
||||
s.SetEACL(acl)
|
||||
require.Equal(t, acl, s.GetEACL())
|
||||
|
||||
sig := []byte{4, 5, 6}
|
||||
s.SetSignature(sig)
|
||||
require.Equal(t, sig, s.GetSignature())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue