See the main doc for details about gRPC interop tests in general and the list of test cases.
$ cd grpc-web
$ docker-compose build prereqs node-interop-server interop-client
An interop server implemented in Node is hosted in the grpc/grpc-node
repo.
$ docker run -d --network=host grpcweb/node-interop-server
An envoy.yaml
file is provided in this directory to direct traffic for these
tests.
$ docker run -d -v $(pwd)/test/interop/envoy.yaml:/etc/envoy/envoy.yaml:ro \
--network=host envoyproxy/envoy:v1.22.0
You can either run the interop client as npm test
, like this:
$ docker run --network=host --rm grpcweb/prereqs /bin/bash \
/github/grpc-web/scripts/docker-run-interop-tests.sh
Or from the browser:
$ docker-compose up interop-client
Open up the browser and go to http://localhost:8081/index.html
and open up
the console.