From 997346ef954f15bf0a9b3f6ee98805ee8028537b Mon Sep 17 00:00:00 2001 From: Aleksey Savchuk Date: Wed, 2 Oct 2024 11:20:14 +0300 Subject: [PATCH] [#274] client/status: Add missing test cases for commom statuses Signed-off-by: Aleksey Savchuk --- client/status/v2_test.go | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/client/status/v2_test.go b/client/status/v2_test.go index 242c365..cecd075 100644 --- a/client/status/v2_test.go +++ b/client/status/v2_test.go @@ -61,6 +61,24 @@ func TestToStatusV2(t *testing.T) { }), codeV2: 1025, }, + { + status: (statusConstructor)(func() apistatus.Status { + return new(apistatus.SignatureVerification) + }), + codeV2: 1026, + }, + { + status: (statusConstructor)(func() apistatus.Status { + return new(apistatus.NodeUnderMaintenance) + }), + codeV2: 1027, + }, + { + status: (statusConstructor)(func() apistatus.Status { + return new(apistatus.InvalidArgument) + }), + codeV2: 1028, + }, { status: (statusConstructor)(func() apistatus.Status { return new(apistatus.ObjectLocked) @@ -131,18 +149,6 @@ func TestToStatusV2(t *testing.T) { }), codeV2: 5120, }, - { - status: (statusConstructor)(func() apistatus.Status { - return new(apistatus.NodeUnderMaintenance) - }), - codeV2: 1027, - }, - { - status: (statusConstructor)(func() apistatus.Status { - return new(apistatus.InvalidArgument) - }), - codeV2: 1028, - }, } { var st apistatus.Status -- 2.45.2