frostfs-api-go/acl/message_test.go
Airat Arifullin 2511f4ca70
All checks were successful
Tests and linters / Tests (1.19) (pull_request) Successful in 1m39s
Tests and linters / Lint (pull_request) Successful in 1m46s
Tests and linters / Tests with -race (pull_request) Successful in 3m12s
Tests and linters / Tests (1.20) (pull_request) Successful in 7m6s
[#40] types: Generate StableMarshaler/StableSize methods for protobufs
* Add plugin option for protogen in Makefile
* Fix the generator for the plugin in util/protogen
* Erase convertable types, move helpful methods to gRPC protobufs
* Erase helpers for convertations
* Generate StableMarshlal/StableSize for protobufs by the protoc plugin

Signed-off-by: Airat Arifullin a.arifullin@yadro.com
2023-07-10 15:29:21 +03:00

21 lines
839 B
Go

package acl_test
import (
"testing"
acltest "git.frostfs.info/TrueCloudLab/aarifullin/v2/acl/test"
messagetest "git.frostfs.info/TrueCloudLab/aarifullin/v2/rpc/message/test"
"google.golang.org/protobuf/proto"
)
func TestMessageConvert(t *testing.T) {
messagetest.TestRPCMessage(t,
func(empty bool) proto.Message { return acltest.GenerateFilter(empty) },
func(empty bool) proto.Message { return acltest.GenerateTarget(empty) },
func(empty bool) proto.Message { return acltest.GenerateRecord(empty) },
func(empty bool) proto.Message { return acltest.GenerateTable(empty) },
func(empty bool) proto.Message { return acltest.GenerateTokenLifetime(empty) },
func(empty bool) proto.Message { return acltest.GenerateBearerTokenBody(empty) },
func(empty bool) proto.Message { return acltest.GenerateBearerToken(empty) },
)
}