grpc-web/test/interop
Eryu Xia 8ba8fbeb5f
Update protobuf-JS to 3.21.4 (#1452)
2024-07-22 19:38:19 -07:00
..
.gitignore Refactor interop tests to be automated 2020-04-27 16:18:56 -07:00
README.md Update envoy version to 1.22 (with config updates) (#1222) 2022-04-21 12:12:54 -07:00
envoy.yaml Update http2_protocol_options pattern (#1397) 2024-01-24 16:31:19 -08:00
index.html Add interop spec and interop tests 2020-04-27 16:18:56 -07:00
interop_client.js Fix code and documentation to pass `deadline` metadata as a String. (#1269) 2022-08-30 16:08:35 -07:00
package.json Update protobuf-JS to 3.21.4 (#1452) 2024-07-22 19:38:19 -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.22.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.