From e3e1d687df7ef51036d2c5dd0592c40d485bcef3 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Wed, 28 Oct 2020 11:58:40 -0500 Subject: [PATCH] add namespace waiting function to envoy integration tests (#9051) --- test/integration/connect/envoy/helpers.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/connect/envoy/helpers.bash b/test/integration/connect/envoy/helpers.bash index 2a1c5151f..bbe933a72 100755 --- a/test/integration/connect/envoy/helpers.bash +++ b/test/integration/connect/envoy/helpers.bash @@ -684,6 +684,10 @@ function read_config_entry { docker_consul "$DC" config read -kind $KIND -name $NAME } +function wait_for_namespace { + retry_default curl -sL -f "http://127.0.0.1:8500/v1/namespace/${1}" >/dev/null +} + function wait_for_config_entry { retry_default read_config_entry "$@" >/dev/null }