mirror of https://github.com/grpc/grpc-web.git
|
||
---|---|---|
.. | ||
.gitignore | ||
README.md | ||
envoy.yaml | ||
index.html | ||
interop_client.js | ||
package.json | ||
webpack.config.js |
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.