forked from TrueCloudLab/frostfs-sdk-go
Alex Vanin
94476f9055
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
20 lines
618 B
Go
20 lines
618 B
Go
package storagegrouptest
|
|
|
|
import (
|
|
checksumtest "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/checksum/test"
|
|
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
|
oidtest "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id/test"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/storagegroup"
|
|
)
|
|
|
|
// StorageGroup returns random storagegroup.StorageGroup.
|
|
func StorageGroup() storagegroup.StorageGroup {
|
|
var x storagegroup.StorageGroup
|
|
|
|
x.SetExpirationEpoch(66)
|
|
x.SetValidationDataSize(322)
|
|
x.SetValidationDataHash(checksumtest.Checksum())
|
|
x.SetMembers([]oid.ID{oidtest.ID(), oidtest.ID()})
|
|
|
|
return x
|
|
}
|