Fix broken circuit-breaking test (#7866)

* Fix broken circuit-breaking test

* supress stderr

* curl -quiet

* tweak
This commit is contained in:
Frank Budinsky 2020-08-04 16:42:23 -04:00 committed by GitHub
parent e835bdbe26
commit c84690b958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -105,11 +105,11 @@ governed by Istio.
{{< /text >}}
1. Log in to the client pod and use the fortio tool to call `httpbin`.
Pass in `-curl` to indicate that you just want to make one call:
Pass in `curl` to indicate that you just want to make one call:
{{< text bash >}}
$ export FORTIO_POD=$(kubectl get pods -lapp=fortio -o 'jsonpath={.items[0].metadata.name}')
$ kubectl exec "$FORTIO_POD" -c fortio -- /usr/bin/fortio load -curl http://httpbin:8000/get
$ kubectl exec "$FORTIO_POD" -c fortio -- /usr/bin/fortio curl -quiet http://httpbin:8000/get
HTTP/1.1 200 OK
server: envoy
date: Tue, 25 Feb 2020 20:25:52 GMT

View File

@ -77,7 +77,7 @@ kubectl apply -f <(istioctl kube-inject -f samples/httpbin/sample-client/fortio-
snip_adding_a_client_3() {
export FORTIO_POD=$(kubectl get pods -lapp=fortio -o 'jsonpath={.items[0].metadata.name}')
kubectl exec "$FORTIO_POD" -c fortio -- /usr/bin/fortio load -curl http://httpbin:8000/get
kubectl exec "$FORTIO_POD" -c fortio -- /usr/bin/fortio curl -quiet http://httpbin:8000/get
}
! read -r -d '' snip_adding_a_client_3_out <<\ENDSNIP