2021-03-12 12:57:23 +00:00
|
|
|
package object_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2023-03-07 10:38:56 +00:00
|
|
|
objecttest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/object/test"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
|
|
|
messagetest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message/test"
|
2021-03-12 12:57:23 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestMessageConvert(t *testing.T) {
|
|
|
|
messagetest.TestRPCMessage(t,
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateShortHeader(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateAttribute(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateSplitHeader(empty) },
|
2024-05-08 12:03:29 +00:00
|
|
|
func(empty bool) message.Message { return objecttest.GenerateHeaderWithSplitHeader(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateHeaderWithECHeader(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateECHeader(empty) },
|
2021-03-12 12:57:23 +00:00
|
|
|
func(empty bool) message.Message { return objecttest.GenerateObject(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateSplitInfo(empty) },
|
2024-03-19 06:55:23 +00:00
|
|
|
func(empty bool) message.Message { return objecttest.GenerateECInfo(empty) },
|
2021-03-12 12:57:23 +00:00
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRequestBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRequest(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetObjectPartInit(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetObjectPartChunk(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetResponseBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetResponse(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePutObjectPartInit(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePutObjectPartChunk(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePutRequestBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePutRequest(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePutResponseBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePutResponse(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateDeleteRequestBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateDeleteRequest(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateDeleteResponseBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateDeleteResponse(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateHeadRequestBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateHeadRequest(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateHeadResponseBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateHeadResponse(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateSearchFilter(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateSearchRequestBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateSearchRequest(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateSearchResponseBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateSearchResponse(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateRange(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRangeRequestBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRangeRequest(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRangeResponseBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRangeResponse(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRangeHashRequestBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRangeHashRequest(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRangeHashResponseBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GenerateGetRangeHashResponse(empty) },
|
2022-02-21 17:57:27 +00:00
|
|
|
func(empty bool) message.Message { return objecttest.GenerateLock(empty) },
|
2023-06-30 12:00:51 +00:00
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePutSingleRequest(empty) },
|
2023-06-30 13:05:37 +00:00
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePutSingleResponse(empty) },
|
2024-07-24 14:40:47 +00:00
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePatchRequestBodyPatch(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePatchRequestBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePatchRequest(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePatchResponseBody(empty) },
|
|
|
|
func(empty bool) message.Message { return objecttest.GeneratePatchResponse(empty) },
|
2021-03-12 12:57:23 +00:00
|
|
|
)
|
|
|
|
}
|