How to mock gRPC services

Steps

  1. Open FintX
  2. From the menu click on the “mock” button.  In the mocks panel click on “create a mock gRPC” button
  3.  In the dialog, select a protobuf file or a reflection service.  The screenshot below shows a protobuf selection.

    Configure the server as needed.  You can choose default transport (http) or set as Named Pipes or Unix domain Endpoint
  4. Click Okay.  FintX will generate the server code, compile it and once it’s all completed the mocked gRPC service will be displayed in the explorer panel

  5. Click on the “Play” button to start the server. The logs will show that the server has started

    In the next post, we’ll see how to customize the response of the gRPC method