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 hashicorp-ci
parent b72e11aa9c
commit cfa5908c8d
1 changed files with 4 additions and 0 deletions

View File

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