Skip to content

Commit

Permalink
examples: add VRP runtime validation to verify_examples. (#14099)
Browse files Browse the repository at this point in the history
This is a regression test to cover the issue underlying
#14066.

Risk level: Low
Testing: Validating manually verify.sh passes, CI.

Signed-off-by: Harvey Tuch <htuch@google.com>
  • Loading branch information
htuch authored Nov 20, 2020
1 parent 116150e commit ca6e246
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/vrp-litmus/Dockerfile-vrp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM envoyproxy/envoy-google-vrp-dev:latest
3 changes: 3 additions & 0 deletions examples/vrp-litmus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Simple litmus test to verify the VRP image in CI. For more details on VRP,
please see
https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/security/google_vrp.
17 changes: 17 additions & 0 deletions examples/vrp-litmus/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: "3.7"
services:

vrp:
build:
context: .
dockerfile: Dockerfile-vrp
environment:
ENVOY_EDGE_EXTRA_ARGS: ""
ENVOY_ORIGIN_EXTRA_ARGS: ""
networks:
- envoymesh
ports:
- "10000:10000"

networks:
envoymesh: {}
14 changes: 14 additions & 0 deletions examples/vrp-litmus/verify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -e

export NAME=vrp-litmus
export DELAY=10

# shellcheck source=examples/verify-common.sh
. "$(dirname "${BASH_SOURCE[0]}")/../verify-common.sh"


run_log "Test proxy"
responds_with \
normal \
https://localhost:10000/content \
-k

0 comments on commit ca6e246

Please sign in to comment.