grpc-web/test/interop
Stanley Cheung 3fcc2a2a8a
Update envoy version to 1.20 (#1173)
2021-11-19 15:25:35 -08:00
..
.gitignore Refactor interop tests to be automated 2020-04-27 16:18:56 -07:00
README.md Update envoy version to 1.20 (#1173) 2021-11-19 15:25:35 -08:00
envoy.yaml Update Envoy timeout configs 2021-08-02 21:28:16 -07:00
index.html Add interop spec and interop tests 2020-04-27 16:18:56 -07:00
interop_client.js Fix issue where no RPC is issued when `deadline` is specified. (#1172) 2021-11-19 01:01:18 -08:00
package.json Update references to version 1.3.0 (#1148) 2021-10-14 14:30:22 -07:00
webpack.config.js Test both text and binary mode 2020-04-27 16:18:56 -07:00

README.md

gRPC-Web Interop Tests

See the main doc for details about gRPC interop tests in general and the list of test cases.

Run interop tests

Build some docker images

$ cd grpc-web
$ docker-compose build prereqs node-interop-server interop-client

Run the Node interop server

An interop server implemented in Node is hosted in the grpc/grpc-node repo.

$ docker run -d --network=host grpcweb/node-interop-server

Run the Envoy proxy

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.20.0

Run the gRPC-Web browser client

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.