https://github.com/pegasystems/docker-mock-grpc-service
https://github.com/pegasystems/docker-mock-grpc-service
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pegasystems/docker-mock-grpc-service
- Owner: pegasystems
- License: apache-2.0
- Created: 2020-07-31T14:32:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T17:56:29.000Z (over 2 years ago)
- Last Synced: 2025-01-28T23:09:49.520Z (over 1 year ago)
- Language: Java
- Size: 71.3 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Mock GRPC Service and Client
This repository contains a simple grpc service and client that can be used for testing.
This project is based on the [grpc java examples](https://github.com/grpc/grpc-java/tree/master/examples)
[](https://travis-ci.org/pegasystems/docker-mock-grpc-service)
The service docker image support the following commands
| command | env variables | description |
| ------- | --------- | ----------- |
| /server | MY_POD_NAME | Starts the test server with a single method `getPodName` that returns the value of `MY_POD_NAME` |
| /client | TARGET | Attempts to make 100 connections to the `TARGET` and verifies that the requests are load balanced |
Protocol definition can be found [here](src/main/proto/pb.proto)