[#409] status: Support EACL_NOT_FOUND status code

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-08-01 17:15:59 +03:00 committed by Pavel Karpy
parent cdce7edc39
commit 5744605fc6
4 changed files with 5 additions and 0 deletions

Binary file not shown.

View file

@ -25,4 +25,8 @@ const (
// StatusNotFound is a local status.Code value for // StatusNotFound is a local status.Code value for
// CONTAINER_NOT_FOUND container failure. // CONTAINER_NOT_FOUND container failure.
StatusNotFound status.Code = iota StatusNotFound status.Code = iota
// StatusEACLNotFound is a local status.Code value for
// EACL_NOT_FOUND failure.
StatusEACLNotFound
) )

View file

@ -10,5 +10,6 @@ import (
func TestStatusCodes(t *testing.T) { func TestStatusCodes(t *testing.T) {
statustest.TestCodes(t, container.LocalizeFailStatus, container.GlobalizeFail, statustest.TestCodes(t, container.LocalizeFailStatus, container.GlobalizeFail,
container.StatusNotFound, 3072, container.StatusNotFound, 3072,
container.StatusEACLNotFound, 3073,
) )
} }

BIN
status/grpc/types.pb.go generated

Binary file not shown.