micro
develop
develop
  • Micro Starter Kit
  • Features
  • Getting Started
    • Why
    • Prerequisites
    • Installation
    • Makefile
  • Concepts
    • Introduction
    • Configuration
    • State
    • Select
  • Advanced
    • Dependency Injection
    • Logging
    • Error Handling
    • Life-cycle
    • Git Flow
    • Git Ops
    • mTLS
    • Release
    • Release Process
    • Pub Sub
    • Troubleshooting
  • Modules
    • Commands
      • Demo
    • Services
      • Account
      • Emailer
      • Greeter
      • Recorder
  • DevOps
    • Docker
    • KinD
    • Istio
  • Testing
    • Intro
    • Mock
    • Bloom RPC
  • Recipes
    • Authentication
    • Caching
    • Health Checks
    • Performance Testing
    • Dynamic Plugins
    • Immutability Helpers
    • Style Guide
    • Unit Testing
  • Community
    • Resources
    • Contributors
    • Contributing
  • Change Log
  • FAQ
Powered by GitBook
On this page
  • Prerequisites
  • Run

Was this helpful?

  1. Testing

Mock

PreviousIntroNextBloom RPC

Last updated 4 years ago

Was this helpful?

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

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
mtls