Skip to content

Commit

Permalink
fix lrs examples verify.sh (envoyproxy#17889)
Browse files Browse the repository at this point in the history
Signed-off-by: yy <[email protected]>
  • Loading branch information
yangyy93 authored Aug 27, 2021
1 parent ef70185 commit 9e4acc1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/load-reporting-service/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
dockerfile: Dockerfile-envoy
ports:
- "80-81:80"
- "8081:8081"

http_service:
build:
Expand Down
9 changes: 9 additions & 0 deletions examples/load-reporting-service/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

export NAME=load-reporting
export UPARGS="--scale http_service=2"
export DELAY=10

# shellcheck source=examples/verify-common.sh
. "$(dirname "${BASH_SOURCE[0]}")/../verify-common.sh"
Expand All @@ -17,4 +18,12 @@ docker-compose logs http_service | grep http_service_2 | grep HTTP | grep 200
run_log "Check logs: lrs_server"
docker-compose logs lrs_server | grep "up and running"

run_log "Check logs: envoy is connect to lrs_server"
responds_with \
upstream_rq_200 \
"http://localhost:8081/stats?filter=load_reporting_cluster"

run_log "Check logs: lrs_server works normally"
docker-compose logs lrs_server | grep "Got stats from cluster"

# TODO(phlax): add some test/docs for interacting with load reporting server

0 comments on commit 9e4acc1

Please sign in to comment.