From b724e096c26d367cd98dfba0e1bab5293b1ae05b 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 2a1c5151fa..bbe933a724 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 }