forked from TrueCloudLab/frostfs-api-go
Alex Vanin
f69d2ad83c
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
21 lines
492 B
Go
21 lines
492 B
Go
package storagegrouptest
|
|
|
|
import (
|
|
refstest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/test"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/storagegroup"
|
|
)
|
|
|
|
func GenerateStorageGroup(empty bool) *storagegroup.StorageGroup {
|
|
m := new(storagegroup.StorageGroup)
|
|
|
|
if !empty {
|
|
m.SetValidationDataSize(44)
|
|
//nolint:staticcheck
|
|
m.SetExpirationEpoch(55)
|
|
m.SetMembers(refstest.GenerateObjectIDs(false))
|
|
}
|
|
|
|
m.SetValidationHash(refstest.GenerateChecksum(empty))
|
|
|
|
return m
|
|
}
|