grpc-web/test/interop
Stanley Cheung 664fd9c3e9 Bump Envoy to 1.15.0 2020-07-08 12:03:58 -07:00
..
.gitignore Refactor interop tests to be automated 2020-04-27 16:18:56 -07:00
README.md Bump Envoy to 1.15.0 2020-07-08 12:03:58 -07:00
envoy.yaml [fix] envoy deprecated fields 2020-06-21 22:02:33 -07:00
index.html Add interop spec and interop tests 2020-04-27 16:18:56 -07:00
interop_client.js Test both text and binary mode 2020-04-27 16:18:56 -07:00
package.json Update references to 1.2.0 2020-06-22 14:20:38 -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 common 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.15.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.