2021-11-08 10:52:44 +00:00
|
|
|
package storagegrouptest
|
|
|
|
|
|
|
|
import (
|
|
|
|
checksumtest "github.com/nspcc-dev/neofs-sdk-go/checksum/test"
|
2022-01-25 16:20:32 +00:00
|
|
|
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
|
2022-02-01 10:15:12 +00:00
|
|
|
oidtest "github.com/nspcc-dev/neofs-sdk-go/object/id/test"
|
2021-11-08 10:52:44 +00:00
|
|
|
"github.com/nspcc-dev/neofs-sdk-go/storagegroup"
|
|
|
|
)
|
|
|
|
|
2021-11-12 11:19:16 +00:00
|
|
|
// StorageGroup returns random storagegroup.StorageGroup.
|
|
|
|
func StorageGroup() *storagegroup.StorageGroup {
|
2021-11-08 10:52:44 +00:00
|
|
|
x := storagegroup.New()
|
|
|
|
|
|
|
|
x.SetExpirationEpoch(66)
|
|
|
|
x.SetValidationDataSize(322)
|
|
|
|
x.SetValidationDataHash(checksumtest.Checksum())
|
2022-03-11 08:54:54 +00:00
|
|
|
x.SetMembers([]oid.ID{*oidtest.ID(), *oidtest.ID()})
|
2021-11-08 10:52:44 +00:00
|
|
|
|
|
|
|
return x
|
|
|
|
}
|