Skip to content

Commit

Permalink
[#409] status: Support EACL_NOT_FOUND status code
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
  • Loading branch information
carpawell committed Aug 1, 2022
1 parent cdce7ed commit 5744605
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
8 changes: 6 additions & 2 deletions container/grpc/service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions container/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ const (
// StatusNotFound is a local status.Code value for
// CONTAINER_NOT_FOUND container failure.
StatusNotFound status.Code = iota

// StatusEACLNotFound is a local status.Code value for
// EACL_NOT_FOUND failure.
StatusEACLNotFound
)
1 change: 1 addition & 0 deletions container/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ import (
func TestStatusCodes(t *testing.T) {
statustest.TestCodes(t, container.LocalizeFailStatus, container.GlobalizeFail,
container.StatusNotFound, 3072,
container.StatusEACLNotFound, 3073,
)
}
27 changes: 16 additions & 11 deletions status/grpc/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5744605

Please sign in to comment.