[#100] types: Make sdk types as protobuf wrappers
All checks were successful
/ DCO (pull_request) Successful in 1m17s
/ Lint (pull_request) Successful in 2m7s
/ Tests (1.19) (pull_request) Successful in 5m56s
/ Tests (1.20) (pull_request) Successful in 6m37s

Signed-off-by: Airat Arifullin a.arifullin@yadro.com
This commit is contained in:
Airat Arifullin 2023-06-26 23:51:06 +03:00
parent d70ef2187b
commit 6281a25556
135 changed files with 2870 additions and 2190 deletions

View file

@ -3,7 +3,7 @@ package object_test
import (
"testing"
v2object "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/object"
v2object "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/object/grpc"
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object"
"github.com/stretchr/testify/require"
)
@ -11,19 +11,19 @@ import (
func TestType_ToV2(t *testing.T) {
typs := []struct {
t object.Type
t2 v2object.Type
t2 v2object.ObjectType
}{
{
t: object.TypeRegular,
t2: v2object.TypeRegular,
t2: v2object.ObjectType_REGULAR,
},
{
t: object.TypeTombstone,
t2: v2object.TypeTombstone,
t2: v2object.ObjectType_TOMBSTONE,
},
{
t: object.TypeLock,
t2: v2object.TypeLock,
t2: v2object.ObjectType_LOCK,
},
}