From cfa5908c8d61d5ad38918837c6773b381ce0b913 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 5b103678d2..fadbf21372 100755 --- a/test/integration/connect/envoy/helpers.bash +++ b/test/integration/connect/envoy/helpers.bash @@ -574,6 +574,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 }