saucelabs / forwarder

Forwarder is a production-ready, fast MITM proxy with PAC support. It's suitable for debugging, intercepting and manipulating HTTP traffic. It's used as a core component of Sauce Labs Sauce Connect Proxy.
https://forwarder-proxy.io
Mozilla Public License 2.0
221 stars 13 forks source link

Add gRPC e2e test #646

Closed mmatczuk closed 8 months ago

Choraden commented 8 months ago

LGTM

I wish we had a better solution to configure test env: t.Setenv("HTTPS_PROXY", proxy) // set proxy for grpc.Dial and $(shell docker inspect forwarder-e2e-httpbin-1 --format='{{ range .Config.Env }}{{ if eq "FORWARDER" (slice . 0 9) }} -e "HTTPBIN{{slice . 9}}"{{end}}{{end}}' 2> /dev/null).

mmatczuk commented 8 months ago

I'm open to rewrite possibilities.