forked from TrueCloudLab/frostfs-api-go
[#189] sdk/netmap: Refactor PlacementPolicy type
Replace alias to v2 type PlacementPolicy with v2-compatible implementation. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6a29d9c360
commit
9f19139999
5 changed files with 209 additions and 13 deletions
|
@ -7,6 +7,14 @@ import (
|
|||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func testReplica() *Replica {
|
||||
r := new(Replica)
|
||||
r.SetCount(3)
|
||||
r.SetSelector("selector")
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
func TestReplicaFromV2(t *testing.T) {
|
||||
rV2 := new(netmap.Replica)
|
||||
rV2.SetCount(3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue