Mock

Running mock gRPC server from proto files for testing.

Prerequisites

# gRPC mock server for testing
yarn global add bloomrpc-mock
# bloomrpc is a UI client for gRPC
# install `bloomrpc` via `brew` into ~/Applications)
brew cask install --appdir=~/Applications bloomrpc

use certs generated from mtls

Run

bloomrpc-mock service/greeter/proto/greeter/greeter.proto
# Or
bloomrpc-mock e2e/account.bloomrpc.proto \
-r config/base/secrets/certs/upstream-cert.pem \
-k config/base/secrets/certs/client-key.pem,config/base/secrets/certs/client-cert.pem \
-i ~/go/src  -i /usr/local/Cellar/protobuf/3.11.2/include \
-i ~/Developer/Work/go/micro-starter-kit

Last updated