2021-03-12 12:57:23 +00:00
|
|
|
package storagegrouptest
|
|
|
|
|
|
|
|
import (
|
|
|
|
refstest "github.com/nspcc-dev/neofs-api-go/v2/refs/test"
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/storagegroup"
|
|
|
|
)
|
|
|
|
|
|
|
|
func GenerateStorageGroup(empty bool) *storagegroup.StorageGroup {
|
|
|
|
m := new(storagegroup.StorageGroup)
|
|
|
|
|
|
|
|
if !empty {
|
|
|
|
m.SetValidationDataSize(44)
|
2022-09-17 06:39:11 +00:00
|
|
|
//nolint:staticcheck
|
2021-03-12 12:57:23 +00:00
|
|
|
m.SetExpirationEpoch(55)
|
2021-06-11 12:45:04 +00:00
|
|
|
m.SetMembers(refstest.GenerateObjectIDs(false))
|
2021-03-12 12:57:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
m.SetValidationHash(refstest.GenerateChecksum(empty))
|
|
|
|
|
|
|
|
return m
|
|
|
|
}
|