4c779423f5
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
20 lines
594 B
Go
20 lines
594 B
Go
package storagegrouptest
|
|
|
|
import (
|
|
checksumtest "github.com/TrueCloudLab/frostfs-sdk-go/checksum/test"
|
|
oid "github.com/TrueCloudLab/frostfs-sdk-go/object/id"
|
|
oidtest "github.com/TrueCloudLab/frostfs-sdk-go/object/id/test"
|
|
"github.com/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
|
|
}
|