From ca6e246336a6c454132b5c832d483b8e9aa10ca2 Mon Sep 17 00:00:00 2001 From: htuch Date: Fri, 20 Nov 2020 08:27:40 -0500 Subject: [PATCH] examples: add VRP runtime validation to verify_examples. (#14099) This is a regression test to cover the issue underlying https://github.com/envoyproxy/envoy/pull/14066. Risk level: Low Testing: Validating manually verify.sh passes, CI. Signed-off-by: Harvey Tuch --- examples/vrp-litmus/Dockerfile-vrp | 1 + examples/vrp-litmus/README.md | 3 +++ examples/vrp-litmus/docker-compose.yaml | 17 +++++++++++++++++ examples/vrp-litmus/verify.sh | 14 ++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 examples/vrp-litmus/Dockerfile-vrp create mode 100644 examples/vrp-litmus/README.md create mode 100644 examples/vrp-litmus/docker-compose.yaml create mode 100755 examples/vrp-litmus/verify.sh diff --git a/examples/vrp-litmus/Dockerfile-vrp b/examples/vrp-litmus/Dockerfile-vrp new file mode 100644 index 000000000000..f0e6704d6d21 --- /dev/null +++ b/examples/vrp-litmus/Dockerfile-vrp @@ -0,0 +1 @@ +FROM envoyproxy/envoy-google-vrp-dev:latest diff --git a/examples/vrp-litmus/README.md b/examples/vrp-litmus/README.md new file mode 100644 index 000000000000..58c14b3fd8cb --- /dev/null +++ b/examples/vrp-litmus/README.md @@ -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. diff --git a/examples/vrp-litmus/docker-compose.yaml b/examples/vrp-litmus/docker-compose.yaml new file mode 100644 index 000000000000..46eefcafb9aa --- /dev/null +++ b/examples/vrp-litmus/docker-compose.yaml @@ -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: {} diff --git a/examples/vrp-litmus/verify.sh b/examples/vrp-litmus/verify.sh new file mode 100755 index 000000000000..02791785c628 --- /dev/null +++ b/examples/vrp-litmus/verify.sh @@ -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