Skip to content

Commit

Permalink
aeon: mock gRPC server
Browse files Browse the repository at this point in the history
Mock server Implement some base methods for integration tests.

Part of #1050, #1049
  • Loading branch information
dmyger committed Dec 27, 2024
1 parent 035ea0a commit 00d72c8
Show file tree
Hide file tree
Showing 22 changed files with 4,695 additions and 92 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
# Note: Use exactly match version of tool, to avoid unexpected issues with test on CI.
GO_VERSION: '1.21.13'
GO_VERSION: '1.22.10'
PYTHON_VERSION: '3.10'

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
# Note: Use exactly match version of tool, to avoid unexpected issues with test on CI.
GO_VERSION: '1.21.13'
GO_VERSION: '1.22.10'

jobs:
create-packages-linux:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
# Note: Use exactly match version of tool, to avoid unexpected issues with test on CI.
GO_VERSION: '1.21.13'
GO_VERSION: '1.22.10'
PYTHON_VERSION: '3.10'

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
# Note: Use exactly match version of tool, to avoid unexpected issues with test on CI.
GO_VERSION: '1.21.13'
GO_VERSION: '1.22.10'

jobs:
update:
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
path = cli/cartridge/third_party/cartridge-cli
url = https://github.com/tarantool/cartridge-cli.git
ignore = dirty
[submodule "cli/aeon/protos"]
path = cli/aeon/protos
url = [email protected]:tarantool/aeon-api-protos.git
branch = master
23 changes: 23 additions & 0 deletions cli/aeon/generate-pb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Update and generate from `.proto` file

SCRIPTPATH=${0%/*}

if [ ! -x "$(command -v protoc)" ]; then
cat << EOF
Not found proto compiler, please install it in you system.
Try: apt-get -y install protobuf-compiler
EOF
fi

if [ ! -x "$(command -v protoc-gen-go)" ]; then
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
fi

if [ ! -x "$(command -v protoc-gen-go-grpc)" ]; then
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
fi

cd ${SCRIPTPATH}
rm -rf pb
protoc --go_out=. --go-grpc_out=. --proto_path=protos aeon_router.proto
Loading

0 comments on commit 00d72c8

Please sign in to comment.