add namespace waiting function to envoy integration tests (#9051)

This commit is contained in:
R.B. Boyer 2020-10-28 11:58:40 -05:00 committed by GitHub
parent cfe0ffde15
commit e3e1d687df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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
}